Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

New Orders First in Admin->Orders

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-21-2005, 02:31 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default New Orders First in Admin->Orders

Simple mod that will make the latest orders appear at the top of the orders list within the admin. Currently in 4.0.x orders are listed in Descending order based off the orderid, listing the oldest orders first instead of showing the latest orders at the top of the list:

edit include/orders.php and find:
Code:
$direction = ($data["sort_direction"] ? "DESC" : "ASC");

and change to:
Code:
$direction = ($data["sort_direction"] ? "ASC" : "DESC");
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #2  
Old 12-22-2005, 12:37 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

A good wishlist item for 4.1
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-22-2005, 12:55 PM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Thanks. A very simple but a good mod. Really annoying if you have many orders and you have to go everytime to the last page for editing your new orders.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #4  
Old 12-23-2005, 08:15 AM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Nice

Nice - We handle about 10 orders a day, but I only check it about once a day.... I like this...
__________________
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
Reply With Quote
  #5  
Old 12-25-2005, 04:48 PM
 
Amy Amy is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 147
 

Default

again - another thanks!
__________________
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
Reply With Quote
  #6  
Old 12-28-2005, 01:49 PM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default

This mod worked great for 4.17, but found that i had to scroll down the page for the update button. So i also copied the update button to the top as well.

I edited shopcart/skin1/main/orders_list.tpl
and where i had:
Code:
{include file="change_all_checkboxes.tpl"} <DIV style="line-height:170%">{$lng.lbl_check_all} / {$lng.lbl_uncheck_all}</DIV>

I inserted:
Code:
{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)} <input type="button" value="{$lng.lbl_update_status}" onClick="document.processorderform.mode.value='update';document.processorderform.submit();"> {/if}

So it looked like:
Code:
{include file="change_all_checkboxes.tpl"} <DIV style="line-height:170%">{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)} <input type="button" value="{$lng.lbl_update_status}" onClick="document.processorderform.mode.value='update';document.processorderform.submit();"> {/if} {$lng.lbl_check_all} / {$lng.lbl_uncheck_all}</DIV>
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:27 AM.

   

 
X-Cart forums © 2001-2020