• I’m having trouble with the product name in the WooCommerce cart on this testsite: http://dannycalders.be/wp/.

    When viewing the cart the product name shows both languages together (ex. “StoofvleesStewmeat”) instead of the english description for english and the dutch one for dutch. In the rendered HTML I can see that the name is rendered as <!--:nl-->Stoofvlees<!--:--><!--:en-->Stewmeat<!--:-->, but is hasn’t been picked up by qtranslate.

    I’m using WP 3.8.2, qtranslate 2.5.39 and WooCommerce 2.1.2 on the vanilla Twenty Fourteen theme.

    Has anyone come across this problem?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same problem after updating Woocommerce to 2.1.2 version…

    I tried to use it but when I activate that plugin I get the following error all over my website:

    Warning: Illegal offset type in isset or empty in /public_html/wp-includes/pomo/translations.php on line 72

    Any suggestions?

    I got the same problem. Seems like the qTranslate mechanic doesn’t work for the WooCommerce Cart (both the regular cart and the cart-widget).

    @stevenvd: I remember this error-line too – do you have some other translate-Plugins installed? (I played around with something called “IM8 qTranslate WooCommerce” yesterday)

    Add this line on your functions.php

    add_filter(‘woocommerce_cart_item_name’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’, 0);

    and before refresh site clean cache site on woocommerce->system status->tools->Clear all Sessions

    Hi,

    this helped me as well with the cart but I still have the names on my order confirmation email.

    Do you have a code to fix that too?

    Thank you

    It gets shown multiple times on the checkout page which creates the confirmation email.

    Hello!

    To remove the multiple titles on the checkout page I added this to functions.php:

    add_filter(‘woocommerce_in_cart_product_title’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’, 0);

    Also added this one:

    add_filter(‘woocommerce_order_table_product_title’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’, 0);

    For the multiple titles in the processing order after ordering!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘cart product name not translated’ is closed to new replies.