Jump to content

How to insert custom function on template?


ventesites

Recommended Posts

Hello

 

I am using Prestashop 1.6.9 and need to add a function on the featured template.

 

The function is a duplicate with modifs of

 

public function getProducts (class Category.php)

 

The call to the function is :

 

Category::getRandomShopProducts((int)Context::getContext()->language->id, 1, 10);

 

my template is the product-list-feature.tpl (copy of product-list.tpl)

 

But i can't find the way to add it to my template without getting a bunch of errors, i guess i am not placing it at the right place or something like that

 

any idea about this?

 

Thanks

 

Pat

 

 

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