Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default 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
    22 stores and counting! Ive been zenned.

  2. #2
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default 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..
    22 stores and counting! Ive been zenned.

 

 

Similar Threads

  1. WARNING: Could not locate language file: modules/order_total/ot_loworderfee.php
    By stressedout72 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Feb 2012, 07:43 PM
  2. html header php file not in my custom template?
    By Hamilton33 in forum General Questions
    Replies: 5
    Last Post: 14 Jul 2011, 09:09 AM
  3. header.php and meta_tags.php do not seem to be drawing from my custom folder
    By cynthia_haide in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Oct 2007, 07:21 PM
  4. Replies: 14
    Last Post: 22 May 2007, 06:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR