Jump to content

[help] "homefeatured" items per line


fernandokerber

Recommended Posts

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

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

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 by fernandokerber (see edit history)
Link to comment
Share on other sites

  • 3 months later...

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

  • 2 months 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...