Support » Plugin: WooCommerce Multilingual & Multicurrency with WPML » Translation of the “View Order” page?

  • Hello there and thank you for this plugin!
    Just a quick question, is it possible to translate the order page? and more specifically the “view order” page?

    For example, if someone orders a product from another language than the source one. Let’s say, if the store is in English and someone order a product from the Spanish website, the order page shows the English product when I click on “view order”.

    I would like to see the Spanish product (the translation) here instead of the English one (the original English product).
    I need this mainly because of another plugin that needs to get the final (real) product. When the customer gets the e-mail receipt, it’s correctly translated, but not on the order page, why?
    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    The order is displayed in your profile language. This is the normal way that WooCommerce Multilingual works.
    However, the order product is always saved correctly in the woocommerce_order_items table.
    If you want to get it via custom code – there is with the name in the buyer’s language.

    If you wish to hack the code – then you can either disable the filter in \woocommerce-multilingual\inc\class-wcml-orders.php

    
    add_filter( 'woocommerce_order_get_items', array( $this, 'woocommerce_order_get_items' ), 10, 2 );
    

    And this will make the order item appear in the buyer’s language – but I cannot guarantee how and if this will be compatible with any other changes and the consequences of this change. (e.g. you might cripple your site if you are not careful)

    Thread Starter Testing Things

    (@atx)

    Hello George and thank you for the quick and useful support you provided!
    It works.
    Regards.

    I am happy to help!

    Have a nice weekend!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translation of the “View Order” page?’ is closed to new replies.