| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding 7 days to orders management searches | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding 7 days to orders management searches
Hi gang..
A pet peeve of mine since day one was the way orders management can search.. While it's fairly complete, there is one glaring option missing.. Having a LAST 7 DAYS, and no, not the previous week which on Monday searches only Sunday and Monday orders.. My thing is to have last 7 days, regardless when you do this, so if Oct 4 is Monday, it'll still pull the last few days in Sept and go back before Sunday.. I found some of where the code probably goes, but not all of it.. This can't be that big a deal, but I'd bet a lot of people would like this as an option.. There's bound to be one of the xcart programming guru's who can do this in 3-5 min.! Thanks! Marty
__________________
Expert47 (Marty) X-cart ver 4.0.17 retired X-Cart ver 4.1.8 Moved to new server! Operating Mucho Better X-AOM (Love it!!) X-cart 4.4.3 finally in test ..! Help! |
|||||||
#2
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
Quote:
Me too!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
carpe,
i guess we're the only ones..! hmm.. know anyone who could do this? Marty
__________________
Expert47 (Marty) X-cart ver 4.0.17 retired X-Cart ver 4.1.8 Moved to new server! Operating Mucho Better X-AOM (Love it!!) X-cart 4.4.3 finally in test ..! Help! |
|||||||
#4
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
I would like this also.
__________________
Xcart 5.1.6 Building New Store Xcart4.6.4 Gold Plus Xcart 4.6.4 Platinum Smart Template, Mail Chimp Upgrade Checkout One (One Page Checkout) Checkout One X-Payments Connector Checkout One Deluxe Tools Call For Price On Sale Module Buy Together Module MAP Price MOD |
|||||||
#5
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
well, now it's 1/1/08 and my idea of having a 7 or 14 day review is more noticable.. now you have to do 12/xx/07 to get back to last years items..
if anyone has a clue what to add to search this way let me know.. as xcart already has options for this month and this week, i can't imagine it's that complicated to add last 7 days and last 14 days.. there are several that have asked for it.. im sure someone that lives inside xcart code can do this..! thanks! marty
__________________
Expert47 (Marty) X-cart ver 4.0.17 retired X-Cart ver 4.1.8 Moved to new server! Operating Mucho Better X-AOM (Love it!!) X-cart 4.4.3 finally in test ..! Help! |
|||||||
#6
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
Here is what you need to modify:
In include/orders.php Section of code just below # # Search by date condition # After this: Code:
Add: Code:
In skin1/main/orders.tpl After this: Code:
Add: Code:
Above was done using xcart 4.1.9 The php is the same on 4.0.13 branch, but the tpl format changed slightly between 4.0.13 and 4.1.9. To apply this to an older version, just copy your existing code and change the form value and label as appropriate. |
|||||||
|
#7
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
GREAT mod! Thanks for posting this. Moving this thread to COMPLETED mods.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#8
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
SWEET...!!
Thanks loads. It's perfect! marty Quote:
__________________
Expert47 (Marty) X-cart ver 4.0.17 retired X-Cart ver 4.1.8 Moved to new server! Operating Mucho Better X-AOM (Love it!!) X-cart 4.4.3 finally in test ..! Help! |
|||||||
#9
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
Sportruk, Not to be picky here, but think you can add code to get to the 7 days in the Quick Menu, under Orders/User Management? im pretty sure it's just adding a variable but i know if i try, i'll screw it up!
thanks.. i've already used the 7 day option twice! marty
__________________
Expert47 (Marty) X-cart ver 4.0.17 retired X-Cart ver 4.1.8 Moved to new server! Operating Mucho Better X-AOM (Love it!!) X-cart 4.4.3 finally in test ..! Help! |
|||||||
#10
|
|||||||
|
|||||||
Re: Adding 7 days to orders management searches
To add the 7 days order search to the Quick Menu you need to change 2 php files.
The array for the quick menu is located in admin/quick_menu.php After: Code:
Add: Code:
You also need to change include/orders.php Change: Code:
To: Code:
To make this work you also need to add the "date condition" code to include/orders.php as described in my other post. |
|||||||
|
|||
X-Cart forums © 2001-2020
|