Skip Navigation

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

Problem:
The client needed to translate a URL entered in the backend of the Advanced Coupons plugin for WooCommerce, so that it would be different depending on the user's language.

Solution:
We recommended the client to ensure that the 'SiteURL' and 'HomeURL' settings in WordPress General Settings are identical, without any language code appended to the 'HomeURL'. After making this adjustment, we advised using the full link instead of the absolute one. WPML should automatically translate a significant portion of the internal links.

If the automatic translation does not work, we suggested manually adjusting the links by navigating to WPML -> Settings -> Translate Link Targets and clicking on "Scan now and adjust links".

If this solution does not apply or is outdated, or if you have followed these steps and are still experiencing issues, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should the problem persist, please open a new support ticket with us.

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.

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 1 year, 3 months ago.

Assisted by: Mateus Getulio.

Author Posts
March 27, 2024 at 5:58 pm #15457699

ireneS-3

Is it possible thru wpm to translate an url entered in the backend of a plugin (advanced coupons)?
In advanced coupons configuration there is a field where I enter the url of a button that sits in WooCommerce cart.

I need this url to be different upon user language:
hidden link
hidden link
hidden link

If I enter one of this url it stays the same whatever the user language.
I have tried:
/cataleg/swoof/product_cat-cd-regal/
but in this case, the language code is not happened to the url.
Do you think I can resolve this with wpml?

March 27, 2024 at 9:05 pm #15458056

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello there,

I can see that you have the following setting inside the General Settings of WordPress:

SiteURL hidden link
HomeURL hidden link

The siteurl and home fields are different, this can create some issues while using WPML, please remove the /ca from the HomeURL and save it.

After that, please use the full link rather than the absolute one, WPML should translate a great part of the internal links automatically.

If it doesn't work, you can manually adjust them by going to WPML-> Settings-> Translate Link Targets and clicking on "Scan now and adjust links" .

Please give it a try and let us know the results.
Mateus