So a little more on this -need some coders to jump in and help if you can.
Im trying set a redirect to the shipping page in the checkout_confirmation header as follows:
Code:
if ($_SESSION['shipping']['id']=='free_free' && ($_SESSION['subTotAfterDisc'] < MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)){
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
$_SESSION['subTotAfterDisc'] is set in ot_subtotal at the end of process() as follows
Code:
$_SESSION['subTotAfterDisc'] = $currencies->format(($order->info['subtotal']- $_SESSION['discountCoupon']), true, $order->info['currency'], $order->info['currency_value'])
And $_SESSION['discountCoupon']) is set in ot_coupon at the end of process() as follows:
Code:
$_SESSION['discountCoupon']=$od_amount['total'];
Once the process hits the header.php of the checkout_confirmation the session variable I have set is wiped out.
I have not coded any unsets on that Session Variable. Any coders have an idea of whats happening. If anyone can help with the code or the logic, I would greatly appreciate it.
Thanks