Hi,
I want to update “Add to cart” button to “Add to bag”
how to do it ?
This topic has 6 replies, 4 voices, and was last updated 3 weeks, 5 days ago ago by Ayan Rahman
Hi,
I want to update “Add to cart” button to “Add to bag”
how to do it ?
Hello,
Please add the following code to the functions.php file located in your child theme:
// Change "Add to Cart" button text on the single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_cart_button_text' );
// Change "Add to Cart" button text on product archive pages
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_cart_button_text' );
function custom_cart_button_text() {
return __( 'Add to Bag', 'woocommerce' );
}
We hope this helps.
Best regards,
8Theme Team
Thank you. It’s worked.
Can I now how to update “Buy Now” text also.
Please add the following code to the functions.php file located in your child theme:
// Change "Buy now" button text
add_filter( 'etheme_buy_now_button_text', 'custom_buy_now_button_text' );
function custom_buy_now_button_text() {
return __( 'Buy now', 'xstore' );
}
Best Regards,
8Theme’s Team
Thank you for reply.
Check this SS. I need to change this kind of things in whole website.
I need to update all as CART -> BAG , ADD TO CART -> ADD TO BAG
Thank you.
Hi,
Thank you for reaching out to us.
Could you please provide the URL and temporary wp-admin access? We need to check your settings.
To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.
Warm Regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up