Translate specific part of the woocommerce template

0

Hello, I can not find the file to translate the text "Product successfully added to your cart." Along with the "Continue Shopping" button.

ps: I have already tried to open several language files in poedit but still unsuccessful.

    
asked by anonymous 15.04.2015 / 20:43

3 answers

1

Go to woocommerce-functions.php and look for the function that contains the 'woocommerce_add_to_cart_message' property to change the message "Product successfully added to your cart."

For the message on the button look for the my_cart_messages function in that same file.

    
15.04.2015 / 21:19
1

Update your WooCommerce version 2.3.5 to 2.3.7 which is the latest version. It will probably show the prompt to update the translation too, if it does not appear, go to WooCommerce > System Status > Tools and click the Force Translation Update button. This latest version of WooCommerce is 100% translated into Portuguese from Brazil. In addition it has 99% of the translated frontend to Portuguese of Portugal.

This way it has to work.

However, if it is not already working, it may be changing by some plugin or theme. In this case I recommend you try translating with the Codestyling Localization plugin.

    
16.04.2015 / 18:42
0

I was able to find the file to edit these texts! Follow the path ..

/wp-content/themes/seutema/includes/theme_woocommerce.php
    
24.04.2015 / 22:46