Support » Plugin: WooCommerce » Help Please! Add to Bag?

  • Hi all,

    I’m running the latest version of WP 4.71, along with Woocommerce 2.6.11.

    In addition, I use the Dante Child theme and my site language is set to English (United States).

    The problem is that in Woo, all products have “Add to Shopping Bag” instead of “Add to Cart” showing. I would much prefer that the entire store has “Add to Cart”!

    I’ve tried a few of the plugins to change the text and no luck.

    Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The Woo recommended plugin for this purpose is:
    https://wordpress.org/plugins/loco-translate/

    Activate, then:
    Dashboard > Loco Translate > Plugins > WooCommerce > your-language > Edit
    Click the Sync button to make sure the translation file includes all the strings
    Filter for the phrase you want to change.

    If you have a WooCommerce-aware theme with template overrides, it may have its own strings.
    Dashboard > Loco Translate > Themes > your-theme-name > your language > Edit
    Sync & Filter

    In this context, “translation” includes using different words in the same language.

    Hi,
    Add this code to your child theme’s functions.php

    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );    // 2.1 +
     
    function woo_custom_cart_button_text() {
     
            return __( 'Add to Cart', 'woocommerce' );
     
    }

    For more info, look at
    https://docs.woocommerce.com/document/change-add-to-cart-button-text/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help Please! Add to Bag?’ is closed to new replies.