Share » Forums » Developer » Set up a shop with only integer prices

Set up a shop with only integer prices

Set up a shop with only integer prices

Friday 01 August 2003 8:20:41 am - 2 replies

Modified on Friday 01 August 2003 8:46:37 am by Adi Rotea

Author Message

Esben Maaløe

Saturday 02 August 2003 4:20:05 am

So what do you want to do ?

If a basket amounts to 25 MONEY and you want to give a 10% (2.50 MONEY) discount what should the price end up like ? 22 MONEY or 23 MONEY ?

Is it possible to setup a FloorThePrice discount rule ? So that your basket may look like this:

Item1 10.00 MONEY
Item2 7.00 MONEY
Item1 8.00 MONEY
==============
Total 25.00 MONEY
Discount -2.50 MONEY
FloorThePrice -0.50 MONEY
====================
Price 22.00 MONEY

???

Adi Rotea

Tuesday 12 August 2003 6:25:50 am

First of all I'm sorry for the delay....

To be more exact I want a shop where all the prices and calculations (price with or without VAT, discounts etc) to be integer numbers...

In my case i have a 19% VAT and my input prices are excluding VAT (meaning that I input the integer price without VAT) and I expect the system to generate the price inclunding VAT as an integer number (or the other way to input the integer price with VAT ant to let the system to generate the price without VAT which i think is a better approach as the price includig VAT is used for the total calculations and the price without VAT is, in my case, only informational)...

Also when I apply a dicount rule i want the discounted price to be an integer number as well...

And the integer number (price) to be the round( double calculated price )

How can i do that using only templates or with minimum of code involved ?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu