Skip to content

Use product controller for products #2

Description

@knitzie

We don't use the product object and controller for simplicity. That's why we have to edit the file <projectPath>\custom-sofa\bower_components\sofa-basket-service\dist\sofa.BasketService.js
Remove lines 100 till 102 (comment them out)

if (product.isOutOfStock()) {
    throw new Error('product out of stock');
}

Else you get this error:

TypeError: undefined is not a function
    at Object.self.addItem (http://localhost:9000/bower_components/sofa-basket-service/dist/sofa.basketService.js:100:21)
    ... 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions