Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Send Woocommerce new order notifications to different mail address based on the language
Solution:
Update wpml-config.xml with the below code:

<wpml-config>
  <admin-texts>
    <key name="woocommerce_new_order_settings">
      <key name="recipient"/>
    </key>
  </admin-texts>
</wpml-config>

Then navigate to WPML > String Translation & you will be able to see the domain "admin_texts_woocommerce_new_order_settings"
Click on translation & you will be able to update the mail address for all languages.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by charlieD-4 4 years, 9 months ago.

Assisted by: Rohan Sadanandan.

Author Posts
July 9, 2019 at 8:59 am #4168821

charlieD-4

Hi

Is it possible to send the woocommerce new order notification based on the users language. E.g. on the NL site the orders would go to nl@example.com and the EN site orders would go to en@example.com?

Many Thanks

July 9, 2019 at 3:04 pm #4172263

Rohan Sadanandan

Hello,

Thank you for contacting WPML Support.

I am working on the same.

Will update you soon.

Thanks,
Rohan

July 10, 2019 at 9:03 am #4177455

Rohan Sadanandan

Hello,

For enabling this functionality,

Please add the below code to WPML > Settings > Custom XML configuration

<wpml-config>
  <admin-texts>
    <key name="woocommerce_new_order_settings">
      <key name="recipient"/>
    </key>
  </admin-texts>
</wpml-config>

Once this is done, navigate to WPML > String Translation & you will be able to see the domain "admin_texts_woocommerce_new_order_settings" (Please check attached screenshot)
Then just click on translations & you will be able to update the email address for all languages.

If you have any doubts, please let me know.

Thanks,
Rohan

translations.PNG
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.