Results 1 to 4 of 4
  1. #1

    Default 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 ) but the PHP text align thingy does not seem to be working.

    Code:
    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...

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

    Any ideas?

  2. #2
    Join Date
    Aug 2006
    Location
    Leura, Oz
    Posts
    32
    Plugin Contributions
    0

    Default 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/showth...818#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

  3. #3

    Default Re: Product Listing (category) tables

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

  4. #4
    Join Date
    Aug 2006
    Location
    Leura, Oz
    Posts
    32
    Plugin Contributions
    0

    Default Re: Product Listing (category) tables



    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/archiv...p/t-24058.html

 

 

Similar Threads

  1. v151 View a product/category in the catalog from a link in admin product/category listing
    By torvista in forum Customization from the Admin
    Replies: 4
    Last Post: 25 Jan 2013, 06:13 PM
  2. Change Category Product Listing Layout To Match All Product Listing
    By Alfonzo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Sep 2010, 11:49 AM
  3. Overlapping images / tables in product listing
    By hindley08 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Jul 2008, 06:44 PM
  4. Product Listing, moving out of tables
    By Rowan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jun 2006, 01:52 AM
  5. Replies: 6
    Last Post: 16 May 2006, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg