Hello everyone I have spent lots of time trying to get a php form working with zen cart. I usually always go to define pages to put html text but for some reason this wasn't accepting php code. I researched the issue and found a thread but in the thread it said that php forms do not work in zen cart. Well I have gotten it to work. What I did was create a new php page with the zen cart add new page addon. I then edited the file that is located here
includes/templates/YOUR TEMPLATE/templates/
I put the original php form code in the place of what is in the page right now. I uploaded the files and tested it on the site
Here is an example of it on the site now
stxm+illing.com/index.php?main_page=requ+est_a_bro+chure
PLEASE TAKE THE '+' SIGNS OUT OF THE LINK
As you can see from the link it looks the way I intend it to look and I love it. Everything works with one exception. I have the code referencing multiple files. These files are separate php files. I do not know where to place them so the form will correctly work.
I tried placing them in the same directory as the form which is includes/templates/YOUR TEMPLATE/templates/
and put the files in this directory but still not working.
If you look at the form you will notice that the countries drop down box does not show anything the reasoning is because it is in another php file which is not being found. Please if anyone has any insight to completing this form that would be great. I just need to know the exact directory the files required for this form to work is. Any thoughts would be much appreciated. Thanks
Bookmarks