• mitchellem

    (@mitchellem)


    Hello,
    We are theme author and using this plugin WooCommerce Easy Booking in our theme. We have noticed that when you select out of stock (inventory tab) in single product settings, styles of the tabs (description…) are different and this error is present https://monosnap.com/direct/4G9EiLAqHgiYet9DBHOT2A3oQlYSXw Please, provide us with a a fix of this issue.

    Best Regards
    Ancorathemes

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

Viewing 1 replies (of 1 total)
  • Plugin Author Ashanna

    (@morki)

    Hello,

    I think it’s because you have to include this hook:
    <?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>

    inside this:

    <?php if ( $product->is_in_stock() ) : ?>
    <?php endif; ?>

    Please check how it’s done in WooCommerce templates in woocommerce/templates/single-product/add-to-cart/simple.php.

    This way the template from Easy Booking is not loaded if the product is out of stock (as it uses the woocommerce_before_add_to_cart_button hook).

    Regards,
    Natasha

Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce Easy Booking By @_Ashanna’ is closed to new replies.