
Anywho, I'm trying to code this referral system, where if a valid referer is selected, then the customer receives a 5% discount off the subtotal.
Basically I figured setting in the checkout_confirmation.php page an isset along the lines of this:
CODE
if (isset($order->info['rep']) && $order->info['rep'] > 0)
{
$order->info['subtotal'] = $order->info['subtotal'] * 0.95;
}
{
$order->info['subtotal'] = $order->info['subtotal'] * 0.95;
}
On the actual confirmation page, it displays the new value just fine. I also have it run in the checkout_process.php page, but for some reason, between processing it, and inserting the order into the DB, the lowered value is lost and the original subtotal is set.
Any ideas as to what I'm doing wrong or how I would go about getting the effect I"m looking for?
Thanks all

