X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Custom TPL and assigning a smarty variable (https://forum.x-cart.com/showthread.php?t=68566)

NickGiacopuzzi 01-29-2014 05:09 PM

Custom TPL and assigning a smarty variable
 
I am integrating Docusign into the checkout process of xcart. I have made a docusignrest api php page and have that included in teh one page checkout moudule folder. Ive added a docusign .tpl to the myskin/customer/content.tpl and included a custom smarty varibale for the URL. however the URL is not getting passed. Any ideas? do i have to assign the smarty variable in a particular way in my rest.php file?

qualiteam 01-29-2014 09:50 PM

Re: Custom TPL and assigning a smarty variable
 
I'm not sure if I get your question. But if you want to display an HTTP request parameter in a Smarty template, you should "assign" it from your php script first:
http://www.smarty.net/docsv2/en/api.assign.tpl

NickGiacopuzzi 01-30-2014 02:56 PM

Re: Custom TPL and assigning a smarty variable
 
I was ussing $smarty->assign('',); in the wrong location in my script. Ive sorted the issue. Thanks


All times are GMT -8. The time now is 04:56 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.