Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to suppress URL &sort= Parameter?

How to suppress URL &sort= Parameter?

Views: 773

Results 1 to 1 of 1
15 Jan 2012, 10:11 PM
#1
rarpsl avatar

rarpsl

New Zenner

Join Date:
Feb 2011
Posts:
26
Plugin Contributions:
0

How to suppress URL &sort= Parameter?

NOTE: I found a reply about how to alter the number of items per page a http://www.zen-cart.com/forum/showthread.php?t=190994 which solved my problem (I set the limit to 15) but for my information I would still like to know how I could have solved my issue if I had not found it.

I have 3 categories defined. One of them has 11 items which means that when I display that category it needs two pages to display and thus has previous/x of y/next links in its header. When I defined the items, I used the sort field at the bottom of the entry window to define the display order. The initial display when I use the URL index.php?main_page=index&cPath=xx displays the items in my requested order. When I use the next link it adds &sort=1a&page=2 to the URL displaying page 2 for item 11. Due to the sort=1a this is NOT item 11 but the item with the highest item name. Using the prev link at this time makes this &sort=1a&page=1 now displaying the other 10 items again sorted by name. My question is how to suppress the &sort= parm so the links only have the &page= clause thus observing my designated display order.

To see what happens, use this URL - http://www.lunacon.org/zencart/index.php?main_page=index&cPath=68

Thank You.