jimkaprod Posted February 13, 2014 Share Posted February 13, 2014 Hi there, sorry for my english... i've got to work on 1.4.11. in footer.tpl when i try to do this: <div id="footer"> {$products|@count} In 1.4.11 the result is 0 In 1.5 the result is the right number of items. Any ideas ? Thx Jmi Link to comment Share on other sites More sharing options...
vekia Posted February 13, 2014 Share Posted February 13, 2014 how you attached this variable to footer section? by default, there is no products variable. Link to comment Share on other sites More sharing options...
jimkaprod Posted February 13, 2014 Author Share Posted February 13, 2014 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 More sharing options...
jimkaprod Posted February 13, 2014 Author Share Posted February 13, 2014 to be clear of what i'm trying to do, i want to get the products list (ids,prices) from footer tpl when i'm on category page, cart ... Thx Link to comment Share on other sites More sharing options...
vekia Posted February 13, 2014 Share Posted February 13, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now