This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's team of developers has an automatic algorithm for updating products from a CRM system. They encountered an issue where prices and quantities in translated products are not automatically synchronized with the main language when using the
WC_Product::save()
method.
Solution:
We recommend using the REST API to update products, as it should synchronize correctly. Alternatively, the client can utilize the
save_post
or
update_post
hooks to trigger synchronization. We also suggest looking into syncing custom fields between products using their own hooks. For further reference, the client can check out a similar case:
If this solution does not seem relevant, please feel free to open a new support ticket in our forum for personalized assistance: WPML Support Forum.
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 3 voices.
Last updated by 1 year, 2 months ago.
Assisted by: Dražen.