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.

This topic contains 2 replies, has 2 voices.

Last updated by hansN-10 9 months, 3 weeks ago.

Assisted by: Subash Chandra Poudel.

Author Posts
July 1, 2023 at 10:29 am #13927321

hansN-10

Hi,

I am using WPML on my WooCommerce store, and I am using LiteSpeed cache plugin.

My WooCommerce store will show different content depending on which country the visitor is coming from (VAT and Currency).

I have enabled the geolocation feature in WooCommerce, which helps to set/remember the correct VAT and correct currency for the visitor.

I am using 2 different plugins for VAT calculation and Currency conversion (not WCML). I know that the VAT plugin needs country specific cache to work properly, so I have added the following to the .htaccess file:

RewriteRule .* - [E=cache-vary:woocommerce_tax_country]

Will WPML work automatically with LiteSpeed cache, even if the visitors are coming from different countries, or do I need to add something like this to the .htaccess file:

RewriteRule .* - [E=cache-vary:wp-wpml_current_language]

Thank you!

July 3, 2023 at 6:44 pm #13936117

Subash Chandra Poudel

Hi there,

Litespeed is compatible with WPML as explained in the next link so generally you don't need any extra configuration for WPML to work with Litespeed.

https://wpml.org/plugin/litespeed-cache/

As far as I can see special setting to have different cache based on wp-wpml_current_language cookie is not necessary. However in your case, since you are using a third party-plugin for VAT and Currency handling, I cannot tell exactly weather a special setting is required or not.

The question here I think is more of will WPML work with your third party multi currency plugin or not? Instead of will WPML work with LightSpeed.

I see you are using "CURCY - WooCommerce Multi Currency Premium" plugin and I dont see it in the list of our compatible plugins at https://wpml.org/plugin/ however this does not mean the plugin is incompatible with WPML, it simply means we haven't test the plugin before and cant say for sure if WPML will work properly with the plugin

In this case, I recommend you to test the plugin on a staging/test site first to verify if it works or not. Also you can contact the plugin provider and ask them if they are compatible with WPML and if not ask them to join our Go Global Program linked next so that we can help their team make the plugin compatible with WPML.

https://wpml.org/documentation/support/go-global-program/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.