Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hungary currency rounding not working with multi currency (WPML multi currency) #680

Open
rudolfgusta opened this issue Dec 5, 2024 · 1 comment

Comments

@rudolfgusta
Copy link

Hello,

Isse with the rounding of delviery prices. Somehow, when I enter 2.49€ in the shipping fee with currency conversion, I get 970 HUF as a price, when I add a little bit more, so 2.55€ then it becomes 1 458 HUF (not rounded by 5 or 0). So there is no step between 970 HUF and 1458 HUF, which is rather big gap. It continues like that.

In WPML multi langual we have set up currency conversion + rounding, that works perfectly for all products but shipping methods seem to live their own live. How to fix? Out of ideas.

Other issue is that the free delivery value doesn't honor the currency. So all Hugnarian customers get free delivery to CZ, SK & other countries, cause with any product you have more then 50 HUF value in checkout (that is free delivery value in EUR). As many markets where Packeta operate are multi-currency, then it would be amazing if your team can look into that and find a fix as our IT don't understand, how it is built up.
image
image

@MatyasKoval
Copy link
Contributor

Hello @rudolfgusta,
to analyse and solve the first issue, we need to first obtain a WPML licence, as it is a paid plugin. At the moment we are waiting to hear from the WPML devs, before we can get into it.

As for your second issue, this can be solved using a filter:
add_filter( 'packetery_price', function ( float $price ): float {
return (float) wcml_convert_price( $price );
} );

In the future we pla on including this natively, so the filter may become obsolete in the future.

Best regards,
Matyáš Kovaľ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants