| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
How TO Order Products List By Field | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
Hey everyone,
I managed to get a sort working by Price and by Product (can be further applied for any other product fields), along the lines that this original thread was going towards (i.e. A "Sort By" link at the top of the product listings). Did the following: 1) Made the changes in navigation.tpl and products.tpl (basically adding the code so that $orderby variable can be passed back and forth), according to what funkydunk mentioned earlier in this thread 2) DID NOT MODIFY func.php at all... Instead, modified products.php to: Code:
The sorting is then not only limited to price, but whatever variables you would like to add to products.tpl for sorting... Hope this works for everyone!
__________________
X-Cart Version: 3.5.2 | PHP version: 4.3.4 | MySQL version: 4.0.15 Bluewave Multimedia - Web Development Outsourcing -- \"The sweet is never as sweet, without the sour.\" |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|