Apply Coupon and Update Cart translation doesn't work

Hi,

I have found that the text "Apply coupon" and "Update cart" are in english even if my site is in spanish.

I have also allocated the issue on /woocomerce/cart/cart.php file:

                <div class="coupon">
                            <label for="coupon_code"><?php _e( 'Coupon:', 'woocommerce' ); ?></label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" /> <input type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>" />
                            <?php do_action( 'woocommerce_cart_coupon' ); ?>
                        </div>
                    <?php } ?>

                    <input type="submit" class="button" name="update_cart" value="<?php esc_attr_e( 'Update cart', 'woocommerce' ); ?>" />

All you need to do is change that to be <?php esc_attr_e( 'Apply Coupon', 'woocommerce' ); ?> and <?php esc_attr_e( 'Update Cart', 'woocommerce' ); ?> and should be back to normal

Comments

  • edited November 2017
    Hi,

    I'm using BETheme in combination with Woocommerce and after last update I get the same fields in English instead of German.
    I don't use WPML - this site is in German only.

    Example:
    1) https://www.pauritsch.com/shop/warenkorb/ > Return To Shop
    2) Apply Coupon and Update Cart Buttons after somethin is in Cart - see https://www.dropbox.com/s/kam506e378imw0g/Screenshot 2017-11-15 18.06.22.png?dl=0

    It would be nice if you provide some infos how to translate this buttons again.
    Other Buttons like "Weiter zur Kasse" (go to checkout) are translated correctly
  • Hey,
    those are woocommerce translations, we do not change them. They should translate to the main wordpress language you have set. If there are problems we suggest reinstalling the plugin. If the problem persists please also try to disable all other plugins.
    thanks
  • Hi,
    I talked with woo commerce and got the following answer:

    ...

    One thing I noticed is that the cart page templates in the theme are quite outdated:

    betheme/woocommerce/cart/cart-empty.php Version 2.0.0 ist veraltet. Die Hauptversion ist 3.1.0, 
    betheme/woocommerce/cart/cart.php Version 2.3.8 ist veraltet. Die Hauptversion ist 3.1.0, 
    betheme/woocommerce/cart/mini-cart.php Version 2.5.0 ist veraltet. Die Hauptversion ist 3.2.0, 
    

    Additionally, the translation file is over a year old and doesn't have a base .pot file, so I'm wondering if there could be some conflict between WooCommerce and theme translations:

    Screenshot

    Screenshot: http://cld.wthms.co/5mlIBI

    You may need to update the BeTheme, or check this
    with the theme authors.

    Please let us know if that solves the problem.

    ....


    Thx in advance for your help

  • Hello,
    Yes this is true, to fix this please:
    1. Download the newest version of betheme from themeforest
    2. Remove the theme completly from your FTP and install a fresh theme
    3. Install and update woocommerce to the newest version
    Please remeber to make a backup before you take any actions. Update will not help, you need to remove the theme manually.
    It is important to not overwrite the theme files but remove them completly.
    thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.