Skip Navigation

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 support ticket is created hace 1 año, 5 meses. There's a good chance that you are reading advice that it now obsolete.

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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por marF hace 1 año, 4 meses.

Asistido por: Mateus Getulio.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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: enlace oculto

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

#2617097

Mateus Getulio
Supporter

Idiomas: Inglés (English )

Zona horaria: 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: enlace oculto
- 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: enlace oculto

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!