• Hi, I’m sorry but I have another question :-))

    I’m currently testing the plugin a lot for future use on a new project and I ran into a little confusion in order administration.

    First language: CZ
    Second language: EN – translation

    1. If I make an order for a simple product in a second language, the product name is displayed in the second language fine -> everything is displayed OK in the administration
    2. If I make an order in a second language for a variable product, the product is displayed in the admin in the first language and the property is displayed in the second language.

    https://ibb.co/XjmXKJn

    Subsequently, this wrong combination for me is incorrectly sent to the customer’s email after updating the order status in the admin

    Many thanks for your help

    BR

    Du?an

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author sbouey

    (@sbouey)

    Hi,

    The free/lite version send only mail in the default language, the Falang pro version add some feature and translate emails

    Stéphane

    Thread Starter blacksnowdev

    (@blacksnowdev)

    Thank you for your response. I will just add from the clippings that I placed with the administration and where there are two different languages.

    Is this fixed in the pro version?

    Thank you

    Plugin Author sbouey

    (@sbouey)

    Hi,

    I have make locally some test for an order of custom product with attribute in a secondary language

    in front-end i have this for a french order (english default)

    https://snipboard.io/YMPQIu.jpg

    the admin section display this order

    https://snipboard.io/2Thj0n.jpg

    The attribute are in the default language and the product name too but you are right longeur (large in enlish) is written

    Stéphane

    Thread Starter blacksnowdev

    (@blacksnowdev)

    How do you think it should be right? Personally, I think it should be in the language chosen by the customer?

    Do you think it would be possible to “fix” this?

    BR

    Du?an

    Plugin Author sbouey

    (@sbouey)

    Hi,

    I think there ae nothing to fix for the order attribute , store/display in the order the default language is probably the right think to do.

    I have to look locally why have “longeur” in the product title and not “large”

    Stéphane

    Thread Starter blacksnowdev

    (@blacksnowdev)

    Hi,

    I looked at how the product is stored in the DB.

    The product is already saved, I looked at the WPML plugin (I want to leave!!) and it saves data according to the language that is on the frontend. I wrote a smaller function that saves the product according to the language on the frontend, I don’t know if it’s a perfect solution, but it works.

    add_action('woocommerce_new_order_item', array($this, 'woocommerce_new_order_lang'), 10, 3);	
    public function woocommerce_new_order_lang($item_id, $item, $order_id) {
    if (!Falang()->is_default()) {
    $falang_post = new \Falang\Core\Post($item['product_id']);
    $post = get_post($item['product_id']);
    $item_name = $item->get_name();
    $translate = $falang_post->translate_post_field($post, 'post_title', Falang()- >get_current_language(), $post->post_title);
    $new_name = str_replace($post->post_title, $translate, $item_name);
    $item->set_name($new_name);
    $item->save();
    }
    }

    I’m really trying to find an alternative to WPML that’s why I have so many questions.

    BR

    Du?an

    Plugin Author sbouey

    (@sbouey)

    Thanks for the code , i have to think about it but perhaps i can add a checkbox or put a small documentation on faboba site for this.

    I don’t understand why you want to have the attribute saved in order language ?

    Stéphane

    Thread Starter blacksnowdev

    (@blacksnowdev)

    Hi,

    It seemed like the best solution, but I went through other stores today. And I opted for a solution without including the property in the product name.

    In the story, the entry will look like this: https://ibb.co/3SYNb9g

    My last question on this topic, how is the email support in Falang PRO? Are the product name and product features translated for the language of the customer’s order in the individual emails for the customer? https://ibb.co/TRDdGgt

    If everything is translated into the customer’s language, I will gladly buy the plugin ??

    BR

    Du?an

    Plugin Author sbouey

    (@sbouey)

    Fort the Falang pro version and email translation , i have choosen to make like polylang and allow the translation in the Falang > String translation

    https://snipboard.io/umGKX9.jpg

    Normally all is translated, i’m fixing in the pro version, don’t worry in case of problem i make money back. which almost never happens on all of my components

    Stéphane

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Woo Variable product name in administration’ is closed to new replies.