Webshop - Rounding rules

Author Message

Lars Eirik R

Friday 14 January 2011 4:29:19 am

Hi.

I am working on a multi currency website where different currencies (different countries) require individual treatment.

Is there a way to indicate that one of the siteaccesses should automatically present its products without decimals?

my fear is that i can do this manually in templates to present to the user, but the values will be stored internally as floats , basically meanin that the sums will not add up when handled internally by the ez kernel.

Note that i do not use autoconversion as this does not meet the clients demand..(therefore shop.ini is a no go)

I am running version 4.1.3 but upgrades will be possible if this should alleviate a potential problem.

Lars Eirik R

Friday 14 January 2011 5:13:40 am

Perhaps it would be smart for me to create my own baskethandler and set this up to read from settings, thereby performing rounding or ceiling of the values.

Any one have any ideas if this is a bad or smart move?

Update:

After having dicussed this with a co worker i think i will store all values with decimals and make sure that the actual value sendt to the payment gateway is rounded up.

This bascially would mean that changing the template output to the user would do what i want it to.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.