• Resolved ericspataru

    (@ericspataru)


    Say I have a button like this that is manually added on a page (via WordPress-Admin -> Pages)

    <a href="?add-to-cart=3213" data-quantity="1" class="button product_type_simple add_to_cart_button ajax_add_to_cart" data-product_id="3213" data-product_sku="" aria-label="Add "Menu of the day" to your order" rel="nofollow">Add to Cart</a>

    It is only the add to cart button. I didn’t add shortcode because I don’t want to display the thumbnail, name of the product and price. Just the button.

    The plugin does not hide it, how should I solve this?

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

    (@bizswoop)

    The WooCommerce Add to Cart button is in the hook woocommerce_single_product_summary. Based upon the store schedule, we either remove or include the hook.

    For the custom button to hide or show based upon the store schedule, you will need to add the custom button inside the hook woocommerce_single_product_summary

Viewing 1 replies (of 1 total)
  • The topic ‘Hide manually added ”Add to Cart” buttons’ is closed to new replies.