Skip Navigation

[Resolved] Reopen: Conditional block based on taxonomy does not work on translated sites

This thread is resolved. Here is a description of the problem and solution.

Problem:
I want to reopen this topic: https://toolset.com/forums/topic/conditional-block-based-on-taxonomy-does-not-work-on-translated-sites/ because the solution proposed it doesn't work...
Solution:
The key here is to add both slug categories (Catalan and English) in the original language condition, like this: https://snipboard.io/nOpM21.jpg
So, whenever you add an original language condition, you need to add the translated ones as well, in the same 'condition editor'
Relevant Documentation:
https://toolset.com/forums/topic/reopen-conditional-block-based-on-taxonomy-does-not-work-on-translated-sites/#post-2617097

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 3 replies, has 2 voices.

Last updated by marF 10 months, 1 week ago.

Assisted by: Mateus Getulio.

Author
Posts
#2615519

Hi,
sorry for the delay...

I want to reopen this topic: https://toolset.com/forums/topic/conditional-block-based-on-taxonomy-does-not-work-on-translated-sites/ because the solution proposed it doesn't work...

Thanks,
Mar

#2615941

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Mar,

Welcome back to our support forum! I'll be glad to help you 🙂

As Christopher asked in the previous thread, could you please show us the template where the mentioned condition block is located?

Also, I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/privacy-policy-and-gdpr-compliance/#data-shared-with-our-support
**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

#2617097

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Mar,

Thank you for providing the credentials.

Upon further inspection, we could solve the issue by following these steps:

- First, we enabled ATE for new translations in WPML -> Settings -> Translation Editor
- Then, we duplicated the product template in Toolset -> Content Templates, so that this dupe template would be translated using ATE, and not CTE (please bear in mind that the translated condition might work with CTE, but we decided to use ATE just as a test)
- The key here is to add both slug categories (Catalan and English) in the original language condition, like this: hidden link
- So, whenever you add an original language condition, you need to add the translated ones as well, in the same 'condition editor':

  ( CONTAINS( #(product_cat), 'nivell-intermig' ) OR CONTAINS( #(product_cat), 'intermediate' ) ) 

We tested for this English product, and it seems fine: hidden link

Could you please give it a try now? After making your editions in the original, just make sure to update the content template translation, so that the new settings are refreshed.

Looking forward to your reply. Thank you.

#2618369

My issue is resolved now. Thanks Matheus!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.