[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[mv] Discount Code
I have a OLD snippet of discount code that works really well (even
when I upgraded). But I have 2 questions.
A. the client wants to be able to mark in the database that a item is
not to bbe discounted. Is that possible?
B. the items (as I just found out) start with 48 or 49 as a product
code (48-001 is an example).
Is there a method anyone would recommend or a older post I overlooked?
this code is slightly modified.
[discount ENTIRE_ORDER]
$original = $s;
$d =(.25);
$f =($s);
if ($s <= 2499.99) {
$discounted = $s * (1.0 - $d);
} elsif ($s <= 4999.99) {
$discounted = $f * (.95 - $d);
} elsif ($s <= 9999.99) {
$discounted = $f * (.90 - $d);
} elsif ($s <= 19999.99) {
$discounted = $f * (.88 - $d);
} elsif ($s >= 20000.00) {
$discounted = $f * (.85 - $d);
}
$difference = $original - $discounted;
return $discounted;
[/discount]
--
http://www.vensnews.com
Victor "Ven" Nolton __________________________ http://www.VensNews.com
http://PragaKhan.com http://LordsofAcid.com http://DarlingNikkie.com
All HTML Encoded email will be ignored. Learn Standards.
_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://lists.akopia.com/mailman/listinfo/minivend-users