How to change “Add to Cart” button text

USING WOOCOMMERCE FUNCTION

Here is the function for changing the Add to Cart button text on woocommerce product page. This is required when you want to change the default text on each product which says “Add to Cart” with your own text.

Suppose we want to change it to “Book Now”. Bellow is the code for using within functions.php of the active theme.

add_filter(‘woocommerce_product_single_add_to_cart_text’, ‘woo_custom_cart_button_text’);

function woo_custom_cart_button_text() {
    return __(‘Book Now’, ‘woocommerce’);
}

source: http://www.worldclassthemes.com/

Using Add to Cart Button Custom Text Plugin

This plugin allows you to change the Add to cart text shown on the button used to buy a product in WooCommerce. You will be able to use different custom texts for:

Single product page:

  • Simple product (default: Add to cart)
  • External/Affiliate product (default: Buy product)
  • Grouped product (default: Add to cart)
  • Variable product (default: Add to cart)
  • Bookable product (WooCommerce Bookings) (default: Book now)

Archive pages (shop, category, tags…):

  • Simple product (default: Add to cart)
  • External/Affiliate product (default: Buy product)
  • Grouped product (default: View products)
  • Variable product (default: Select options)
  • Bookable product (WooCommerce Bookings) (default: Book now)

So you could choose up to ten different texts as per the type of product and the place it’s displayed. Just activate it and go to Settings > Add to Cart Button to choose your preferences. Default WooCommerce texts are used for default configuration. ASCII emojis are supported.

Supports bookable products provided by the WooCommerce Bookings plugin.

visit : https://id.wordpress.org/plugins/add-to-cart-button-custom-text/

Share This ..

Leave a Reply

Your email address will not be published. Required fields are marked *