Jump to content

Contactform on productpage

Recommended Posts

I'm trying to create an contactform on the productpage for my shop (prestashop
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.



Link to comment
Share on other sites

  • 2 weeks later...
  • Create New...