Add custom body tag if product is out of stock

by Rob   Last Updated September 14, 2018 16:08 PM

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.

Tags : woocommerce


Related Questions


How can add and preview product Frontend

Updated March 26, 2015 12:02 PM


How to add "Reply-to" in Woocommerce

Updated April 04, 2015 15:03 PM


WooCommerce epdq gateway Change order status

Updated April 06, 2015 19:03 PM