| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Listing newest added product first | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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:
Change to: Code:
Next locate: Code:
After this above code add: Code:
Next locate: Code:
Above this line add: Code:
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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#2
|
|||||||
|
|||||||
Thats a nice touch Boomer, thanks
__________________
Version: 4.1.3 One of the largest UK Suppliers of Car Modification Accessories http://www.impact-styling.com |
|||||||
#3
|
|||||||
|
|||||||
thanks! bookmarked for review later! I have a few other mods to add on that I purchased but this looks great
__________________
X-Cart Pro 4.0.19; Unix Other: XAOM XOffers XGift Reg Other Mods: Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice |
|||||||
#4
|
|||||||||
|
|||||||||
This is what I have been looking for. It puts the newest products first in the listings! Thanks!
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#5
|
|||||||
|
|||||||
This is nice little useful mode...thanks boomer
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#6
|
|||||||
|
|||||||
Thanks for the free mod B00MER,
Can this mod be editted so products can be sorted by Manufacturers?
__________________
X-cart v4.0.8 |
|||||||
#7
|
|||||||||
|
|||||||||
Quote:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#8
|
|||||||
|
|||||||
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.
__________________
X-Cart Pro 4.0.19; Unix Other: XAOM XOffers XGift Reg Other Mods: Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice |
|||||||
#9
|
|||||||
|
|||||||
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
__________________
X-Cart Pro 4.0.19; Unix Other: XAOM XOffers XGift Reg Other Mods: Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice |
|||||||
#10
|
|||||||
|
|||||||
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.
__________________
x-cart version 4.0.14 |
|||||||
|
|||
X-Cart forums © 2001-2020
|