Problem: The client needs to duplicate approximately 15,000 products to all languages on their WooCommerce site but finds the translation management page limiting as it only allows duplicating 100 products at a time. Solution: We recommend using the WPML hooks
wpml_make_post_duplicates
and
wpml_admin_make_post_duplicates
for bulk duplication of products. These hooks can help automate the process. However, implementing custom code using these hooks is outside our support scope. We advise testing the hooks on a staging or sandbox site first to ensure they meet your needs. For more details on these hooks, please visit the WPML Hooks Reference page at WPML Hooks Reference.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML Support Forum.
The client needed assistance setting up WPML for a new section of their website (***la.hr/stay/) to have language-specific homepages and consistent URL structures across different languages, similar to their main site configuration.
Solution:
We advised the client that the desired setup would require custom coding as it involves linking two separate WordPress installations, which is beyond the standard WPML support scope. We suggested setting the default language homepage to the 'Stay' page from WordPress settings and translating this homepage into other languages.
Additionally, we recommended using the 'A different domain per language' option for URL formats, but noted that this would require specifying exact domains for each language. For further details on setting up language URL options, please refer to this documentation.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.
Problema: El cliente ha implementado un hook personalizado en PHP para los productos de Woocommerce de packs de regalos, denominado 'Condiciones de compra de vales regalo'. La web está traducida en tres idiomas: catalán, castellano e inglés. Sin embargo, el hook solo se muestra en castellano, y no aparece en la sección de traducción de cadenas de WPML para los otros dos idiomas. Solución: Si estás experimentando este problema, te recomendamos revisar y utilizar los siguientes hooks de WPML para registrar las cadenas de texto de tu código personalizado, permitiendo su traducción en múltiples idiomas:
Si necesitas asistencia más específica para implementar estos hooks, te sugerimos consultar nuestro servicio de contratistas en WPML Contractors.
Es posible que esta solución pueda ser irrelevante si ya está desactualizada o no se ajusta exactamente a tu caso. Te recomendamos revisar los problemas conocidos, verificar la versión de la solución permanente y confirmar que tienes instaladas las últimas versiones de los temas y plugins. Si después de esto sigues necesitando ayuda, no dudes en abrir un nuevo ticket de soporte en nuestro foro de soporte.
Problem: You are encountering an issue where both the original and updated permalinks for a translated page are functioning, leading to unexpected redirections. This occurs after changing the slug to resolve a 404 error on the translated page. Solution: The issue stems from custom code that modifies the URL structure. Specifically, the code segment handling 'locations' might be causing the redirection behavior. To address this, you can modify the code by commenting out the following line:
This change should ensure that only the desired URL remains active, preventing the original URL from redirecting to the updated one.
If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have the latest versions of themes and plugins installed. If the problem persists, we recommend opening a new support ticket at WPML support forum.
The client is experiencing an issue where the translation of custom text in a LearnDash course does not persist across different lessons and languages. Initially, the translation works for the first lesson in German, but when switching to Spanish, the text remains in German.
Solution:
We recommended that the client first ensure they are using the latest version of WPML. They should upgrade to WPML 4.7.3, ensuring they back up their site fully before doing so. They can check for updates in the Plugins>>Add New>>Commercial tab. If the issue persists after updating, we advise using WPML hooks to properly register and translate the string. The relevant documentation can be found here:
If this solution does not resolve the issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem still exists, please open a new support ticket at WPML support forum.
Problem: You are using WPML's multi-currency feature on your WooCommerce site and want the final total amount sent to your payment gateway to remain in your primary currency, 'New Taiwan Dollar (TWD)', rather than the converted amount. However, at checkout, the system only sends 10 TWD instead of the correct total amount in TWD. Solution: Unfortunately, maintaining the checkout total in TWD using WPML's multi-currency feature directly is not possible without additional customization. You will need to implement some custom code similar to how currency conversion is handled in WooCommerce at checkout without WPML. If you require assistance with the custom code, we recommend consulting with WPML Contractors.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
Problème : Vous travaillez sur un site en développement et utilisez l'API Rest de WordPress pour la création et la mise à jour de posts. Vous souhaitez connaître la langue d'un post via l'API Rest et créer un post pour l'associer en tant que traduction d'un autre post. Solution : Pour récupérer la langue d'un post, utilisez ce hook : https://wpml.org/fr/faq/how-to-get-current-language-with-wpml/ Si vous utilisez WooCommerce avec l'API REST, consultez cette documentation : https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/ Pour lier des traductions de posts ou de pages via l'API Rest, une solution personnalisée est nécessaire. Un utilisateur de WPML a partagé un code qui a bien fonctionné pour d'autres utilisateurs, mais gardez à l'esprit que ce n'est pas une fonctionnalité intégrée à WPML et que nous ne pouvons pas offrir de support pour ce code. Voici le code :
Le processus consiste à créer le premier post dans une langue, créer le second post dans une autre langue, puis les lier via un endpoint personnalisé.
Si cette solution ne vous convient pas ou semble obsolète, ou si elle ne correspond pas à votre cas, nous vous recommandons de vérifier les problèmes connus sur https://wpml.org/known-issues/, de vérifier la version du correctif permanent et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si nécessaire, n'hésitez pas à ouvrir un nouveau ticket de support sur le forum de support WPML.