,We are experiencing an issue: when switching from the original language (DE) to other languages such as EN and FR, the prices are sometimes displayed differently.
This issue does not occur with all products, only with certain ones. Unfortunately, we were not able to identify any clear pattern. In some cases, the difference is only a few cents, while in others it is more noticeable. Sometimes, everything is displayed correctly.
We are unable to explain why this is happening and couldn’t find the cause on our side.
Could you please help us understand what might be causing this issue and how we can fix it?
I’m happy to help with the pricing issue. Most often, this is caused by VAT calculation - for example, if a product has a gross price set for one region, the VAT needs to be recalculated for a new location (for example, when translating products or using customer geolocation). Sometimes the change happens only in the cart after entering the shipping address.
If this does not solve the problem, please provide:
- access to a test environment (non-production, preferably minimal),
- the product and instructions on how to reproduce the price change.
This will allow me to investigate the cause more precisely. You can send these details in a private message - I'll can mark your next message as private.
I apologize for the delay, but the issue required a more in-depth analysis - I had to create a backup and download it (I left access to it on the site; if it’s no longer needed, it can be removed).
I tested everything on my local environment, and here is what I was able to determine:
* When displaying the price using the default WooCommerce template (`wp-content/themes/flatsome/woocommerce/single-product/price.php`), the prices are always correct - both for simple and variable products.
The differences start appearing after activating:
- Plugin: yith-woocommerce-role-based-prices-premium
- filter: ywcrbp_get_your_price_html
- use $product->get_regular_price(); - the price including VAT is used for calculations
For the main product (DE) it looks like this plugin applies some modifier - for translations it does not.
I’m not an expert in this specific plugin, but based on its description, I assume:
- " It is also possible to show the price included or excluded tax by user role"
hidden link hidden link hidden link
Additionally, after deactivating this plugin for the product (on my local copy), the prices become consistent everywhere.
My question is whether this plugin is essential, and what exactly the current configuration is intended to achieve - this will help me better understand the issue.
I’m looking forward to your feedback.
Regards,
Paweł
The topic ‘[Closed] Price differences after language switch (DE → EN/FR)’ is closed to new replies.