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
    69,402
    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.5]
    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!

  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
    69,402
    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.5]
    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!

  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. Change Order Of Product Info On Product Detail Page
    By ewramos in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Mar 2011, 10:26 AM
  2. Change the order of the elements in Product Listing
    By sevaro in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 05:46 AM
  3. Change Buy Now Button to More Info on Product Listing Page
    By prosam in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2008, 02:21 PM
  4. Change order of info on column product listing
    By digitalhalo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jul 2007, 11:57 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR