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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 2 months ago.

Assisted by: Long Nguyen.

Author Posts
June 27, 2023 at 1:19 pm #13902971

irinaT-6

Hi there WPML Team!

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.

Many thanks,
Alex.

June 27, 2023 at 1:20 pm #13902973

irinaT-6

please use takenjoy.de/wp-admin/

June 28, 2023 at 7:20 am #13907149

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi Irina,

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.

Let me know if it works on your end.

June 28, 2023 at 7:45 am #13907327

irinaT-6

Hi there.

Please let me explain what I need:

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.

June 28, 2023 at 9:02 am #13908461

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

The workflow should be:
- Translate the coupon first
- Add the relationship when editing the shop
- Translate the shop

Here is a screen record on my side hidden link

Look forward to your reply.
Thanks

June 28, 2023 at 9:29 am #13908575

irinaT-6

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.

Thanks.

June 29, 2023 at 3:25 am #13914593

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

Please try these steps and see if it helps:

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.

Look forward to your reply.
Thanks

June 29, 2023 at 7:38 am #13915463

irinaT-6

Hi,

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).

Thanks,
Alex.

June 29, 2023 at 9:08 am #13916015

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

Thanks for your confirmation.

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.

Regards.

July 5, 2023 at 8:02 am #13946789

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

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.

Thanks.

March 29, 2024 at 7:51 am #15463263

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

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.