Add to cart changes language (WPML)

Hey, I’m using WPML for different languages in my shop and I have the problem that when my language is switched to a language that is not the standard and I add a product to my cart it changes the language back to the standard language.

I’m using following link on my add to cart button: “?add-to-cart={{dc:woocommerce:product_id}}”
Do I have to change the link somehow or is there any other solution to my problem?

Thx in advance,
Phil

Hey Phil,

The setup ?add-to-cart={{dc:woocommerce:product_id}} basically outputs like ?add-to-cart=9 so it in itself does not have a role in redirecting to the original language.

You will need to reach out to WPML’s support and ask them if there’s a feature in WPML that will set the language all throughout the WooCommerce order process.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.