Forums / Templates, Stylesheets, Page Layout / Product Listing Layout (how to make 3 columns?)

Product Listing Layout (how to make 3 columns?)

Locked

Views: 3,023

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
7 Jan 2007, 6:18 AM
#1
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Product Listing Layout (how to make 3 columns?)

Hello,
I am still on 1.2.6.
I was able to make 3 columns for "New Products For January" listing:
http://idtagsonline.com/store/index.php?main_page=index
by going to Configuration/Maximum Values/New Products Module = 9
It made 3 rows x 3 columns.

I would like to make the same Layout for all my other listings like:
http://idtagsonline.com/store/index.php?main_page=index&cPath=1

http://idtagsonline.com/store/index.php?main_page=products_new

http://idtagsonline.com/store/index.php?main_page=products_all

Please suggest, where is this control?
I could not find any parameter for the number of columns.
Thanks.

7 Jan 2007, 6:27 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Product Listing Layout (how to make 3 columns?)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Jan 2007, 3:18 PM
#3
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

Thanks for reply,
So, to conclude from your suggestion, there is no admin option to do it.
Additional "Column Layout Grid for Product Listing" module has to be installed.

  1. Is it available for 1.2.6 Version of Zen Cart?

  2. Is it possible simply to Turn OFF large "New Products for January" box? (with 9 products)?

Thanks.

9 Jan 2007, 8:36 PM
#4
floop avatar

floop

New Zenner

Join Date:
Dec 2005
Posts:
5
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

@idtags:

In case you didn't find out yet, this is how to get rid of the "new products for ..." box:
Admin->Configuration->Index Listing->Show new products on main page (first line), set value to 0

10 Jan 2007, 2:38 AM
#5
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

Thanks for your reply.
I never would look in Index Listing, just because Title does not sound as anything I would look for.

To add to the topic "Show New Products on Main Page" was 0 and it still did show "New Products Box"

However other parameter: "Show New Products on Main Page - Category with SubCategories" being set to 0 was turning OFF this box.

Thanks again for your lead. :smile:

1 Feb 2007, 8:00 AM
#6
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

Is this available for version 1.2.6?
Where?

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

24 Nov 2007, 6:39 PM
#8
cheezylu avatar

cheezylu

New Zenner

Join Date:
Feb 2007
Location:
Chicago, IL
Posts:
56
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

This is a fabulous mod and I have been looking for it for ages! I'm so glad I searched the forums again... I must not have put in the right search words the last million time. :) THANKS!

- Steph -
Fetch Designs: Standards Compliant Web Design

** Pink Puppy Designs**
* "Collars dogs REALLY want to wear!"*
www.PinkPuppyDesigns.com

27 Nov 2007, 9:18 PM
#9
hansonian avatar

hansonian

New Zenner

Join Date:
May 2007
Location:
tampa, fl
Posts:
23
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

I wish I would have found this earlier cause I've been killing myself trying to figure out how to do this. Excellant mod.

28 Nov 2007, 7:37 AM
#10
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Product Listing Layout (how to make 3 columns?)

Very nice module. I found one small bug in it. When I implemented this module, the frame and background around my product images disappeared in both column and row layouts. I fixed this by adding '<div class=productImage-background>' at the beginning of lines 204 and 206 in the product_listing.php module as follows:

          $lc_text = '<div class=productImage-background><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a></div>';
          } else {
          $lc_text = '<div class=productImage-background><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a></div>';

The spacing is wrong on the images, they are 'off-center', but this is fixed by adding "margin:auto;" to the .productImage-background class in the CSS style sheet. Works correctly in both column and row order.

This module works great for product listing within categories. Is there any way to get it to work for Product Listing - ALL?

Maury