Skip Navigation

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

Problema:
El cliente tiene problemas con un plugin de eventos que no refleja los cambios de tickets y pagos en las versiones traducidas del sitio. Además, el cliente ha añadido manualmente un widget de pago, pero no aparece en el sitio traducido.

Solución:
1. Hemos identificado el problema y aplicado una solución mediante código en el archivo

functions.php

del sitio del cliente:

/**
 * Translate page ID for WPML.
 * 
 * @link wpmlsupp-11347
 * @param mixed $page_id 
 * @return mixed 
 */
function wpmlsupp_11347_translate_page_id( $page_id ) {
	return apply_filters( 'wpml_object_id', $page_id, 'page', true );
}
add_filter('tec_tickets_commerce_checkout_page_id', 'wpmlsupp_11347_translate_page_id');
add_filter('tec_tickets_commerce_success_page_id', 'wpmlsupp_11347_translate_page_id');

2. Hemos recomendado al cliente que se comunique con los autores del plugin de eventos para informarles sobre la incompatibilidad con WPML.
3. Hemos sugerido la creación de un tema hijo para evitar la pérdida de personalizaciones del tema cuando se actualice. Se proporcionaron instrucciones y recursos para crear un tema hijo, incluyendo un enlace a la documentación oficial de WordPress sobre temas hijos y un video tutorial en YouTube.

Si la solución proporcionada no es relevante para tu caso, porque podría estar desactualizada o no aplicarse a tu situación específica, te recomendamos abrir un nuevo ticket de soporte. También te sugerimos revisar los problemas conocidos, verificar la versión de la solución permanente y confirmar que has instalado las últimas versiones de temas y plugins. Si necesitas más ayuda, no dudes en contactarnos en el foro de soporte de WPML.

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.

Tagged: 

This topic contains 18 replies, has 3 voices.

Last updated by Alejandro 6 months, 1 week ago.

Assisted by: Alejandro.

Author Posts
May 3, 2024 at 3:51 pm #15591981

Fiyinfoluwa Lasaki

Yes, I will make sure to message them. so if I get you correctly now, the issue is temporarily fixed but if I update the theme, the custom edit you did would be wiped off (then back to square one). But I don't understand the part of using a child theme in this case, what do you mean?

May 6, 2024 at 8:22 am #15595851

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Yes, a child theme is a theme that let's say is "on top" of the original one. it will allow you to make modifications to the theme and keep them after the theme has been updated. it's created for that purpose as you can see here: https://developer.wordpress.org/themes/advanced-topics/child-themes/

You can ask your theme's support for a child theme, they usually have one you can download and is ready to be just installed and used. otherwise you can use plugins to help you create one (search for "child theme" on the WordPress repo and you'll find some).

You can also check for youtube videos on how to create them, like this one: hidden link

The best thing you can do is install a child theme and then paste the code i gave you on the child theme's functions.php file, otherwise the code i gave you and any other modifications you made to your site via code and sometimes even settings, could just reset with the theme's updates.

Regards.

May 6, 2024 at 10:16 am #15596484

Fiyinfoluwa Lasaki

Alright. Thank you so much for your help.

May 6, 2024 at 12:19 pm #15597248

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

No problem!

I hope everything's ok now. you can close the ticket or let it get closed automatically in 7 days. I'll be here if you need any more help with WPML 😀

Regards.