Keron83 Posted December 20, 2013 Share Posted December 20, 2013 Hi. I'm trying to create an contactform on the productpage for my shop (prestashop 1.5.6.1.) I created an frontcontroller (myfileController.php) and a TPL (myfile.tpl) file.From the file product.tpl I'll include the myfile.tpl. {include file="$tpl_dir./myfile.tpl"} This works, my simple form is showing up on the productpage. How can I add PHP code to my form? It cant be done in the TPL file with the {php} {/php} tags. Result is a blank screen and an error. .... unknown tag "php"' in ...Should this be done in the fontController?Hope anyone can help and give me some tips. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 you can do it in controllers/front/ProductController.php inside initContent/init functions Link to comment Share on other sites More sharing options...
Keron83 Posted December 30, 2013 Author Share Posted December 30, 2013 Thanks, ill give it a try! Link to comment Share on other sites More sharing options...
Recommended Posts