![]() |
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:
$products = func_search_products($search_query, !empty($user_account['membership'])?$user_account['membership']:"", $first_page,$current_category["product_count"],0,$orderby); 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! |
All times are GMT -8. The time now is 08:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.