Hello, I am creating a web site (e-commerce) by using wix store. I would like to know if it’s possible to put in the page of the product the description “available” in Green and “not available” in red… ( the 2 descriptions should appear automatically upon availablility of the product itself). Do you have any suggestion on how to do it? Thanks
Hey,
You could use the wix-stores-backend API, specifically the getProductOptionsAvailability() function. You can use this function to determine the availability of a product.
You would then just have to add two text boxes to the page, one for each message in the colours you want and set them to be hidden on load. Once you do that you can add code to set the correct message to show() depending on the product availability.
Hope this helps!
Dara | Corvid Team
Thank you so much your info was very helpful
Apologies for the delayed response, but I wanted to chime in on your question about displaying product availability on your Wix Store website. It’s definitely possible to show “available” and “not available” descriptions in different colors on your product pages.