Add custom body tag if product is out of stock


I have searched endlessly for this but I am yet to find a solution.

I have found ways to add custom classes through functions but can’t seem to achieve through woocommerce where a custom class is added on the single product page when a product is out of stock.

Any pointers would be much appreciated.

Rob 2 months 0 Answers 13 views 0

Leave an answer