• Hi, I’m trying to hide the stock status on the single product page, but only when a product is tagged with ‘pre-order’. Any idea how to achieve this??
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi @poesch,

    Unfortunately, this is not possible in this plugin currently. You can use the filter ‘woocommerce_get_stock_html’ and for checking if a product is Pre-Order you can use the following:

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

    If $is_preorder value is “yes” the product has the Pre-Order status.

    Best regards,
    YIThemes

    Thread Starter poesch

    (@poesch)

    Hi, thanks for your reply. What’s the use of the plugin if you can’t hide the stock status?
    What do you mean by filter? Another plugin that’s called ‘woocommerce_get_stock_html’?
    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hide stock status’ is closed to new replies.