Zen Cart Logo
Forums / General Questions / custom order_total.php variable not passed to header.php and on to template

custom order_total.php variable not passed to header.php and on to template

Views: 898

Results 1 to 2 of 2
8 Feb 2011, 12:34 AM
#1
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

custom order_total.php variable not passed to header.php and on to template

Hi I was not sure if there is a zencart coding area but I have a question about some code if anyone has time. If place a variable in classes\order_total such as the $difference variable in function pre_confirmation_check() wouldn't $difference be available to checkout_confirmation/header_php.php and likewise be available to templates/tpl_checkout_confirmation_default.php? I see that some like $credit_covers are passed but when I try to create one it does not work.

Do I simply have to define any new ones as a global variables?

Thanks

8 Feb 2011, 1:07 AM
#2
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: custom order_total.php variable not passed to header.php and on to template

Answered my own question. They key was setting a global variable. Not sure why my session variables did not work! Oh well, global it is..