Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Remove “In Stock” status

$
0
0

Replies: 0

In order for the this plugin to work, I choose the pre-order option and change the inventory above 0 products.

But now, on the single product page, there remains the “In stock” status even though there is no real inventory.

How do I add the following as part of a filter to my functions page in order to hide the “In stock” message when the pre-order option has been enabled?

$pre_order = new YITH_Pre_Order_Product( $product_id );
$is_preorder = $pre_order->get_pre_order_status();


Viewing all articles
Browse latest Browse all 59525

Trending Articles