fernandokerber Posted July 10, 2012 Share Posted July 10, 2012 hello! I need help. I need to show products in a grid and get the grid number of each product in each row. I need to print the product row and column. Example: Product 1 - 1...... Product 1 - 2...... Product 1 - 3 Product 2 - 1...... Product 2 - 2...... Product 2 - 3 Product 3 - 1...... Product 3 - 2...... Product 3 - 3 Any idea? Link to comment Share on other sites More sharing options...
safa Posted July 10, 2012 Share Posted July 10, 2012 open this file modules/homefeatured/homefeatured.tpl and find this line {assign var='nbItemsPerLine' value=4} if chance "value=3" 3 products in each line.. 1 Link to comment Share on other sites More sharing options...
fernandokerber Posted July 11, 2012 Author Share Posted July 11, 2012 open this file modules/homefeatured/homefeatured.tpl and find this line {assign var='nbItemsPerLine' value=4} if chance "value=3" 3 products in each line.. thanks but you didnt understand me, i neet to get the position celule number and print it. like 'row 1 column 1' 'row 1 column 2' 'row 1 column 3'.... like 'row 2 column 1' 'row 2 column 2' 'row 2 column 3'.... Link to comment Share on other sites More sharing options...
safa Posted July 12, 2012 Share Posted July 12, 2012 hi fernandokerber you want product1 -- product1 --product1 product2 -- product2 --product2 product3 -- product3 --product3 same product 3 times?? right ? Link to comment Share on other sites More sharing options...
fernandokerber Posted July 13, 2012 Author Share Posted July 13, 2012 (edited) hi fernandokerber you want product1 -- product1 --product1 product2 -- product2 --product2 product3 -- product3 --product3 same product 3 times?? right ? No. I need to get the position number of row and column of each product shown in the HomeFeatured module. In my HomeFeatured I have 3 products per line and 3 lines (9 products). like these: PRODUCT 1; PRODUCT 2; PRODUCT 3; PRODUCT 4; PRODUCT 5; PRODUCT 6; PRODUCT 7; PRODUCT 8; PRODUCT 9; What I need is to dinamically get each product position of column and row. like these: PRODUCT 1; - row 1, column 1 PRODUCT 2; - row 1, column 2 PRODUCT 3; - row 1, column 3 PRODUCT 4; - row 2, column 1 PRODUCT 5; - row 2, column 2 PRODUCT 6; - row 2, column 3 PRODUCT 7; - row 3, column 1 PRODUCT 8; - row 3, column 2 PRODUCT 9; - row 3, column 3 I need to get cell (product) address like in Microsoft Excel tables. I think i need to write HomeFeatured code using two "foreach" loops. But I didnt get it Edited July 13, 2012 by fernandokerber (see edit history) Link to comment Share on other sites More sharing options...
vynx Posted November 3, 2012 Share Posted November 3, 2012 open this file modules/homefeatured/homefeatured.tpl and find this line {assign var='nbItemsPerLine' value=4} if chance "value=3" 3 products in each line.. how about in PS 1.5.2 ? i try to change this and no effect, i already force compile enable, cache disable all, still no effect Link to comment Share on other sites More sharing options...
timas Posted February 1, 2013 Share Posted February 1, 2013 prestashop 1.5.3.1 instead of changing in homefeatures.tpl nbr go to: admin-modules-homefeatured and change it there 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