Hi,

thanks for this gorgeous module.

I found a bug if started using this module with hungarian forint (HUF) because this currency decimals is 0.

It is more complex problem than I check it first time. The module not handle tax price component and currencies.

Regards,
Joe

Comments

dj1999 created an issue. See original summary.

dj1999’s picture

StatusFileSize
new847 bytes

Better this patch.

dj1999’s picture

Title: Bad price if currency decimals is not 2 » Handle currency and tax components to prepare price
Issue summary: View changes
dj1999’s picture

I prepared a bigger patch for handle currency and tax component the commerce price.
Added an update hook for install file to prepare new column the product_price_list table and prepare some index too.

Be careful on production site because after database update will run a script on table and change all prices to commerce price format base on currency decimal.

dj1999’s picture

StatusFileSize
new9.76 KB

Mut have a mistake everytime. Here is the correct patch.

dj1999’s picture

Issue summary: View changes
dj1999’s picture

StatusFileSize
new10.47 KB

Unfortunately swapped the decimal -> amount conversion function. Now tested USD too not just HUF.

dj1999’s picture

This patch prevent to call undefined function if commerce_tax module is not enabled.

dj1999’s picture

dj1999’s picture

arvind.kinja’s picture

Hi dj1999,
Thanks for providing patch.
I look into this.