Forums / Templates, Stylesheets, Page Layout / Product Listing (category) tables

Product Listing (category) tables

Locked

Started by elfboy on 5 Sep 2006, 10:42 PM · Views: 1,471

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Sep 2006, 10:42 PM
#1
elfboy avatar

elfboy

New Zenner

Join Date:
Sep 2005
Posts:
79
Plugin Contributions:
0

Product Listing (category) tables

I would like to customize the product listing tables:

  • make the price right justified.
  • make the description (Item Name) left justified.
  • make the Product Images center justified (left would be OK too).
  • keep the formatting of the product description (or customize that too).

I've been poking around modules/product_listing.php (copying it to modules/MYTEMPLATE/product_listing.php of course :wink2: ) but the PHP text align thingy does not seem to be working.

case 'PRODUCT_LIST_PRICE':
    $lc_text = TABLE_HEADING_PRICE;
    $lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' . PRODUCTS_LIST_PRICE_WIDTH : '');
    $zc_col_count_description++;
    break;

I also attempted this with CSS but it appears all the text entries are using the same class. (I'd be happy to define another class if I knew how to insert it into the PHP code...:huh:

http://soldoutrooms.com/index.php?main_page=index&cPath=1

Any ideas?

**
Got Rocks? Natural History Online**

6 Sep 2006, 1:40 AM
#2
racquel avatar

racquel

New Zenner

Join Date:
Aug 2006
Location:
Leura, Oz
Posts:
32
Plugin Contributions:
0

Re: Product Listing (category) tables

Try looking at this coding tweak to the product_listing.php, which adds CSS Classes for Table Columns :

http://www.zen-cart.com/forum/showthread.php?p=250818#post250818

I was able to change the alignment of all the columns in the way that you want to get it done by using these calls via the stylesheet.

.col1{
}

.col2{
}

.col3{
}

Not sure how it will affect the product description part though.

HTH

7 Sep 2006, 1:42 PM
#3
elfboy avatar

elfboy

New Zenner

Join Date:
Sep 2005
Posts:
79
Plugin Contributions:
0

Re: Product Listing (category) tables

Thanks racquel,
I'm looking into it. Any ideas on how to retain formatting (bold, color) in the description?

**
Got Rocks? Natural History Online**

10 Sep 2006, 5:52 AM
#4
racquel avatar

racquel

New Zenner

Join Date:
Aug 2006
Location:
Leura, Oz
Posts:
32
Plugin Contributions:
0

Re: Product Listing (category) tables

:no:

I don't know if this will help - someone managed to move the description box here with tpl_modules_products_all_listing.php - maybe there's something that can shed light in there.
http://www.zen-cart.com/forum/showthread.php?t=42014

I also picked up this old thread in a search, and again, i'm not sure if it will assist with CSS tweaking for individual columns;
http://www.zen-cart.com/forum/archive/index.php/t-24058.html