![]() |
Listing newest added product first
Add the ability to sort by add_date field along with listing default by this field. Edit include/search.php and locate the following code:
Code:
$sort_fields = array( Change to: Code:
$sort_fields = array( Next locate: Code:
# After this above code add: Code:
if(empty($sort)) $sort = "add_date"; Next locate: Code:
case "productcode": Above this line add: Code:
case "add_date": Thats it! Now all of your product listings by default will show newest products first. As well as Date field has been added to the sort options list under "Date". :!: Keep in mind, X-Cart admin->General Settings->Apperance: "Select the order in which products should be displayed within a category:" will be ignored with this mod in place. |
Thats a nice touch Boomer, thanks :)
|
thanks! bookmarked for review later! I have a few other mods to add on that I purchased but this looks great ;)
|
This is what I have been looking for. It puts the newest products first in the listings! Thanks! :D
|
This is nice little useful mode...thanks boomer :D
|
Thanks for the free mod B00MER,
Can this mod be editted so products can be sorted by Manufacturers? |
Quote:
|
one thing we have seen that has been a bit of a nuisance.... when products are updated via CVS and imported they noted as "new" when they really are not new.
|
Hmmmm - could I have some help - tried this tonight and works great "almost"!
My date doesn't change from ASC to DESC http://scrapbookbytes.com/store/manufacturers.php?manufacturerid=22 |
What changes should be made if you dont want it sorted by default using newest date but you just want it as an option so if they click it it will sort and put newest first. Another wards i want to keep the default to sort alphabetical.
|
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.