Jump to content

$products var from footer.tpl in prestashop 1.4.11


jimkaprod

Recommended Posts

i started my test with 1.5 and i just add this line in footer.tpl :

 

<div id="footer" class="grid_9 alpha omega clearfix">
{$products|@count}
 
On the front site when i'm on category page, it simply return me the right count of products in the category page.
 
With the 1.4.11 it returns me 0
Link to comment
Share on other sites

you have to create this variable somewhere in controllers first, then include it to the smarty array.

 

you can use there {$phones|print_r} or also {$vegetables|print_r} - these variables will not work too, because script don't know these variables, the same as {$products}.

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