Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default I need to hide a column in Product Listing

    Hey gang,

    I know this one is kinda strange, but I have 'Manufacturers' displaying in the first column in my Product Listing. I still need to have that as the sort field, BUT I really don't want it's contents to display within the Product Listing...just using the text for the sort.
    The image (which I have in the next field) will suffice.

    I need for room to display what I want in the Product Listing, and the Manufacturers is taking up the extra space.

    Is there a place to actually comment this out (and the heading above it) to hide it from the customer and still have it used in the calulation for the sort?

    thanks so much,

    Jeff Michaels

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: I need to hide a column in Product Listing

    What version are you using? You can turn the column off in the Admin> Configuration> Product Listing
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: I need to hide a column in Product Listing

    1.3.5

    Yes, I know I can turn it off, but I still need that column's info to determine the sort I want.
    When I turn it off, the columns change positions and Manufacturer is no longer a choice to create the sort I need.

    I'm look to still use the data within Manufacturer for sort purposes, but not display it

    can this be done?

    thanks,
    Jeff

  4. #4
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Re: I need to hide a column in Product Listing

    Has anyone had a chance to devise a solution to my little problem?


    thanks so much in advance

    Jeff Michaels
    pres of Musical Creations Ltd.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I need to hide a column in Product Listing

    You'd have to cheat ...

    You want functionality but not the display ...

    The two are tied together ... and that is where it gets tricky ...

    If you remove the column then the sort order which is based on columns gets off ...

    If you made the column but the title was blank and you commented out the output and just sent a   ... visually you would not see the info ... but functionally it would still be there ...

    Depending on your layout/template etc. you could more or less fake it out doing it this way ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: I need to hide a column in Product Listing

    Linda,

    Can you point me to the proper file that would have the data I could comment out in a column? I've been searching pretty hard here and nothing is leading to this. The heading was pretty easy to locate though. This is in the index listing. I have 5 columns displaying and I only want to 'hide' the first column so everything in the remain 4 (especially the description) would fill in the gap.

    thanks,
    Jeff

    /Users/jeffmic/Desktop/Picture 2.pdf
    Last edited by jeffmic; 26 Oct 2006 at 05:51 AM.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I need to hide a column in Product Listing

    Bunch of peices and parts to the products_listing ...

    Note: there is also the advanced search too ... on many things, there has to be changes to those files ... but I think you can sneak by that this time ...

    /includes/modules/product_listing.php
    Copy to your templates and overrides directory:
    /includes/modules/your_template_dir/product_listing.php

    Now there are two points here for the display ... headers and listing ...

    This is the title ...
    PHP Code:
        case 'PRODUCT_LIST_MODEL':
        
    $lc_text TABLE_HEADING_MODEL;
        
    $lc_align '';
        
    $zc_col_count_description++; 
    PHP Code:
    $lc_text ' '
    This is the listing output:
    PHP Code:
            case 'PRODUCT_LIST_MODEL':
            
    $lc_align '';
            
    $lc_text $listing->fields['products_model'];
            break; 
    PHP Code:
    $lc_text ' '
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I need to hide a column in Product Listing

    poopers ... I just did model vs manufactuer ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: I need to hide a column in Product Listing

    Take two ...

    PHP Code:
        case 'PRODUCT_LIST_MANUFACTURER':
        
    $lc_text TABLE_HEADING_MANUFACTURER;
        
    $lc_align '';
        
    $zc_col_count_description++;
        break; 
    PHP Code:
    $lc_text ' '
    PHP Code:
            case 'PRODUCT_LIST_MANUFACTURER':
            
    $lc_align '';
            
    $lc_text '<a href="' zen_href_link(FILENAME_DEFAULT'manufacturers_id=' $listing->fields['manufacturers_id']) . '">' $listing->fields['manufacturers_name'] . '</a>';
            break; 
    PHP Code:
    $lc_text '&nbsp;'
    /me needs coffee bad ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: I need to hide a column in Product Listing

    Thanks Linda,

    I got the manufactuers column to hide nicely and the original sort still works.
    At first, I thought I had to comment out the first set of lines and then add the &nbsp;.

    All I had to do was just add the &nbsp; before the break and it worked perfectly.

    One small additional question:

    How can I add a little 'padding' around the columns so the image, model, etc are not bumping into each other. Things are quite tight and some space will really help.
    I tried to add some spaces (&nbsp;), but it didn't work.


    thanks,
    Jeff

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Hide Sold out product from Product Listing page
    By needsome in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 May 2011, 06:49 PM
  2. Need help with center column for product listing
    By Snicklefritz in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 6 Jan 2010, 06:10 PM
  3. Column layout grid for product listing - one column only
    By london mummy in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 26 Oct 2009, 10:06 AM
  4. Column Layout Grid for Product Listing - Need Row Header
    By kwright in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Oct 2008, 09:36 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