Skip Navigation

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 Long Nguyen 1 year, 5 months ago.

Assisted by: Long Nguyen.

Author Posts
July 24, 2023 at 3:35 pm #14091007

shalomg

Issue
With WPML enabled, when QPilot GETs products for the Daily Sync from the WooCommerce REST API, your site is not able to return any product data for the (requested) French product Ids ONLY.

What We Did
• Reviewed Server Access Logs for details of Sync requests made to site to verify invalidated products were included in the Sync request
• Attempted running sync requests using the POSTman API tool (eg. GET WC products by Id using the includes parameter like QPilot does)
• Disabled WPML plugins for weekend - screenshot - and tested to verify if the Product Ids invalidated by the daily sync invalidated after disabling WPML plugin & extensions
• Reviewed products on staging site Monday (today) morning for visual confirmation ALL products synchronized successfully
• Reviewed online for common issues experienced by merchants using WPML
What We Found
• Verified the (French) products with sync errors daily, were being included in QPilot's daily sync requests
• After disabling the WPML plugin, the French Product Ids no longer had an issue with going out of sync (after re-syncing them manually) - screenshot
• Many merchants online have reported WPML's configuration "locking" products / product data in many different ways / scenarios

What This Means:
In summary, the WPML plugin 'locking' the product data for translated products appears to be blocking QPilot from getting data based on the Product Id's and is likely caused by how they manage the translated products compared to the original products (even though they are separate product Id's).

Testing Steps We Took
1. Disable WPML plugins - screenshot
2. Bulk sync all French invalid products from WP-Admin > Products (bulk actions)
3. Wait for daily sync ~01:00 UTC
4. Verified Sync requests are being made to site and include the id's of the French and English products
5. Verified Products remained synced Sat-Mon
6. To see the issue return, re-enable the WPML plugin & extensions

July 25, 2023 at 4:58 am #14093005

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

When enabling the plugin WooCommerce Multilingual (WCML), the product data section of the translation product is locked to prevent manually changing the data in the second language. The data will be synced automatically by WCML.
However, the third-party plugin or a custom function can still get the product data in the database or a WooCommerce function based on the translated product ID (French language).
Please read more in the documentation
https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/
https://wpml.org/wpml-hook/wpml_object_id/

The plugin "Autoship Cloud powered by QPilot" is not available in our list of compatible plugins, which you can check here https://wpml.org/plugin/
I suggest you contact the plugin author and ask them to join our Go Global program where our Compatibility developers will help them to make their product compatible with WPML.
https://wpml.org/documentation/support/go-global-program/

Look forward to your reply.
Thanks

July 25, 2023 at 1:57 pm #14097097

shalomg

Hi Long! Thanks for the prompts answer. I had the feeling that the translations are blocked for writing but I was surprised that they are also blocked for reading.

I passed over the links to the Qpilot devs to see if they can do something with their API calls to adapt to the WPML logic.

Thanks!

July 26, 2023 at 1:13 am #14099123

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Let me know if you have any questions.

Thanks.