• I am trying to hide the booking calendar and cart of a specific bookable product page. I tried targeting using is_page and used the product ID, but it’s not working. Should i be using something else?

    Here is my code in functions.php:

    if ( is_page( '242' ) ) {
       remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    }

    Thank you in advance

  • The topic ‘Woocommerce: hide add-to cart on specific product single’ is closed to new replies.