kmm2908 Posted June 7, 2011 Share Posted June 7, 2011 I'm in the middle of writing a custom promotion action hook and I need to make a variable from the hook script available in the viewcart.tpl template. Can anyone tell me how I can do that please? Thanks in anticipation of your continued help 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted June 7, 2011 Author Share Posted June 7, 2011 Found it! Two options: 1. Use session cookies 2. Use $smarty assign global $smarty; $smarty->assign('takeoff',$hostprc); $smarty->assign('newbal',$newbal); Amazing! Should have engaged brain properly before posting. Hope the above helps someone else! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.