Friday 01 August 2003 8:20:41 am
I need to set up a shop with only integer prices. My first thought was to use the currency formatting. The first problem was that my price_inc_vat needs to be rounded to become an integer and the currency format only skipped my decimals. Then the shopping basket calculations uses the float prices so my problem is not the way i display the price according with the currency format but the price datatype itself...
So i've created a new datatype called "ezintprice".
OK... The probleam seemed solved... WRONG!!!!
When I've added the discount rules my basket looked ok but the order confirmation contained the float calculated price... So i've looked throught sources an I've seen that are many scripts that i have to alter... (and i don't want that because seems wrong).... PLEASE ... someoane HELP ME because now it is so much chaos around me and i don't even know where to start anymore.... So my question is: What should I do to have a shop with only integer prices .....where should i start to make all the things correctly...should i create a new datatype?.. should I extend the shop functionality? If so how?. Any help would be very appreciated. Thanx
|