I know I can use the css property ‘visibility:hidden’, to hide the prices on the product listing page (I have it assigned to a specific page id, only on the sold items page.
But on the individual product page is there a piece of PHP I can use that says something like “If item is out of stock/quantity is set to 0, then hide price”?
Main sold out product listing:
http://www.montagemodern.com/sold
Individual Out of stock product page example:
http://www.montagewestport.com/product/pair-of-glass-bubble-lamps/
Try this:
http://wwweb.jextensions.com/theanand.com/blog%252Fhide-price-out-of-stock-woocommerce%252F