amos-n-andy Posted November 5, 2014 Share Posted November 5, 2014 I am using Prestashop 1.5. Sorry for trivial question. But how may I access GET parameters in .tpl files ? I tried {$smarty.get.parameterName} with no luck... Link to comment Share on other sites More sharing options...
tuk66 Posted November 5, 2014 Share Posted November 5, 2014 It works for me. Link to comment Share on other sites More sharing options...
vekia Posted November 5, 2014 Share Posted November 5, 2014 in what .tpl file you're trying to use it? Link to comment Share on other sites More sharing options...
amos-n-andy Posted November 5, 2014 Author Share Posted November 5, 2014 in what .tpl file you're trying to use it? It's a .tpl for a custom created page with it's own Controller (not CMS page). Link to comment Share on other sites More sharing options...
amos-n-andy Posted November 5, 2014 Author Share Posted November 5, 2014 It works for me. For me it says: <br /><b>Notice</b>: Undefined index: serviceName in <b>/var/www/vm15513/data/www/nzcompany.ru/cache/smarty/compile/cc/5c/2d/cc5c2d6e164e11d85f3a0aa3874ec0e7f1f42d6b.file.order-form.tpl.php</b> on line <b>49</b><br /> where serviceName supposed to be GET parameter in a link like this http://nzcompany.ru/index.php?controller=order-form&service-name=123 Link to comment Share on other sites More sharing options...
tuk66 Posted November 6, 2014 Share Posted November 6, 2014 serviceName isn't service-name Use {$smarty.get.service-name} Link to comment Share on other sites More sharing options...
heyho Posted February 13, 2017 Share Posted February 13, 2017 Reminder: {if {$smarty.get.anyParameter} == "1" } ... do something ... {/if} PS 1.6 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now