| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Quick Link to past 30 days orders | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Quick Link to past 30 days orders
So we switched to 4.1.11 of X-cart back in early December. It was such a PITA to look at the past 30 days orders. So I made a quick link to the past 30 days orders. This should work for later versions of 4.1.x We have it working in 4.1.11
Here's what you do. 1. BACKUP ANY FILES YOU CHANGE..... 2. Make a copy of your admin/orders.php file, rename this copy to orders30.php 3. Open up orders30.php and find the line: Code:
AFTER that line insert: Code:
4. Open up include/orders.php and find this code: Code:
AFTER it insert: Code:
5. Add a link into your skin1/admin/menu.tpl below the line for orders. Example way you can do it. Find: Code:
Code:
That should do it! Variation - Only last 30 days of processed orders. (NOTE if you want to do both the above and this one, ONLY do steps 1-3 and step 5. So do not repeat step 4 again) 1. BACKUP ANY FILES YOU CHANGE..... 2. Make a copy of your admin/orders.php file, rename this copy to orders30p.php 3. Open up orders30p.php and find the line: Code:
AFTER that line insert: Code:
4. Open up include/orders.php and find this code: Code:
AFTER it insert: Code:
5. Add a link into your skin1/admin/menu.tpl below the line for orders. Example way you can do it. Find: Code:
Code:
Hope that helps some out there. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#2
|
|||||||
|
|||||||
Re: Quick Link to past 30 days orders
Nice, Just implemented this without any issues.
Thanks Carrie
__________________
Insert into Round_Hole where object=\"Square_Peg\" order by Brute_Force |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
Is there an update on this for newer versions? 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 |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
Quote:
Which version would you like? I might be inclined to program again and see if I can get it to work. I don't do much programming anymore since I am managing the business. Thanks, Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
The latest version would make the most sense to me. I don't know about the 4.3 or 4.4 versions, but we have it working on 4.2.3 as it is now.... I just haven't had the time to check it out 4.4.2 other than to find that it loads "All" orders, not just the last 30 days.
__________________
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 |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
Here you go for 4.4.2!!!
Here's what you do. 1. BACKUP ANY FILES YOU CHANGE..... 2. Make a copy of your admin/orders.php file, rename this copy to orders30.php 3. Open up orders30.php and find the line: Code:
AFTER that line insert: Code:
4. Open up include/orders.php and find this code: Code:
AFTER it insert: Code:
5. Add a link into your skin/common_files/single/menu_box.tpl below the line for orders. Example way you can do it. Find: Code:
Code:
That should do it! Variation - Only last 30 days of processed orders. (NOTE if you want to do both the above and this one, ONLY do steps 1-3 and step 5. So do not repeat step 4 again) 1. BACKUP ANY FILES YOU CHANGE..... 2. Make a copy of your admin/orders.php file, rename this copy to orders30p.php 3. Open up orders30p.php and find the line: Code:
AFTER that line insert: Code:
4. Open up include/orders.php and find this code: Code:
AFTER it insert: Code:
5. Add a link into your skin/common_files/single/menu_box.tpl below the line for orders. Example way you can do it. Find: Code:
Code:
Hope that helps some out there. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
|
#7
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
How about a Yesterday's Orders version? I played around with the line:
$start_date = $end_date - (30 * 24 * 60 * 60); by changing it to 1 instead of 30, but it doesn't play nice...
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
Hi Carl,
Digging up a REALLY old thread huh? Change the 1 to a 2 and it should work. thanks Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: Quick Link to past 30 days orders
Yeah, that "kind of" works. As long as you are not within 3 or 4 hours of the end or beginning of the day.
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|