Forums / Templates, Stylesheets, Page Layout / Can Product Detail page order match product listing order?

Can Product Detail page order match product listing order?

Locked

Views: 1,863

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Apr 2007, 11:04 PM
#1
monster_pawn avatar

monster_pawn

New Zenner

Join Date:
Nov 2006
Posts:
6
Plugin Contributions:
0

Can Product Detail page order match product listing order?

I looked around a bit but couldn't find an answer to this question.

As items sell on our store, instead of removing the item completely, we modify the photo to say "SOLD" and reduce the quantity to none so people can see the types of items we had online in the past.

In the product listing for each category I used sort order to put the sold items at the bottom of the list, but if you go to a product detail page and then click "NEXT" to cycle through the products, the items display in alphabetical order. Is there a way to match the sort order from the listing page to mirror on the product detail pages?

I tried changing settings in the "Configuration/Product Info" with no luck.

I am running ZC 1.3.7 - You can see an example here:

http://monsterpawn.com/store/index.php?main_page=index&cPath=79

Any help is appreciated.

10 Apr 2007, 7:56 PM
#2
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Can Product Detail page order match product listing order?

It would take some php magic with the GD extension, but you basically need some logic that looks at the quantity and overlays that "SOLD" text accordingly. That code will need to go in the files where product images are looked up and loaded, so start with

/includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
and
/includes/modules/YOUR_TEMPLATE/product_listing.php

You should create a version of these files in your own template folders if it does not already exist. Also remember that "tpl_product_info_display.php" may be the wrong filename, if you use custom product types.

Do some research and let us know when you get too baffled. :blink:

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

10 Apr 2007, 8:13 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Can Product Detail page order match product listing order?

He wasn't asking how to modify images/display, he wanted to be able to view the product info pages by sort order, as he does on the listing pages.
The files mentioned are likely the place to start...

11 Apr 2007, 8:16 PM
#4
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Can Product Detail page order match product listing order?

LOL, wow, totally blew it on that one... :oops:

Admin > Configuration > Product Info > Previous Next - Sort Order

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com