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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Dražen 3 days, 19 hours ago.

Assisted by: Dražen.

Author Posts
March 17, 2025 at 4:05 pm #16826357

patrykP-6

Background of the issue:
Hi, I have an issue with displaying prices in euros in the bulk order view in B2BKing ( i know Compatibility between B2BKing plugin and WPML https://wpml.org/plugin/b2bking/.)

I have a multilingual website. After changing the language, prices update correctly everywhere—in the store, categories, cart, and order summary.

However, there's an issue specifically with bulk orders. For example, I have the following products:

Default language (Polish - currency: PLN):

Product A - 40.00 zł
Product B - 80.00 zł

My second currency is euro, and as I mentioned, prices update correctly after switching the language—even the minimum order value (using the B2BKing function). In the cart, it correctly shows that the minimum order is 1,000 zł, and after switching to another language, it correctly displays 240 euros.

The problem occurs in the bulk order view, where the price values remain in PLN, but the currency symbol is displayed as euro.

For example, assuming 1 euro = 4 zł, the prices should be:

Product A - 10 euros
Product B - 20 euros
But instead, they appear as:

Product A - 40 euros (it keeps the PLN value but displays the euro symbol)
Product B - 80 euros
To display prices in euros, I use WPML's built-in currency function to ensure compatibility and update exchange rates via the CurrencyLayer API.

How can I configure this so that prices in the bulk order view are correctly converted to the selected currency? Do you have any ideas?

Bulk order i mean function from B2BKing: hidden link

Below, you’re asking for a link to the website, so I provided it. However, prices are only visible after creating an account, verification, and setting the prices—so I recorded a video instead.

Link: hidden link

Symptoms:
The problem occurs in the bulk order view, where the price values remain in PLN, but the currency symbol is displayed as euro.

For example, assuming 1 euro = 4 zł, the prices should be:

Product A - 10 euros
Product B - 20 euros
But instead, they appear as:

Product A - 40 euros (it keeps the PLN value but displays the euro symbol)
Product B - 80 euros

Questions:
How can I configure the bulk order view to correctly convert prices to the selected currency?

March 19, 2025 at 9:38 am #16834118

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us and sharing detailed information.

It looks like a compatibility bug, so I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons, and themes.

You can access the WordPress dashboard using the link below:

- hidden link

Try to replicate the issue with a simple example and share steps done with me.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Regards,

Drazen

March 19, 2025 at 2:25 pm #16835799

patrykP-6

Hi, I managed to reproduce the bug.

I added the following products:
1 priced at $1
2 priced at $2

I created Spanish translations for them.

I added a new group in B2BKing – "ANG TEST PATRYK" (and assigned it to this account to see the new prices). For the product named "1", I changed the price from $1 to $1.5 for this group (in both languages, including the translation – because the group price is not automatically applied in translations and needs to be set separately). I left the product named "2" unchanged for comparison.

Now, when visiting the store and the product page in English, we see that the price of product "1" is $1.5. When switching the language to Spanish, we correctly see the converted price of €1.37 in the store (I didn’t need to use the API – it's a fixed rate). I set the exchange rate as $1 = €0.91, so this part is correct.

However, when accessing the Bulk Order page in English, we see the correct group price of $1.5. But when switching the language to Spanish, instead of seeing €1.37, we see €1.5 – meaning it takes the value from the default language but simply replaces the currency symbol.

Link for bulk order: hidden link
link for shop: hidden link

March 20, 2025 at 8:18 am #16838489

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks, I have escalated this to our compatibility team.

I will update you when I have some news, note it may take a few days.

Regards,
Drazeb