-
Notifications
You must be signed in to change notification settings - Fork 169
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
Commerce problem with variant's their status (Looks like they are disabled but still show front end)) #926
Comments
Any progress? Thank you. |
Yes, I was unable to reproduce. Video: https://jmp.sh/FJ8cmkm As for |
@lukeholder I was able to reproduce this on multiple Craft Commerce installs. Craft version: 3.2.8 Steps to reproduce:
It will display all variants as the variant elements itself are enabled but it shows the status of the product. When I enable the product I still see the variants but now they have an enabled status. EDIT: I'm creating an env with only the latest version of Commerce for testing. |
Another update: I've been looking through the source and I think I know why this is happening. Variants override the getStatus() function and return The VariantQuery should check the product status instead of the variant status. |
Looks like you have found it. Thinking of a solution now. |
Will push a fix for this later today. |
Thank you! |
|
Description
Problem with variants their status.
So it seems to me that the getAllVariantsByProductId returns all product variants no matter the status.
So for me front end variants get displayed even if their status is disabled (i can fix it by checking the status front end) however i though i should still report it because it seems to me its buggy as well back end.
This means the filter does not work when i select enabled it shows all the "disabled items"
And if i choose disabled it shows nothing.
I think this has something to do with multi site.
Thanks in advance,
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: