Clear the caching by adding something to cart, it should force it to work.
Kadence Themes
Mm…It still behave the same.
Maybe you can please take a look at my shop: http://feju-fashion.com
and see what I mean.
hmm yeah strange… might be something with the plugin.. try just opening the file lib/custom-woocommerce.php
Scroll to the bottom and change the text on line 96
Kadence Themes
Based on your hint I found out that there are two files affecting “Your Cart”, they are:
1. templates/header.php
2. lib/custom-woocommerce.php
The code that I found on both place:
<?php _e(‘Your Cart’, ‘virtue’);?> – <?php echo $woocommerce->cart->get_cart_total(); ?>
So my child-theme translation actually takes effect on the header.php, which is the first phase.
Your suggestion/modification takes effect on the second phase.
My next big question, why having this piece of code in two seperate files, which fires up in sequence?
Because of ajax, the function fires when you add an item to cart with ajax. You need both for ajax updating to work.
Either way they are both on the same text domain so I don’t know why one translation is taking effect and the other isn’t.
Kadence Themes
I have a similar issue with the ‘View Cart’ button which is not translated.
I use Virtue latest version 2.4.6 and Polylang.
Working in French, After ordering a product I would expect to see ‘Voir Panier’ or something similar and I see ‘View Cart’.
I could not find where I can change this.
Rgds, Michel
I found where I can change the ‘View Cart’ text, although it does not fix the translation bug this allows a “manual” translation:
In wp-content/plugins/woocommerce/includes/wc-cart-functions.php line 91 (and line 79 for “succesfully added…”)
mdevathaire, On what page?
Do you have a french translation file for woocommerce? have you updated the theme french translation files to include all the strings you need?
Kadence Themes