I am trying to disable "add to cart" button on WooCommerce shop and archives pages if product's quantity stock is zero or less. I don't want to hide it so I cam
I get this error when trying to render the product price before the main content on the page. Fatal error: Uncaught Error: Call to a member function get_price_