Home Forums WoodMart support forum Hide out of stock variations

Hide out of stock variations

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #624568

    produto
    Participant

    I 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.
    #624574

    produto
    Participant

    I 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.
    #624866

    Luke Nielsen
    Keymaster

    Hello,

    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

    #624871

    produto
    Participant

    Of 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.
    #625020

    Luke Nielsen
    Keymaster

    Hello,

    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

    #625189

    produto
    Participant

    Thanks, 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.
    #625403

    Luke Nielsen
    Keymaster

    Hello,

    Navigate to Theme Settings -> Shop -> Variable products -> and set the color attributes as “Grid swatch attribute to display”.

    I await your response.

    Kind Regards

    #625511

    produto
    Participant

    This 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.
    #625525

    Luke Nielsen
    Keymaster

    Hello,

    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

    #625526

    produto
    Participant

    But 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.
    #625530

    produto
    Participant

    You 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.
    #625533

    Luke Nielsen
    Keymaster

    Hello,

    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,

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Hide out of stock variations’ is closed to new replies.