Carcor Posted May 8, 2014 Share Posted May 8, 2014 I'm not even sure if I can do what I'm wondering, but I'm trying to get a value from a form and then use it in a {php} at the same TPL. Maybe it's easier developing a module, but it looks kind of easy doing it just in the TPL. Any ideas? Am I wrong? Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 in smarty.tpl files, in prestashop you can't use {php} tags. .tpl files is not a right place to run php code. this is not consistent with the idea MVC programming to run php code, use controllers, not tpl files Link to comment Share on other sites More sharing options...
Carcor Posted May 8, 2014 Author Share Posted May 8, 2014 (edited) in smarty.tpl files, in prestashop you can't use {php} tags. .tpl files is not a right place to run php code. this is not consistent with the idea MVC programming to run php code, use controllers, not tpl files thanks a lot for your reply, kind of helped learning but not solving the problem because I didn't explain myself at all. I'll be more straight, based on the form of this product I want to get the form "Total:" value and use it as final price. Any tips about where to implement this? I'm a bit lost. Edited May 9, 2014 by Carcor (see edit history) 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