Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adding configurable product to cart #461

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

BobWez98
Copy link
Collaborator

@BobWez98 BobWez98 commented Apr 2, 2024

No description provided.

@indykoning indykoning merged commit a8a3990 into master Apr 2, 2024
@indykoning indykoning changed the title Fix adding to cart Fix adding configurable product to cart Apr 2, 2024
@royduin royduin deleted the feature/fix-adding-to-cart branch April 23, 2024 10:01
@royduin
Copy link
Member

royduin commented Apr 23, 2024

Are you sure about this? As of: 2bb7984

@BobWez98
Copy link
Collaborator Author

Yes, the simpleProduct is a computed property and will update on a super attribute change. https://github.com/rapidez/core/blob/master/resources/js/components/Product/AddToCart.vue#L208

If you don't use the simple product it will try to add the configurable product itself to the cart which will always be out of stock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants