ryco17
Forum Replies Created
-
Thank you for you kind responses. I solved the problem using a php function found on Stackoverflow, if helps here the link:
Now it works. Of course only in front-end but personally I don’t care, suits perfect for me.
Mark as solved, thank you.- This reply was modified 3 years, 11 months ago by ryco17.
Sorry, I found out that the two themes are not the same. In fact “SOLD OUT” is a custom behaviour of Sober Theme, while I’m using Hello on second site.
You asked me the behaviour in front-end:
https://imgur.com/a/RSBpsn1 <— this is the product in front-end
https://imgur.com/a/7maIzb0 <— this is the product page in front endOf course, details of the entire page. As you can see even if quantity in stock is 0 (image in the first post) for this product, the price is shown instead of “Out of stock” text.
I don’t know if this is the correct behaviour of Woocommerce.
However, any ideas to replace price with a “SOLD OUT” or “OUT OF STOCK” with plugins or functions?Thank you in advance.