Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Posts
    24
    Plugin Contributions
    0

    Default Change the order of info in Product Listing

    Well, all I want for Christmas is to know how to...

    Hi folks - this is my first leap into this forum. I've searched pretty extensively and can't seem to find a solution - although I have been able to get close.

    Here's the thing - I wanted to go tableless with the Product Listing. I identified the product_listing.php file as a good place to start, but not being a php guy I couldn't do it from scratch.

    But adding the columnar/grid display addon allowed me to get close. I basically want one item per row, so I just set the settings to 1 column. And I saw in the file that it each bit seems to use this "case" to "break format, in which I could tag a nice little div and id, such as

    Code:
    case 'PRODUCT_LIST_MANUFACTURER':
              $lc_align = '';
              $lc_text = '<div class="manufacturer">Provided by <a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a></div>';
              break;

    This was working great. But it's the sequence of the stuff in the source order that is the issue - it places the ItemTitle at the bottom of the listing. The source order I want is to the title, the image, the description, the "more info" and then the price.

    When I look at product_listing.php, the segments don't seem to be in the order that they get rendered in the final source. Is there another file that dictates what order these get echoed in in the source?

    Hope this makes sense. Can't post a link unfortunately as I've been working on a local install.

    Thanks in advance, and wherever you might be in the world, whatever you might be celebrating - peace and best wishes to you and yours.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,693
    Plugin Contributions
    6

    Default Re: Change the order of info in Product Listing

    In the Configuration ... Product Listing ...

    Setting a field to 0 is OFF ...

    Any other value is the Sort Order for that field ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jul 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: Change the order of info in Product Listing

    And the award for the stupidest question of 2006 goes to... Moxy!

    Linda - thanks so much for that. You have to believe me that I have scoured the wiki and forum for a solution to this. It's just so obvious that I completely missed it.

    Thanks much :) Merry Christmas!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,693
    Plugin Contributions
    6

    Default Re: Change the order of info in Product Listing

    And a very Merry Christmas to you!

    Glad that this was able to help you out ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Sep 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: Change the order of info in Product Listing

    YES! Thank you....I've been searching for the past 30 minutes

 

 

Similar Threads

  1. Help making Template
    By Shiftypow in forum Basic Configuration
    Replies: 8
    Last Post: 4 Jun 2007, 07:20 AM
  2. Product description in product more info in html format but not in product listing?
    By this side up in forum Customization from the Admin
    Replies: 1
    Last Post: 18 Dec 2006, 06:25 PM
  3. Flip order of Product Info on Cat page
    By greatbig47 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Sep 2006, 07:11 PM
  4. Product Info - Prev/Next Order
    By mrmarcus66 in forum Bug Reports
    Replies: 5
    Last Post: 15 Aug 2006, 04:35 PM

Bookmarks

Posting Permissions

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