This thread is resolved. Here is a description of the problem and solution.
Problem:
You are developing a site using WPML for automatic translation and need WPML to translate products before they are synchronized with another webshop in multiple languages. You are looking for a way to prioritize WPML translations over the WooMultistore script.
Solution:
While WPML provides various hooks for customization, simply prioritizing hooks may not be sufficient due to the complex workflow of automatic translation processes. Instead, we recommend delaying the synchronization script that sends data to the other webshop. Typically, actions and filters in WordPress, including those used by WPML, have a default priority of 10. You can set your synchronization script to a very high priority number (e.g., 999) to ensure it executes after translations are complete. Additionally, you can use the wpml_element_has_translations hook to check if a post or taxonomy term has been translated.
Since the "WPML WooCommerce Multistore Add-On" is maintained by WooMultistore, it's also a good idea to consult their support for advice on adjusting the synchronization script to accommodate translation completion.
Please note that this solution might be outdated or not applicable to your specific case. If this does not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
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 0 voices.
Last updated by 1 month, 3 weeks ago.
Assisted by: Waqas Bin Hasan.