WooCommerce Add to Cart Button Visibility

WooCommerce Add to Cart Button Visibility

Enable/disable WooCommerce Add to Cart button globally or on per product basis

Description

WooCommerce Add to Cart Button Visibility allows you to enable/disable “Add to Cart” button globally, per product or per category basis.

All Products

This section allows you to disable “add to cart” button for all products at once. Good usage example would be to use this section in conjunction with Booster’s Modules By User Roles module.

WooCommerce Add to Cart Button Visibility - Admin Settings - All Products

Enable section
Enables/disables section.
Default: no
Disable Buttons on Category/Archives Pages
Enables/disables buttons on category/archives pages.
Default: no
Disable Buttons on Single Product Pages
Enables/disables buttons on single product pages.
Default: no

Per Product

This section allows you to disable “add to cart” button on per product basis.

WooCommerce Add to Cart Button Visibility - Admin Settings - Per Product

Product edit page:

WooCommerce Add to Cart Button Visibility - Admin Settings - Per Product - Product Meta Box

Enable section
Enables/disables section. This will add meta box to each product’s edit page.
Default: no

Per Category

This section allows you to disable “add to cart” button on per category basis.

WooCommerce Add to Cart Button Visibility - Admin Settings - Per Category

Enable section
Enables/disables section.
Default: no
Disable Buttons on Category/Archives Pages
Enables/disables buttons on category/archives pages for selected categories.
Default: None
Content
Content to replace with on archives (can be empty). You can use HTML and/or shortcodes here.
Default: None
Disable Buttons on Single Product Pages
Enables/disables buttons on single product pages for selected categories.
Default: None
Content
Content to replace with on single product pages (can be empty). You can use HTML and/or shortcodes here.
Default: None
Accessible through:
  • WooCommerce > Settings > Booster > Products > Add to Cart Button Visibility
Tested on WooCommerce 3.8.0 and WordPress 5.3
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

15 Comments

  1. Ben Berdoulay November 12, 2019 at 7:49 pm #

    Id like to use on the Per Product basis. I would like to know if there is a way to default to Hidden on the product edit page when this section is enabled.
    Thanks

    Reply to thread

    Avatar
    • RokasJ November 13, 2019 at 4:11 pm #

      Hi Ben,

      You use this module on per product basis however it’s not currently possible to have this enabled by default yet. We have added this to our todo list.

      Best regards,
      Rokas – Support Team

      Avatar
    • Ben Berdoulay November 13, 2019 at 4:38 pm #

      Thanks for the quick reply! I’ll keep an eye out for an update.
      Best,

      Avatar
  2. James October 23, 2019 at 9:40 pm #

    I am having an unexpected error while removing add to cart button on my product page. I am using this tutorial for my reference code https://wpitech.com/hide-disable-add-to-cart-button-in-woocommerce-store/ . Is there any other way to hide add to cart button. This is the code that I am using to hide add to cart button on my product page

    function flav() {
    remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’);
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’);
    return WooCommerce::instance();

    Reply to thread

    Avatar
    • RokasJ October 24, 2019 at 5:19 pm #

      Hi James,

      Could you clarify why you are writing PHP code to hide the Add to Cart button if this module already has this feature?

      Best regards,
      Rokas – Support Team

      Avatar
  3. Dale Lam September 6, 2019 at 7:38 am #

    I found that it doesn’t support variable products after my purchase, may I have a refund? Thanks.

    Reply to thread

    Avatar
    • RokasJ September 8, 2019 at 2:53 pm #

      Hi,

      Please contact us via email support@booster.io about your order, please include your order number.

      Best regards,
      Rokas – Support Team

      Avatar
  4. KoolPal August 7, 2019 at 11:34 am #

    Hi,

    How can I use hide add to cart if price is blank (using Price by country module)?

    Thanks

    Reply to thread

    Avatar
    • RokasJ August 7, 2019 at 6:20 pm #

      Hi,

      With this module it’s not currently possible to detect that and accordingly hide the add to cart button however when using multicurrency modules if the price is “empty” as opposed to it being 0, the Add to Cart button should not be shown in the first place.

      Best regards,
      Rokas – Support Team

      Avatar
    • KoolPal August 8, 2019 at 12:31 pm #

      Thanks Rokas!

      But as I recall I cannot use Price by Country AND multicurrency module. Am I correct?

      Avatar
    • RokasJ August 8, 2019 at 3:22 pm #

      Hi,

      Yes, in this context I was referring to any multicurrency module, one of which is Prices by Country. You can enable “Make empty price” option in per-product price settings using this module.

      Best regards,
      Rokas – Support Team

      Avatar
  5. mark May 17, 2019 at 9:14 am #

    why dont you just say if this plugin will be disabled or not – that saves us the time of downloading, installing only then to find out that it is not included! – this kind of thing is very annoying – if you think this strategy of yours will entice ppl to buy – well you wrong it doesnt!!

    Reply to thread

    Avatar
    • RokasJ May 17, 2019 at 12:01 pm #

      Hi Mark,

      Generally you can check if module is enabled in the free version by checking in https://booster.io/booster-woocommerce-free-vs-plus/ however this module is not added to that list yet. Sorry for any confusion.

      Best regards,
      Rokas – Support Team

      Avatar
  6. Eric Cousineau April 12, 2019 at 5:41 pm #

    This module only appears to disable Add To Cart for products in the exact category, while I expected it to also disable products in the child categories. Can you please enhance this module to apply this to child products? Perhaps it could be a checkbox.

    Reply to thread

    Avatar
    • RokasJ April 13, 2019 at 1:18 pm #

      Hi Eric,

      Thank you for suggestion. I will forward it to our development team.

      Best regards,
      Rokas – Support Team

      Avatar