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 the disabled options to work if there's only one super attribute #694

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

BobWez98
Copy link
Collaborator

@BobWez98 BobWez98 commented Jan 8, 2025

When a product has only one super attribute, this happens here: https://github.com/rapidez/core/blame/2.x/resources/js/components/Product/AddToCart.vue#L353

When there's only one super attribute, the cross reference will return right away and because of this the option will never be added to the disabled options array: https://github.com/rapidez/core/blame/2.x/resources/js/components/Product/AddToCart.vue#L370

3.x: #695

@royduin
Copy link
Member

royduin commented Jan 8, 2025

Looking good to me, but let's wait for @indykoning as he created this part a long time ago.

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.

2 participants