pass variable from 1 template to the other
I'm trying to pass a variable value from Fast_Lane_Checkout/cart_substotal.tpl. to main/cart.tpl.
I've created a variable call $newsubtotal in the template {include file="modules/Fast_Lane_Checkout/cart_substotal.tpl" newsubtotal2=$newsubtotal1} like this:
{math equation="subtotal+ship" subtotal=$cart.display_discounted_subtotal ship=$upsship assign=newsubtotal}{include file="currency.tpl" value=$newsubtotal}
I want to pass the $newsubtotal value to the main/cart.tpl. I tried using the include command:
{include file="modules/Fast_Lane_Checkout/cart_substotal.tpl" newsubtotal1=$newsubtotal} , but the newsubtotal1 is blank.
Can someone help with this?
Thanks!
__________________
x-cart 4.1.12
x-cart 4.2
|