I’m attempting to pass a Smarty var to a php program.
In Smarty I have :
{assign var=smarty_var_get value=$po.value}
In my php program I have:
session_start();
$smarty_var = $this->get_template_vars('smarty_var_get');
echo '$po.value = ';
echo $smarty_var;
?>
The php program is at the cart’s root level.
When I take the link to the php program I get:
Fatal error: Using $this when not in object context
in /home/crystal/public_html/sandbox/Test.php on line 3
It seems like I need some include to hook up with the Smarty logic.