Forums / Templates, Stylesheets, Page Layout / Change the order of info in Product Listing

Change the order of info in Product Listing

Locked

Started by moxy on 23 Dec 2006, 2:55 PM · Views: 1,608

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 Dec 2006, 2:55 PM
#1
moxy avatar

moxy

New Zenner

Join Date:
Jul 2006
Posts:
24
Plugin Contributions:
0

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

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.

23 Dec 2006, 3:56 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

23 Dec 2006, 4:07 PM
#3
moxy avatar

moxy

New Zenner

Join Date:
Jul 2006
Posts:
24
Plugin Contributions:
0

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!

23 Dec 2006, 4:27 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Change the order of info in Product Listing

And a very Merry Christmas to you! :smile:

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!]
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!

28 Dec 2006, 9:23 PM
#5
kiddopakiddo avatar

kiddopakiddo

New Zenner

Join Date:
Sep 2006
Posts:
1
Plugin Contributions:
0

Re: Change the order of info in Product Listing

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