Forums / Templates, Stylesheets, Page Layout / Displaying all products and new products listing in column/grid

Displaying all products and new products listing in column/grid

Started by chapagain on 30 Nov 2007, 7:55 AM · Views: 32,946

Results 41 to 45 of 45
20 Jul 2013, 11:37 AM
#41
gerrit1958 avatar

gerrit1958

New Zenner

Join Date:
Jul 2013
Location:
Amsterdm
Posts:
2
Plugin Contributions:
0

Displaying all products and new products listing in column/grid

I get the same problem but i see your treat is very old i work with 1.5.1 what can i do?

chapagain:

I was in search for displaying all products listing and new products listing in column/grid layout instead of the default row layout.. I searched in this forum a lot.. could not found any appropriate solution to this problem.. a suggestion was to change/modify the code.. Hence, I have done it.

PS: Currently i am using 4 columns per row. If you want to change the column option per row then you have to modify the following line in the code above:

if(($row_counter-1)%4 == 0)

> 
> change the number 4 to your desired row number. :smile: This is a bit hard coding, but i will definitely try to find a better solution. :yes:
> 
> zen cart is not allowing me to post so long text/chars.. so i am posting the code in reply to this post :D
> 
> "The text that you have entered is too long (23785 characters). Please shorten it to 23000 characters long."
25 Sep 2013, 5:12 AM
#42
amandavz avatar

amandavz

Zen Follower

Join Date:
Mar 2009
Location:
Crockett, Texas
Posts:
139
Plugin Contributions:
0

Re: Displaying all products and new products listing in column/grid

sjbglx:

BTW: I forgot to incluce the file details.

The file location :/public_html/includes/templates/template_default/templates,
The file name: tpl_modules_products_featured_listing.php

If your template has its own file, then edit the file accrodingly in your template folder.

How: Just use the following code to replace all codes in that file.

I used your metho on a new site I am setting up and it worked PERFECTLY!!! Thanks so much for the contribution!!! :)

Amanda Vande Zande
AllClipART.info
Lonestar Princess

15 Jul 2014, 8:18 PM
#43
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Displaying all products and new products listing in column/grid

I am having a problem and hoping someone can give a hand. For some reason my product listing is displaying in one column only. Even though I have it set to grid, it still displays only one column. I have a feeling it may be in the css, but I cannot find it. Any help would be greatly appreciated. The temporary url is: http://192.232.243.44/~southwes

Thank you!

15 Jul 2014, 8:28 PM
#44
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Displaying all products and new products listing in column/grid

Add to your stylesheet (anywhere)```
.centerBoxContentsProducts {float: left;}

This is default behavior, but some style editing you did must have eliminated that, probably as a change to a rule that covers many different kinds of elements.
15 Jul 2014, 8:33 PM
#45
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Displaying all products and new products listing in column/grid

creyesx6:

I am having a problem and hoping someone can give a hand. For some reason my product listing is displaying in one column only. Even though I have it set to grid, it still displays only one column. I have a feeling it may be in the css, but I cannot find it. Any help would be greatly appreciated. The temporary url is: http://192.232.243.44/~southwes

Thank you!

Never mind, I found the problem in CSS. It was a simple text-align: left in the wrong place.