PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

FOX, forced checkout currency

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Dear Support,

We are using your (FOC currency switcher) plugin to facilitate multi-currency selling in our WooCommerce shop. We have encountered a critical integration issue due to our local shipping carrier, Packeta (Zásilkovna/Csomagküldő).

Our setup and goal are as follows:

1. Our Goal and Setup
We want to show prices, sell and invoice in EUR.
Packeta (Our carrier partner) only accepts order data in HUF for creating the shipping labels and generate tracking no.
We rely on FOX Pro to handle the currency presentation and switching.

2. The Core Problem
When we use settings for using EUR, there’s this error message from Packeta: You entered an unauthorized currency. You can either enter the currency of the country to which the parcel is being delivered; or if you have set a currency conversion while entering the parcel (not while sending money), then you can also enter the currency to which you are converting.”}

We need a stable way to:

Keep the frontend and paying and invoicing in EUR.

Ensure that when an order is submitted to the Packeta plugin, the order total and currency code are temporarily converted to HUF. Or vice versa. Using HUF as default currency, (this case Packeta can handle it without complications) and showing EUR towrds costumers at the page and at checkout and invoicing.

3. Request for Solution
Since FOX Pro handles all currency switching within WooCommerce, we need your guidance on the correct implementation:

Is there a FOX setting (perhaps related to checkout currency or payment gateway currency) that can be used to specifically force the HUF currency for the Packeta data transmission, without affecting the main EUR order record?

If not, could you provide us with a specific PHP filter/hook that correctly integrates with FOX’s logic to retrieve the HUF equivalent of the total EUR order amount, which we can then pass to the Packeta plugin’s API submission?

If nothing else works, alternatively: frontend shows EUR, and when reaching checkout, there’s a message, that “You will be billed in hUF, on the daily exchange rate, exact amount calculated at checkout” (or sg. that’s informative but not frightening🙃) But in this case we want the EUR prices showed at fixed prices during the process (ex.: 40 eur), we don’t want the prices being shown like 40,73 € or anything like that. And the exact daily rated price shown only at checkout total in both currency. (So we can avoid confusion or discourage the costumers with the 390* bigger number. Instead seeing 40 € seeing 15.600 HUF may seem a bit scary🙃)

Your official advice on how to correctly configure EUR sales with a mandatory HUF data requirement for a third-party shipping solution would be highly appreciated.

Thank you for your time and support.

Best regards,
Saarikaas

Hello Saarikaas

I do not know how works that plugin, but I have some ideas:

  1. Let Packeta plugin works not in the moment of checkout but later, trought cron for example, but it is better to ask dev of Packeta about possible it or not
  2. Converts on the fly using hook woocommerce_checkout_create_order, here is an example how its works https://stackoverflow.com/questions/77855844/woocommerce-checkout-create-order-hook-not-working - so idea is in the moment of creating of the order intersept the data, and replace currency, all amount s can be recalculated trought by global code
    $WOOCS;
    $converted_value = $WOOCS->convert_from_to_currency(100, 'EUR', 'USD');

It's better not to ask the user to pay in a different currency, as this may be unprofitable for them and they may refuse the purchase.

So all this need investigation, so your developer can apply 2 way using hook 'woocommerce_checkout_create_order' - in this case order will be created in HUF currency, but your customer pay in EUR, later you can by hands if nessesary can convert it into EUR