Monday, 12 June 2023

Shopify Liquid - Manage Soldout with multiple variants

I have a Shopify store that has products with multiple Colors and multiple Sizes each. The issue with this is that for example, if I have a product that has just the size M in color blue out of stock it will display as out of stock also the other color variants like the size M for the colors black and gray. My idea was to find a way to update the size quantities every time the color is changed but I really don't know how, I've tried in different ways but none of them even remotely worked, also I don't know if there's an easier way to solve this problem.

This is the code of the product variant swatches, let me know if something isn't clear or if I have to add something else, thank you all in advance.





    



    <div class="swatch error">
        <p>You must include the snippet swatch.liquid with the name of a product option.</p>
        <p>Use: <code>{% include 'swatch' with 'name of your product option here' %}</code></p>
        <p>Example: <code>{% include 'swatch' with 'Colore' %}</code></p>
    </div>



from Shopify Liquid - Manage Soldout with multiple variants

No comments:

Post a Comment