Hey

Ive got a really big problem here with currencies and payment

Some info about the system.

Zen-cart 1.3.9h

payment = Payex

Zen-cart Built in currencies, Euro USD, SEK, DKK, NOK, GBP


Okay Im going to explain it as good as I can its a bit trickie So here we go:

When in shopping cart
Zen-cart makes this calculation when converting the currency
Im going to make some examples here

P = (Product (base currency is SEK)
C= (Currency convertion ratio DKK = 0.83569998)
R = (Round the Number)
U = (Amount of units)
PT= (Product total)

Zen-Cart calculates the Pris Like this

P * C *U *R = PT And this will give me 219 * 0.83569998 =183.01829562 * 2 =366.03659124
366.03659124 this will be rounded to 366.05

Payex works like this:

P * C * R * U = PT And this will give me 219 * 0.83569998 =183.01829562 ROUND 183.00 * 2 = 366.00

When this number dosnt add up the payment wont be valid and if you put more stuff in your cart the diffrence will be bigger

So my problem is that I need to modify either Zen-cart or my payment module and I would rather that I can modify Zen-cart so What I need to do is to transform Zen-carts calculation of product pris from P * C *U *R = PT To P * C * R * U = PT

I hope this wasnt to unclear


Have anyone hade the same problem? If some one can think of anything I havent pls tell me