Hi Justin,
The problem was forwarded to us, as stated by the WPML colleague, so a task already exists.
I have added your report for the sake of completeness.
Check if post is a translation by using wpml_object_id - WPML to get the defaults language element.
Check if the post currently in scope, which at this point can be assumed to be translated is not using the âmanual translationâ, since users probably would like to have full control when duplicating and not using the translation editor
Iterate over the content and check for elements with interactivity for popups. Whenever a popup is mentioned map the popup element id to the wordpress template post id in the source language.
For each popup in source language try to get the translation like in step 3 and return the element id of the popup if found. Replace in content
Done.
Since the popup template is already translatable, this should work if bricks provides functionality to get template post_id for an element_id.
I have interactions on 4 different pages and the weird thing is theyâre working well on one page, but they donât work on the other 3 pages. WPML seems to be problematic with Bricksâ advanced features.
Iâm facing the same issue with âWPML multi-currencyâ on popups.
Iâve created a paywall Popup, and the product price is not shown on multi-currency, only on the default currency. On the rest of the site, multi-currency prices are shown fine. The issue is on popups.
Same issue also happens on other ajax queries, like infinite scrolls on query loops.
UPDATE: WPML multi currency was giving some other Ajax issues, apart of popups. so uninstalled and tried âFOX - Currency Switcherâ which works perfect on popups.
For me the problem persists, in my case I have the interaction inside the header template, both the condition and the interaction are faulty. Iâm using version 1.11.
In the case of the condition for the post id of a specific page, when I enter the page in English it doesnât work.
And in the case of the interaction, itâs a popup that doesnât open either and the data-interactions shows the templateId of the native language and not the translated one.