Jump to content

Script +Php in the same tpl


Carcor

Recommended Posts

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

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

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 by Carcor (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...