• Resolved Helen

    (@web09)


    Hi,
    We needed to change the default text for the cart labels (Product, Price, Subtotal) on the cart page so I edited the values in the cart.php file `
    <th class=”product-name”><?php esc_html_e( ‘Product’, ‘woocommerce’ ); ?></th>
    <th class=”product-price”><?php esc_html_e( ‘Price’, ‘woocommerce’ ); ?></th>
    <th class=”product-quantity”><?php esc_html_e( ‘Quantity’, ‘woocommerce’ ); ?></th>
    <th class=”product-subtotal”><?php esc_html_e( ‘Subtotal’, ‘woocommerce’ ); ?></th>`
    and changed the Product, price, and subtotal values for our custom text (Your action, price per unit, total).
    The cart labels show properly in English (main language) but not in the other languages (Spanish, French). I can’t find the strings to translate these custom labels in WPML. The default labels (Product, price, quantity, subtotal) are translated in WPML but they don’t show up on the cart page in the other languages, the cart labels are the same custom ones in English (Your action, price per unit…). How can I translate these cart labels? Is there another way to customize them?

    Thank you

    • This topic was modified 3 years, 7 months ago by Helen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Saif

    (@babylon1999)

    Hello @web09,

    Just to confirm if I understand this correctly, you edited the template for the cart but in other languages, the edited text is showing instead of the transition.

    In that case, the best way to approach this is by changing the text in all these languages using LocoTranslate.

    • First, undo the changes you made to the template.
    • Go to LocoTranslate > Plugins > WooCommerce.
    • Add English if it’s not there as a new language, click on edit, search for these strings from the plugin and change them.
    • Do the same for the other languages.
    • To learn more about translating WooCommerce, you can check the following guide.

      Cheers!

    Thread Starter Helen

    (@web09)

    Hi,
    Yes exactly.
    Thank you for the reply but we are already using WPML to translate and it cannot find the strings. And we also need to edit the default cart labels, we cannot keep the default ones. Is there another way to edit the default cart labels and translate them?

    Thank you

    Hi @web09

    Thanks for your confirmation that you are using the WPML Plugin in translating your site.

    In this case, it might be best to reach out to the plugin’s developers for further assistance here: https://wpml.org/forums/forum/english-support/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Missing cart translation’ is closed to new replies.