rahimakram Posted February 22, 2017 Share Posted February 22, 2017 Please help How can I write php code in tpl I do following thing but not get any result {php} echo"test"; {/php} <?php echo"test"; ?> <{php}> echo"test"; <{/php}> {PHP} echo"test"; {/PHP} Link to comment Share on other sites More sharing options...
REGE Posted February 22, 2017 Share Posted February 22, 2017 There is no way to use PHP code inside Prestashop templates. More info here: http://stackoverflow.com/questions/16854532/how-to-add-php-code-in-tpl-file-in-prestashop Link to comment Share on other sites More sharing options...
musicmaster Posted February 22, 2017 Share Posted February 22, 2017 It was possible in an older version of Smarty - that is what you will find on the internet - but it not possible with the version that Prestashop is using. Link to comment Share on other sites More sharing options...
rahimakram Posted February 23, 2017 Author Share Posted February 23, 2017 thank for reply please suggest me I want 2 things 1. when visitor come my shop they must put forcefully there area pin/zip code 2. in my hole shop visitor only see there area supplier product I put many pin code in supplier like this : 441001,441002,441003,441004 Hope all things clear 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