Jump to content

[Theme][newbie]Use a function allready in use


Recommended Posts

Hello, 

 

I am just new to prestashop development, but discovering a code that as been done to another developer. 

 

I need to use a function that is already working inside another template file. (let call it model.tpl)

 

- so after copying the code from model.tpl inside the already existing catalogue.tpl i want this function to work, i have the error who is : 

 

Notice: Undefined index: avis in /Applications/MAMP/htdocs/www/mmj/cache/smarty/compile/28/10/e0/2810e005268215e60631a8e2fe553c62c3d8d1e7.file.catalogue.tpl.php on line 88

 

Could you please help me on the steps i have do toto have the function working ? 

 

- How to define the index ? 

- How to make this as object ? 

 

Kind regards,

Link to comment
Share on other sites

  • 1 month later...

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