Jump to content

Including store.tpl inside contact-form.tpl


Recommended Posts

Hi friends
 
I am trying to include "store.tpl" file inside "contact-form.tpl": 
 

{include file="$tpl_dir./stores.tpl"}

But I'm getting 3 notice errors:

Notice: Undefined index: simplifiedStoresDiplay in /home/server/public_html/cache/smarty/compile/7f/80/2f/7f802fa4f086a7edd8b2008f3bc87a5ab5c0ca90.file.stores.tpl.php on line 51
Notice: Trying to get property of non-object in /home/server/public_html/cache/smarty/compile/7f/80/2f/7f802fa4f086a7edd8b2008f3bc87a5ab5c0ca90.file.stores.tpl.php on line 51
/home/server/public_html/cache/smarty/compile/7f/80/2f/7f802fa4f086a7edd8b2008f3bc87a5ab5c0ca90.file.stores.tpl.php on line 145
Notice: Trying to get property of non-object in /home/server/public_html/cache/smarty/compile/7f/80/2f/7f802fa4f086a7edd8b2008f3bc87a5ab5c0ca90.file.stores.tpl.php on line 145

And 1 Javascript error:

JSMin: Unterminated String at byte 97: 'JSMin: Unterminated String at byte 103: ' 

My prestashop version is 1.5.4.1 and I haven´t modified any of this files.

 

If anyone can help me I´d be really happy as this is giving me so many headaches.

 

Thanks in advance for any help you are able to provide!

Edited by vistol (see edit history)
Link to comment
Share on other sites

you have also to pass variables to smarty array in contact controller, the same variables as you can see in stores controller

 

Hi Vekia

 

I have opened StoresController.php but it's all full of variables. Which one should I choose? and how can I implement those variables inside the contact-form.tpl?

 

Sorry that I am a complete ignorant in php and smarty coding.

 

Thanks for your help, I really appreaciate it!

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...