1. Home
  2. /
  3. Docs
  4. /
  5. Customize Add to Cart But...
  6. /
  7. How to
  8. /
  9. Customizing Add to Cart T...

Customizing Add to Cart Text by Category

Enhancing the customer experience often lies in the details. One way to achieve this is by tailoring the “Add to Cart” button text based on product categories in your Woo Commerce store. This approach allows you to create targeted calls to action that resonate better with customers browsing specific product types.

pasted image 0 87

Accessing the Add to Cart Button Labels Feature

To personalize the “Add to Cart” button text by category, navigate to your WordPress dashboard.

  • Locate the WooCommerce menu and click on Settings.
  • Within the WooCommerce settings, find the tab labeled Add to Cart Button Labels.

Customizing Text for Product Categories

The Add to Cart Button Labels feature offers a dedicated section for Per Category customization.

Here’s how to leverage this section

  • Enable Section: Check the box next to Enable section to activate category-based button text customization.
  • Total Category Groups: This field allows you to define multiple groups of category-specific button text settings. While optional, it can be helpful for organizing a large number of categories.
  • Enable Group: Click the checkbox next to Enable group #1 (or whichever group you want to configure). This activates the settings within the chosen group.
  • Enable: Check the box next to Enable to allow specific button text customization for this group.
  • Categories: Select the categories you want to include in this customization group by checking their boxes. You can choose multiple categories for a single group.

Crafting Category-Specific Text

Once you’ve selected your categories, you can define unique button text for both the,

  • Single product page: This is the text displayed on the individual product page where customers view detailed information.
  • Shop page: This is the text shown on the product listing page.

Utilizing Shortcodes (Optional)

The plugin provides shortcodes that dynamically insert relevant product information into your button text, offering further customization,

  • [alg_wc_atcbl_user_name]: Inserts the customer’s username (if logged in).
  • [alg_wc_atcbl_product_title]: Displays the product title.
  • [alg_wc_atcbl_product_price]: Inserts the product price.
  • [alg_wc_atcbl_product_stock]: Shows the product’s stock availability.
  • [alg_wc_atcbl_product_meta]: Allows incorporating specific product meta data.
  • [alg_wc_atcbl_product_func]: Enables integration with custom functions for advanced customization.
  • [alg_wc_atcbl_translate]: Facilitates translation of button text for multilingual stores.

Remember to Save Changes

After customizing your category-specific button text settings, ensure you click the Save changes button located at the bottom of the page. This activates your modifications across your shop and product pages.

By leveraging category-based button text customization, you can create a more engaging and targeted shopping experience for your customers. This approach allows you to tailor calls to action that resonate with specific product categories and their audiences.