I've got 2 CPTs from JetEngine called Shop and Coupon which are "connected" via JetEngine relation (one to many). Meaning one Shop can have many Coupons. If you try to translate Shop to 2nd language WPML somehow redefines all of it's relations and you get translated Shop relating to original Coupons and original Shop doesn't relate to any Coupons. Please see this video:
hidden link
Please feel free to work with this website (I have full backup). This bug is severe.
Thank you for contacting WPML support, I'd be happy to help you with this issue.
Please never share your site credentials unless a supporter asks for that and you see a private box to share. This is a public forum and anyone can see your credentials, I removed it.
I've fixed that issue with the following steps:
1. Go to WPML > Settings > Post types translation > Set CPT shop and coupon to "Translatable - only show translated items".
2. Translate the coupon posts.
3. Edit the shop post > select related coupon > update > update translation.
DE Shops are manually translated to their corresponding RU versions.
Coupons are imported automatically in DE language and all relations are set during import to DE Shops. Then I need to use translate Coupons automatically with WPML and all relations should be set accordingly: DE Shops -> DE Coupons, RU Shops -> RU Coupons.
Right now I still have this issue that WPML changes all relations when I translate my Shop so i get DE Coupons -> RU Shop.
Also I am not sure what exactly this line mean:
"3. Edit the shop post > select related coupon > update > update translation."
Thanks for the info, I see now what you mean.
Of course this way it works, however it's basically a manual workaround which takes a lot of time. I assume things should work automatically from the box. Imagine we are going to have thousands of Coupons and for earch reset their relations manually.
I assume if you guys fix the bug (obviously it's a bug) that "WPML redefines relations to wrong language" my issue would be resolved.
Again, my goal is:
DE Shops are manually translated to their corresponding RU versions manually.
Coupons are imported automatically in DE language and all relations are set during import to DE Shops. Then I need to translate DE Coupons automatically with WPML to RU language and all relations should be set accordingly to RU Shops (that are already there). So at the end we get DE Shops -> DE Coupons, RU Shops -> RU Coupons.
1. Create DE shops, don't translate them.
2. Import DE coupons and relation with DE shops > translate DE coupons.
3. Translate DE shops.
The main goal is to translate the coupons before translating the shops or updating the shop translations.
Regarding this compatibility issue, to be able to report this we need to replicate the issue on a clean installation. With this link, you can logged-in directly hidden link
Kindly follow the steps below:
- Don’t restore your site there.
- Install JetEngine plugin.
- Try to replicate the issue with a few coupons/shops.
1. Your solution works. Moreover, I found out that if relation is set at the time when Shop already has a translation, then everything works fine! So I have Shop in DE and RU, then I create new Coupon DE (import) and assign (relate) it to Shop DE, then translate it to RU and it perfectly assigns Coupon RU to Shop RU.
2. I was able to reproduce the issue in your sandbox. Once again - whenever you translate Parent post (Shop) WPML redefines releations for all Child posts. You can try it yourself with Shop 1 EN post (which has Coupon 1-1 RU and Coupon 2-1 RU posts related).
I'm asking our 2nd tier support about this issue and I will update you here when I have something to share.
Meanwhile, you can use the workaround (workflow) to translate coupons and set relations between them.
This issue has been escalated to our compatibility team. They also suggest you follow the correct workflow to translate coupons before translating the shop.
Meanwhile, our compatibility team has informed the plugin JetEngine author about this issue and I will update you here when I have any information. You can help us to push it forward by contacting the plugin author and sharing this issue with them.
FYI, the plugin author has updated their documentation according to the workaround above. hidden link
Thanks.
The topic ‘[Closed] WPML and JetEngine Relations’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.