Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 4 replies, has 1 voice.

Last updated by Christopher Amirian 1 month ago.

Assisted by: Christopher Amirian.

Author Posts
February 13, 2025 at 3:52 pm #16703637

aleksandrK-22

Background of the issue:
I am trying to understand how the 'Preserve URL Arguments' feature works in WPML. I want to know if I need to add all the link arguments manually and how to determine what those arguments should be. I am using the WooCommerce plugin, which adds the 'pay_for_order' argument.

Symptoms:
No specific issue or error message mentioned.

Questions:
How does Preserve URL Arguments work?
Do I need to add all the link arguments manually?
How can I find out what the arguments should be?
How do I know what else to add besides the 'pay_for_order' argument?

February 13, 2025 at 3:53 pm #16703646

aleksandrK-22

Is there a mode that will automatically save all arguments?

February 16, 2025 at 7:32 am #16710158

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Welcome to WPML support. There is no automatic way to determine what arguments are needed to be preserved.

You will need to identify the parameters in the original language and add the arguments in WPML > Languages > Language switcher options > Preserve URL arguments

That is a comma sepeoarted list. So for your scenario as a one parameter you would only add:

pay_for_order

And then you would click outside of the box to auto save.

But if you had more than one, for example `hello` then it would be like this:

pay_for_order, hello

Thanks.

Screenshot 2025-02-16 at 11.31.45 AM.png
February 18, 2025 at 4:24 pm #16720195

aleksandrK-22

Hi, thanks for the information. Do you have a list of URL arguments for Woo? I only found out about the pay_for_order argument when I checked the payment for the order. I think it's wrong to wait for an error to happen.

February 19, 2025 at 1:20 pm #16724656

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

There should be no problem using Woocomemrce and you should not add any other parameters there.

You just need to make sure that you make WPML compatible with Woocmmerce by installing Woocommerce Multilingual plugin. For more information:

https://wpml.org/documentation/related-projects/woocommerce-multilingual/

If there is any sort of issue that you experience please clarify and we will be happy to help.

meanhwile, Would you please kindly follow the steps below to provide the debug information?

- Go to "WordPress Dashboard > WPML > Support > Debug Information (Link)".
- Copy the Debug Information from there.
- Get back to this chat screen and scroll down.
- Find the "Additional Data" section below. (Check the screenshot below)
- Click on the "Debug Info" item to expand it.
- Paste the debug information into the text area.
- Click the "Send Debug Info" button.

Screenshot:
https://wpml.org/wp-content/uploads/tmp/debug_info_20.png

The topic ‘[Closed] Preserve URL Arguments’ is closed to new replies.