Re: pass variable from 1 template to the other
Thanks! I can't believe I missed that backslash. I'll give that a go.
I did come up with another way in the meanwhile. It's kind of hack... from a response to the question I posed in the smarty forum:
After I assigned $newsubtotal in the cart_subtotal, I captured the value:
{capture name="mytotal"}{$newsubtotal}{/capture}
then in cart.tpl
I used:
{include file="currency.tpl" value=$smarty.capture.mytotal}
__________________
x-cart 4.1.12
x-cart 4.2
|