Print Page | Close Window

Changing the default sort order when "Viewing All"

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=3442
Printed Date: 28-September-2024 at 10:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing the default sort order when "Viewing All"
Posted By: njessen42
Subject: Changing the default sort order when "Viewing All"
Date Posted: 18-February-2010 at 4:55pm
Hello,

We upgraded to v4.0 yesterday and love it.

I noticed that when searching for items in out store using the basic search box it defaults to a "description" search. Then when I choose "View All Items" it defaults to "Lowest Price" list of search results. We would like to change the "View All Items" link to default to a #Stock number view. Is this possible?  Is it also possible to remove the sort by: "low price" and "high price" options all together on the drop down?

Thanks,
Nate
Rings & Things
http://shop.rings-things.com - http://shop.rings-things.com



Replies:
Posted By: njessen42
Date Posted: 19-February-2010 at 12:11pm
Anything to point me in the right direction would rock. Big%20smile


Posted By: Greg Dinger
Date Posted: 19-February-2010 at 12:18pm
Have you looked at the display settings in the admin?  There is an override for that dropdown now. If you set a preference you may resolve the issue.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: njessen42
Date Posted: 19-February-2010 at 12:30pm
Greg I did. It seems to only effect the categories and not the actual searching (search box) or "view all items" link. We still want the customers to be able to sort by description and item number but not price at all. This is how it is set up currently, if this option worked for the whole store on all accounts that would be great.

Product sorting method within a category

Default product sorting preference:  javascript:win%28helpOnline.asp?ref=432%29">More%20information%20on%20this%20feature
< name="PCOrd" value="0" ="" ="clearBorder" =""> Product Part Number (SKU)
< name="PCOrd" value="1" ="clearBorder" =""> Product Name
< name="PCOrd" value="2" ="clearBorder" =""> High Price 
< name="PCOrd" value="3" ="clearBorder" =""> Low Price
User-selected product sorting:  javascript:win%28helpOnline.asp?ref=433%29">More%20information%20on%20this%20feature
< name="HideSortPro" value="1" ="clearBorder" =""> Don't let users sort products ("Sort by" drop-down menu is hidden)





Posted By: njessen42
Date Posted: 19-February-2010 at 12:31pm
We currently have option 0 set for the categories. 


Posted By: Greg Dinger
Date Posted: 19-February-2010 at 12:44pm
I'm not sure - can't go poking around that just now.  Maybe a bit later.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: njessen42
Date Posted: 19-February-2010 at 1:01pm
No worries Greg, I know you might be handling something else for us at Rings and Things Wholesale.

This is what else I found out though. The search box puts items into "stock#" order when you first search for something, but as soon as you click "view all" or any other page number it defaults to "low price" which looks like order=3 in the search string. I just have no idea in the code how to change this.




Posted By: njessen42
Date Posted: 19-February-2010 at 1:40pm
I think I found out how to change the way sort order for "view all items" and (1,2,3,4) search pages come up. You change the bolded from 3 (low to high price) to anything of the 4 options available. I changed mine to 1 for description and it seemed to work great. The last problem I have is with the search box itself. It still pulls things up by stock#.

File= inc_SrcPrdQuery-no-change.asp
strORD=getUserInput(request("order"),4)
if NOT validNum(strORD) or trim(strORD)="" then
    strORD=1

File= inc_SrcPrdQuery.asp
strORD=getUserInput(request("order"),4)
if NOT validNum(strORD) or trim(strORD)="" then
    strORD=1


Posted By: njessen42
Date Posted: 02-March-2010 at 4:10pm
Hello,

Has anyone come across the code that relates directly to the main search box. I need it to default to "description" and not stock number.


Posted By: Greg Dinger
Date Posted: 02-March-2010 at 4:37pm
If V4, go to settings, display settings.  It's right there.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: njessen42
Date Posted: 02-March-2010 at 4:39pm
Thank you so much. I swear I thought that was just within the categories and not with the main search. It worked, so simple. 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net