Home›Support›English Support›[Resolved] Redirect woocommerce add to cart link to spanish version of cart
[Resolved] Redirect woocommerce add to cart link to spanish version of cart
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's Spanish landing page redirects to the English checkout page instead of the Spanish checkout page when a logged-out visitor clicks the signup link.
Solution:
We recommend checking if the checkout button's link can be translated using WPML String Translation. Sometimes, the necessary strings are recognized but not yet associated with the String Translation panel. You should visit WPML>>String Translation and click on the 'Not seeing strings you are looking for?' link. Search for the 'register-page-url' string in the 'Admin Texts Translation' screen and if found, add it for translation. After translating, ensure to clear all types of caches to see the changes.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your 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 problem persists, please open a new support ticket.
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.
Background of the issue:
Estoy intentando redirigir el botón 'sign up' en la página de inicio, que es un botón 'add to cart', al carrito en español. El enlace actual es: hidden link. La página del carrito de WooCommerce está traducida, pero el botón 'Sign Up', incluso en español, redirige al carrito en inglés. Quiero que redirija al carrito en español cuando esté en la versión en español de la página de inicio/ventas.
This was originally written in english - I don't know why it got translated to spanish.
Symptoms:
El botón 'Sign Up' redirige al carrito en inglés en lugar del carrito en español, incluso cuando se está en la versión en español de la página.
Questions:
¿Cómo puedo redirigir el botón 'Sign Up' al carrito en español cuando estoy en la versión en español de la página de inicio?
Thank you for the details. We hope the Sign up button is part of the site header template; if so, please check that you can translate the template (from WPML>>Translation Management's *Template* section), including the button text and links.
Refer to the following documentation for more details, and let us know your feedback.
Thank you for the updates. Please check if you can translate it using WPML String
Translation or not.
In some cases, those strings may have been recognized but not yet associated with the String Translation panel for the translation. Please visit WPML>>Utilities and click on the *Not seeing strings you are looking for?* link at the bottom of the page.
Then search for the missing strings in the *Admin Texts Translation* screen and check whether it is listed or not. If so, please add it for translation and translate it.
I need to clarify - the link is a WOOcommerce "add to cart" link. Please take a closer look at the site and flow. And attempt to recreate the original issue as a logged out user and provide a solution.
The issue, again, is a logged out visitor, once they switch to the Spanish version of the site, get routed to the ENGLISH checkout when they click the signup link. They should be routed to the SPANISH checkout. I don't know how to make that happen.
Thank you for the updates. Please fill in the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our privacy information sharing policies.
Thank you for the login information. I am getting the expected results after adding the *register-page-url* string for translation, translating it, and clearing all types of caches.