[ic] [discount ENTIRE_ORDER]
Thomas N. Stefanidis
thomas@prometheas.gr
Wed, 02 May 2001 15:16:49 +0300
I upgraded from 4.6.1 to 4.6.5.
I use this in the basket :
[discount ENTIRE_ORDER]
$original = $s;
$f =($s);
if ($s <= 19999) {
$discounted = $f * 1.00;
} elsif ($s <= 49999) {
$discounted = $f * 0.95;
} elsif ($s <= 99999) {
$discounted = $f * 0.90;
} elsif ($s <= 249999) {
$discounted = $f * 0.88;
} elsif ($s >= 250000) {
$discounted = $f * 0.85;
}
$difference = $original - $discounted;
return $discounted;
[/discount]
But now when the total cost is over 19999, the total cost gets zero and
the "This is your discount" get the value of the total cost.
exaple.
should be :
total cost 28500
Discount 1500
it gets :
total cost 0
Discount 30000
Any ideas how to solve this?
Thomas