Wonderful, thank you.
I was able to find that I could print the variables I needed most with:
Order Total: {php}echo $this->_tpl_vars['orders']['0']['order']['total'];{/php}
and
Order ID: {php}echo $this->HTTP_GET_VARS['orderids'];{/php}
However, I need to set a Javascript variable to the values of those two..
How can I reference those varaibles, when the Javascript is wrapped in {literal}.. considering you cant put {php} inside of {literal}..
I know I could use PHP to include a .js file with this information, and then use a str_replace (a PHP function) to replace the parts of the file where I need to input those values.. but Im hoping theres a more proper way of doing this (referencing a PHP value inside of {literal}.. maybe set a smarty variable from the PHP variable values, and then reference the smarty variable inside of {literal}? Not sure how I would do this either.. and it only only work if {php} was parsed before completely before Smarty because I would still have to wrap the echo'd text in {literal}..)
__________________
Jeremy Freeman
EZWatch Store
X-Cart v4.1.5
|