Remove Book Now button

Hi

I am trying to remove the ‘Book It’ button from the single product page using the following code added to the child functions.php file and using plugins (which just produce an error when I try to activate them). However the code is having no affect. Is there something in the theme overriding this code?

/*

  • Override via functions.php
    **/
    if (!function_exists(‘woocommerce_template_loop_add_to_cart’)) {
    function woocommerce_template_loop_add_to_cart() {
    global $product;
    if ( ! $product->is_in_stock() || ! $product->is_purchasable() ) return;
    woocommerce_get_template(‘loop/add-to-cart.php’);
    }
    }
    Can you advise how I do this?

Thanks
Ray

Hi

Do you have an update on this issue?

Thanks

Ray

Hi

I raised this issue 5 days ago and I have not received any indication that this post will be answered? Can you advise?

Thanks

Ray

Hello,

Please note that this is not an issue! You are trying to customize the woocommerce feature with your own hook / code etc. and we can not possibly help with your customization requirements on the spot. Sometimes we guide you on customizations or third party codes, and that will always take less priority than the issues / help related to the built in features of the theme.

You can hide the “Book Now” button by going to Appearance >> Editor >> style.css file of your entrada-child theme and adding the CSS below inside entrada child style.css file:

.btn.btn-lg, .woocommerce a.btn-lg.button, .woocommerce input.btn-lg.button, .woocommerce button.btn-lg.button {
visibility: hidden;
}

I had the same thing, I have another booking system but I want the product page, so this helped me a lot. Thank you very much.