Overview #
The WooCommerce Add to Cart Labels plugin allows you to change the Add to Cart button text based on the product type, the product category, or individual products. It allows you to provide a customized experience to your customers.
Enabling Add to Cart Labels in WooCommerce #
To enable and use the More Button Labels plugin, you should first download and install Booster for WooCommerce.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > BUTTON & PRICE LABELS > Add to Cart Labels.
The WooCommerce Add to Cart Labels Module Options page will be displayed.
2. In the Add to Cart Labels section, check the box for Enable Module field.
3. Scroll down to the end of the page and click Save changes.
The WooCommerce Add to Cart Labels plugin will be enabled for your site.
Customizing Button for Product Category #
You can customize the Add to Cart button for selected product categories using this option.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > BUTTON & PRICE LABELS > Add to Cart Labels.
The Add to Cart Labels Module Options page will be displayed.
2. To customize the Add to Cart button text for product categories, check the box for the Per Category Labels – Enable Section field, in the Per Category Options section.
3. Enter the number of categories for which you want to customize the Add to Cart button in the Category Groups Number field and click the Save changes button next to it.
4. Enter/select required values for the fields. Refer to the table below for field descriptions:
Field | Description |
Group #1 – Enable | Specifies if the option to customize the Add to Cart button for the group is enabled |
Group #1 – categories | Product category(ies) for which the Add to Cart button is customized |
Group #1 – Button text – single product view | Text/label of the Add to Cart button that will be displayed for single product views |
Group #1 – Button text – product archive (category) view | Text/label of the Add to Cart button that will be displayed product category pages |
5. Repeat step 4 for as many product categories as required.
6. Scroll down to the end of the page and click Save changes.
The Add to Cart button will be customized for the selected product categories.
Output #
A sample category page of the category Clothing with the Add to Cart button customized as BUY THIS NOW! is shown in the below screenshot:
A sample product page with the Add to Cart button customized as BUY THIS NOW! Is shown in the below screenshot:
Customizing Button Per Product #
You can customize the Add to Cart button for selected products using this option.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > BUTTON & PRICE LABELS > Add to Cart Labels.
The Add to Cart Labels Module Options page will be displayed.
2. To customize the Add to Cart button text for individual products, check the box for the Per Product Labels – Enable Section field, in the Per Product Options section.
The Booster: Custom Add to Cart tab will be added to the edit mode of all product pages.
3. Navigate to WordPress Dashboard > Products > All Products.
The Products page will be displayed.
4. Click Edit for the product to which you want to customize the button.
The Edit product page will be displayed.
4. Scroll down to the Booster: Custom Add to Cart section.
5. Enter the text/label of the Add to Cart button that will be displayed on the product page in the Single product view field.
6. Enter the text/label of the Add to Cart button that will be displayed on the product category archive pages in the Product category (archive) view field.
7. Click Update.
Note: You must update the page to view the changes on your product page. You cannot preview the changes as you would preview any other changes on a WordPress page.
The WooCommerce add to cart button will be configured and reflected on the product page.
Output #
A sample product with the Add to Cart button customized as BUY THIS ACCESSORY! Is shown in the below screenshot:
Customizing Button for Product Type #
You can customize the Add to Cart button for selected product types using this option.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > BUTTON & PRICE LABELS > Add to Cart Labels.
The Add to Cart Labels Module Options page will be displayed.
2. To customize the Add to Cart button text for product types, check the box for the Per Product Type Labels – Enable Section field, in the Per Product Type Options section.
3. Enter/select required values for the fields. Refer to the table below for field descriptions:
Note: The sections Simple product, Variable product, External product, Grouped product, and Other product all have the same set of fields. The field descriptions given in the below table are applicable to the fields of all the sections.
Field | Description |
Single product view | Text/label of the Add to Cart button that will be displayed for single product views |
Product category (archive) view | Text/label of the Add to Cart button that will be displayed for product category views |
Products not in stock. Product category (archive) view | Text/label of the Add to Cart button that will be displayed for category views of the products which are not in stock |
Products on sale. Single product view | Text/label of the Add to Cart button that will be displayed for single product views of the products which are on sale |
Products on sale. Product category (archive) view | Text/label of the Add to Cart button that will be displayed for category views of the products which are on sale |
Products with price set to 0 (i.e. free). Single product view | Text/label of the Add to Cart button that will be displayed for single product views for which the price is set to zero |
Products with price set to 0 (i.e. free). Product category (archive) view | Text/label of the Add to Cart button that will be displayed for category views of the products for which the price is set to zero |
Products with empty price. Product category (archive) view | Text/label of the Add to Cart button that will be displayed for category views of the product views for which the price is not set. |
Already in cart. Single product view | Text/label of the Add to Cart button that will be displayed for single product views of the products that are already in the cart |
Already in cart. Product category (archive) view | Text/label of the Add to Cart button that will be displayed for category views of the product views that are already in the cart |
4. Repeat step 3 for all the sections for which you want to customize the button.
5. Scroll down to the end of the page and click Save changes.
The Add to Cart button will be customized.
Output #
A sample page with the Add to Cart button customized for different scenarios is shown in the below screenshot: