No products in the cart.
How to Hide the ‘Add to Cart’ Button for Products Based on Different Conditions Through the Request a Quote Plugin?
This article will help you understand how to hide the ‘Add to Cart’ button for the products on the Shop page and Product Pages when the ‘Request a Quote’ option is available on your WooCommerce store with the ELEX WooCommerce Request a Quote plugin.
The main advantage of this plugin is, you can display the Add to Cart button for specific user roles (in the Product and Shop Page) while excluding others, or on the basis of category, name & tag. There are customers at times who do not wish to show the Add to Cart button when the Request a Quote button is visible.
To know more about the configuration process of this plugin, refer to its documentation.
After enabling the plugin, the Hide Add to Cart option appears as in the below screenshot:
There are options in the Hide Add to Cart tab, where you can apply restrictions to the Add to Cart functionality.
Let us take a look at how to apply restrictions on the Hide Add to Cart tab. You can choose to hide the Add to Cart button on the Shop Page and(or) Product Page.
Before enabling the Hide Add to Cart option, the products would have the Add to Cart button on the Shop as well as Product Page by default.
Now, let us take an example of a product for which we will be hiding the Add to Cart option both on the Product as well as the Shop page.
Now, if you want to display an Add to Cart button for certain Products on the basis of Category, Name, Tags, or User Roles (in Product and Shop Page), use the settings given below, which are visible after enabling the Exclude Products checkbox.
Here you can exclude Products by Category, Name, Tags, and User Roles.
Let us now take a look at each of the above options to exclude products case-wise.
Case 1: Exclude Products by Category
This option can be used if a user wants to exclude the hide Add to Cart option for some products on the basis of their category.
For example, in the below case, ‘Kurti’ belongs to the product category “Emthing”. So in the Request a Quote plugin settings, we add “Emthing” in the Exclude Products by Category field and save the changes as shown below:
So basically, all the products EXCEPT the products belonging to the Product Category “Emthing” will not have an Add to Cart button.
Note – In the above screenshot only Kurti belongs to the Product Category “Emthing” hence Add to Cart is not hidden for this product.
Case 2: Exclude Products by Name
If a user wants to exclude a product on the basis of the name, you can check the exclude product checkbox and enter the name of the product in Exclude Products by Name field as in the below example.
Example: A user wants to hide the Add to Cart option for products with the name Hoodie. So, we can add the name Hoodie in the Exclude Products by Name field as below.
So basically, all the products with the name Hoodie will not have the Hide Add to Cart option as hidden.
Note – In the above screenshot, Hoodie is the name of the product, hence the Add to Cart option appears only for that product.
Case 3: Exclude Products by Tags
If a user wants to exclude the product on the basis of the product tags, you can use the field Exclude Products by Tags.
For example, we want to exclude the products, which have a product tag as Material, so we can add the tag Material in the Exclude Products by Tags field.
So basically, all the products having the tag Material will be excluded from the Add to Cart option.
Note – In the above screenshot, Clothing has the Product tag as Material, hence the Add to Cart option appears only for this product.
This is how you can easily hide the Add to Cart option even by excluding the products based on the functionalities provided.
To explore more details about the plugin, check out ELEX WooCommerce Request a Quote Plugin.
You can also check out other WooCommerce and WordPress plugins in ELEX.