LiteSpeed Cache

How to ensure full compatibility between YayCurrency and the LiteSpeed Cache plugin

Some store owners may notice unexpected price changes when customers visit their store from different countries.

Example:

  • Product base price: £22.99 GBP

  • Correct conversion: €26.49 EUR

Expected behavior

If a visitor from the United Kingdom browses the store:

  • Product price remains £22.99

  • When switching currency manually, it correctly converts to €26.49

Problem scenario

If a visitor from another country (for example, Germany):

  • Base price incorrectly changes from £22.99 → £22.80

  • Converted price changes from €26.49 → €26.27

This creates slightly incorrect pricing across currencies.

Why This Happens

The issue is typically caused by the Default Customer Location setting in WooCommerce.

If WooCommerce is configured to automatically detect visitor location using Geolocation, the store may adjust prices differently depending on the visitor’s IP address.

When combined with caching layers from plugins such as LiteSpeed Cache, cached pages may store incorrect price calculations.

How to Fix the Issue

Follow these steps to ensure YayCurrency calculates prices correctly.

  1. Navigate to WooCommerce > Settings > General tab

  2. Locate the Default Customer Location settings > set it to “Shop country/region” option.

  3. Click to Save the Changes.

After changing the setting to Shop country/region, YayCurrency will:

  • Maintain the correct base product price

  • Convert currencies accurately

  • Prevent price distortion caused by location-based price recalculation

Additional Tips for Using Cache Plugins with YayCurrency

To ensure the best compatibility:

  • Always clear the cache after updating currency settings

  • Avoid combining WooCommerce geolocation pricing with currency conversion

  • Test pricing using different IP locations or VPN services

  • Verify currency switching on product pages, cart, and checkout

Last updated

Was this helpful?