Hello,
I've added the proper code to my website to add the Out of Stock Button to my product pages. The problem I'm having is, it's always showing even when products are in stock.
For instance, I have a product with only one variation. The button still shows when the item is in stock, but if you click it, nothing will happen. When the item is actually out of stock, clicking the button will trigger the popup.
On another product, I have two variations (colors), when both are in stock the button still shows and does nothing when clicked.
On the same product, when one of the variants is out of stock, the button acts like it should. No button on the variant that's in stock, and working button on the variant that is out of stock.
So, just to reiterate. The button is only working as intended with a product that has multiple variations and one of them is out of stock.
Any advice on how to fix this?
Thank you,
-Chris