How to change “Add to cart” button text in whole website ?

This topic has 6 replies, 4 voices, and was last updated 3 weeks, 5 days ago ago by Ayan Rahman

  • Avatar: Lasitha851
    Lasitha851
    Participant
    February 12, 2026 at 08:16

    Hi,

    I want to update “Add to cart” button to “Add to bag”

    how to do it ?

    5 Answers
    Avatar: Samir Malik
    Samir Malik
    Support staff
    February 12, 2026 at 08:29

    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

    Avatar: Lasitha851
    Lasitha851
    Participant
    February 12, 2026 at 10:54

    Thank you. It’s worked.

    Can I now how to update “Buy Now” text also.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 12, 2026 at 11:00

    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

    Avatar: Lasitha851
    Lasitha851
    Participant
    February 16, 2026 at 12:01

    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.

    Files is visible for topic creator and
    support staff only.
    Avatar: Ayan Rahman
    Ayan Rahman
    Support staff
    February 16, 2026 at 13:45

    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

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.