Home › Forums › WoodMart support forum › Hide out of stock variations
Hide out of stock variations
- This topic has 11 replies, 2 voices, and was last updated 4 months, 1 week ago by
Luke Nielsen.
-
AuthorPosts
-
December 23, 2024 at 6:11 am #624568
produtoParticipantI need all variations that no longer have inventory, be hidden . I want her not to appear even if she is unavailable. My woocommerce already has the option to hide out-of-stock variations, but it still appears on the product page.
-
This topic was modified 4 months, 1 week ago by
produto.
Attachments:
You must be logged in to view attached files.December 23, 2024 at 6:32 am #624574
produtoParticipantI don’t want it to be available/appear to select if the variation is out of stock. But as I said, in Woocommerce I have already enabled this option.
Attachments:
You must be logged in to view attached files.December 23, 2024 at 6:39 pm #624866
Luke NielsenKeymasterHello,
Is there any chance that you could give me access to the dashboard area so I can look closer at the issue there.
Thank you in advance
Kind Regards
December 23, 2024 at 6:59 pm #624871
produtoParticipantOf course, to access this test site, you need to access it through the hostinger panel. I’ll give you the login. Just don’t publish the changes to the staging site
Attachments:
You must be logged in to view attached files.December 24, 2024 at 11:27 am #625020
Luke NielsenKeymasterHello,
First, increase the “AJAX variation threshold” – https://prnt.sc/aqOAPHq2Kkxu in Theme Settings -> Shop -> Variable products.
Then use the code below to hide disabled swatches.
.wd-swatches-single .wd-swatch.wd-disabled { display: none; }
Kind Regards
December 24, 2024 at 10:54 pm #625189
produtoParticipantThanks, it worked!!
Another question, I have already configured all the colors for each variation, but it only appears as a swatch on the product page. I’ve already cleared the website and server cache, but it still won’t update.
Attachments:
You must be logged in to view attached files.December 26, 2024 at 10:35 am #625403
Luke NielsenKeymasterHello,
Navigate to Theme Settings -> Shop -> Variable products -> and set the color attributes as “Grid swatch attribute to display”.
I await your response.
Kind Regards
December 26, 2024 at 4:50 pm #625511
produtoParticipantThis option is already enabled… I even tried disabling it, regenerating the css and enabling it again. But for some reason, the swatches only appear for the black, white and navy colors.
Attachments:
You must be logged in to view attached files.December 26, 2024 at 5:39 pm #625525
Luke NielsenKeymasterHello,
I see that products have all attributes defined in their settings, in this case, define for all attributes the color swatch – https://prnt.sc/A05U9ZbqyojM . Or leave only attributes that have the color swatch defined in the product settings -> Attributes https://prnt.sc/mxQYmU_KBqrT.
Then recheck the issue.
Kind Regards
December 26, 2024 at 5:56 pm #625526
produtoParticipantBut I have already defined all the colors in which I have stock of the product. What remains undefined are exactly the colors that I don’t have in stock in any product. And it doesn’t make sense that this is the problem, because black/white/navy colors work on some products and not on others…
-
This reply was modified 4 months, 1 week ago by
produto.
Attachments:
You must be logged in to view attached files.December 26, 2024 at 6:16 pm #625530
produtoParticipantYou can disregard it!!
I found the solution, I just needed to go into the product and update it… I’ll do this for the rest of the products. Thanks for the help!!
Attachments:
You must be logged in to view attached files.December 26, 2024 at 6:22 pm #625533
Luke NielsenKeymasterHello,
Thank you for the update! We’re glad to hear you found the solution by updating the products directly. If you encounter any further issues or have additional questions, feel free to reach out to us anytime.
Good luck with the rest of your work, and have a great day!
Kind Regards,
-
This topic was modified 4 months, 1 week ago by
-
AuthorPosts
The topic ‘Hide out of stock variations’ is closed to new replies.
- You must be logged in to create new topics. Login / Register