Change label on WooCommerce Add To Cart button

Here is another quick tweak in case you want to change the label on default WooCommerce Add To Cart button in your WordPress E-commerce website.

If you want to change label on Add To Cart button in WooCommerce just use the following code in your functions.php file:

// on single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); 
function woocommerce_custom_single_add_to_cart_text() {
    return __( 'order now', 'woocommerce' ); 
// on product archives page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );  
function woocommerce_custom_product_add_to_cart_text() {
    return __( 'Order', 'woocommerce' );

That should do for the most of the themes. For me it worked in Hello Elementor theme, and I hope it works for you too.

Also note that I used the word Order in archive pages and order now on single product page. You can use whatever you like for your theme.

Cheers 😉

Categorized as WordPress

By janoshke

Web developer and IT consultant. Freelancer with full respect for OpenCart and WordPress. Gamer, (ex)drummer and parent.

Leave a Reply