This is the technical support forum for WPML - the multilingual WordPress plugin.
|May 2, 2019 at 8:57 am #3722907|
We have a WooCommerce eshop which is connected to the client's ERP.
We can not update the ERP orders, for orders made in the second language.
Any ideas / advice on how to solve this?
Any chance to help me with the following possible solutions?
|May 2, 2019 at 11:26 am #3724123|
Languages: English (English )
Timezone: Europe/Zagreb (GMT+02:00)
Thank you for contacting WPML support!
Given the complexity of your setup, I hope that these answers will help you:
- Is there a way to always save WooCommerce orders in the main language and products saved in order to be from the main language and not the second?
This is not possible, not there is an option for this. However:
- Is there a way to save the translated into the second language products with the same product ID as the product in the main language?
This is not up to WPML, but up to WordPress in fact. Because WPML does not create its custom posts that are translations, these translations are regular posts/pages/etc. What WPML does is that it creates language links between those posts/pages/any translated content:
There is something you might want to consider, but this is way outside of the scope of the support and you will need to consult https://wpml.org/contractors/ for this. My idea would be something like:
But any of these functions would need to fire before an order has been placed I'd say, so that this data is placed into orders and hence, into your ERP system.