Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customizing the Products All listing

Customizing the Products All listing

Locked

Views: 1,432

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 May 2007, 1:00 AM
#1
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Customizing the Products All listing

Hi folk,

I'd like to modify the Products All listing so it looks exactly like the regular products listing. (Why it's so different is just one of those How high is the sky? questions that it ain't worth asking.)

I looked at the two relevant files in includes/templates/My_template/templates -- that is: tpl_modules_products_all_listing.php and tpl_modules_product_listing.php -- and decided I'd better not just copy the regular one and replace the All one. That seemed like a Really Bad Idea. The two files are wildly different in structure and even size, the regular one having 66 lines and the All one having 216 lines.

So, I need some help from the PHP savvy. First, is it possible to do that sort of wholesale replacement -- taking care to make sure the references out of the file are correct. Or is there some other method to do what I want?

To broaden the issue: if I ever decide to use the New Products or Specials or any of the other product listings, I'd also want them to look the same, and to be able to control all of them at once from the stylesheet and from admin. (I honestly can't imagine any reason for the lists to be different, but maybe I lack imagination.) So I guess a general solution would be to use the tpl_modules_product_listing.php file to control all product listing tasks in my store.

Any hints, help or laughs greatly appreciated.

Rob

10 May 2007, 5:00 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Customizing the Products All listing

Rob -

Is this an urgent need? The listings (all 5) are scheduled for "standardization" and improvements soon (1.4).

10 May 2007, 4:17 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Customizing the Products All listing

No rush. This afternoon would be fine. ;-)

Any chance I can beta test the new layouts? My 1.3.7 store is fairly standard, in the sense that I haven't applied any major layout breaking mods. It's the wholesale one in my sig below. (And I have a local copy running in MAMP to experiment with before applying it to my live store.)

Rob

10 May 2007, 6:41 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Customizing the Products All listing

"(I honestly can't imagine any reason for the lists to be different, but maybe I lack imagination.)"

One possibility is for an all listing that is a stripped version (say just name, price & buy now) to run through the whole list quickly...
Some businesses might really want this.

10 May 2007, 6:50 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Customizing the Products All listing

True, but that's the sort of thing that could be done with a switch in admin and some stylesheet tweaks.

There have been forum threads that ask for more than one field for product description, so you could have, for example, a field for brief description, then one for full text description and another for technical details or whatever. And these could be applied to one or more of the list types via admin. Which I hope is what Kim is referring to above.

Can't wait for 1.4.....

Rob

10 May 2007, 7:42 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Customizing the Products All listing

I guess you were talking about reasons for the listing file structures to be different... there, I fully agree with you (and so do the devs, as they are going to standardize the structures).