Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Where does $_SESSION['shipping'] value get assigned?

Where does $_SESSION['shipping'] value get assigned?

Locked

Views: 1,276

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
23 Jul 2008, 5:16 AM
#1
chillout_buddha avatar

chillout_buddha

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

Where does $_SESSION['shipping'] value get assigned?

I was trying to overwrite the value of "shipping session" like this:
if ($_SESSION['shipping']['id'] == "my_del_calc") {
$_SESSION['shipping']['cost'] = $my_delivery;
}

I put the above piece of code in the file: includes/modules/pages/checkout_shipping/header_php.php

When I do print_r($_SESSION['shipping']) on that same page, it showed the value successfully changed but when I go to next page, value for $_SESSION['shipping']['cost'] goes back to initial value.

I would like to find out where exactly does the value for $_SESSION['shipping'] get assigned first (on which page).

If you know, please let me know.