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

Enter tracking number on order list page mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 05-04-2006, 06:31 AM
 
willirl willirl is offline
 

eXpert
  
Join Date: Mar 2004
Location: OHIO
Posts: 271
 

Default

To add a label, in the administrator, go to "Languages", choose your language, select "Labels" then down toward the bottom add the label name and text for the label then update.
__________________
Richard

x-cart version 4.0.17
http://roguewavemarine.com
Reply With Quote
  #12  
Old 05-12-2006, 04:37 PM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default

Excellent, Thanks for sharing. Work well with 4..0.11
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
  #13  
Old 05-31-2006, 01:18 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Just got this working sweetly on my site 4.0.18. Thanks so much for this!
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #14  
Old 05-31-2006, 05:04 PM
 
upgrade upgrade is offline
 

Member
  
Join Date: Feb 2005
Posts: 13
 

Default Almost there ***Solved***

I have followed the changes closely and unfortunately it is refusing to update the shipping reference in the order list.

I am not sure as to why it isn't working, becuase I only edited the two files as specified.

Here is my code from the xcart_dir/include/process_orders.php file

Code:
if ($mode == "update") { # # Update orders info (status) # if (is_array($tracking_number)) { foreach($tracking_number as $orderid=>$tracking) { if (is_numeric($orderid)) db_query("update $sql_tbl[orders] set tracking='$tracking' where orderid='$orderid'"); $flag = 1; } } $flag = 0; if (is_array($order_status) && is_array($order_status_old)) { foreach($order_status as $orderid=>$status) { if (is_numeric($orderid) && $status != $order_status_old[$orderid]) func_change_order_status($orderid, $status); $flag = 1; } } if ($flag) $top_message["content"] = func_get_langvar_by_name("msg_adm_orders_upd"); func_header_location("orders.php?mode=search"); } # /if ($mode == "update") elseif ($mode == "delete" || $mode == "delete_all") {

This is the code from the orders_list.tpl file

Code:
<td {include file="main/order_colours.tpl"} nowrap> <input type="text" name="tracking_number[{$orders[oid].orderid}]" value="{$orders[oid].tracking}" {if $usertype eq 'C'}readonly{/if}> </td>

Any help would be greatly appreciated.

Edit: I have solved this problem, it seems my webhost has a seperate files section for the secure and unsecure sections of the website. The system works fine in the unsecure side, I just have to update the files on the secure side and it will work everywhere.
__________________
Regards,

Michael Acs
Upgradeable.com.au
[X-Cart 4.0.12]
Reply With Quote
  #15  
Old 07-08-2006, 07:21 AM
 
aslater aslater is offline
 

Advanced Member
  
Join Date: Jun 2005
Location: UK
Posts: 54
 

Default

I have just installed on our site and have 1 problem, all looks fine from the customer side but the table is out of line in the admin as shown in the screenshots below.

Customer:
http://www.bitzdirect.com/store/customer.jpg

Admin:
http://www.bitzdirect.com/store/admin.jpg

For some reason it will not show the tracking column so all information has moved to the left from other columns with a blank white space under total.

Any ideas.

Thanks
__________________
Version: 4.4.5 Gold
www.bitzdirectcomputers.co.uk
Reply With Quote
  #16  
Old 07-08-2006, 01:33 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

Just applied this mod to 4.1.2 and it works perfect, thanks!
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #17  
Old 09-19-2006, 08:11 AM
  stevep's Avatar 
stevep stevep is offline
 

Advanced Member
  
Join Date: Jul 2005
Location: uk
Posts: 58
 

Smile Re: Enter tracking number on order list page mod

Works a treat 4.014 cheers.
__________________
X-Cart version 4.4.5
PHP 5.2.13
MySQL server 5.0.51a-community-log
MySQL client 5.0.51a
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8
Operation system Linux
Perl 5.008008

http://temptinglysexy.co.uk
Reply With Quote
  #18  
Old 01-30-2007, 07:00 PM
 
MichelleT MichelleT is offline
 

Member
  
Join Date: Jul 2006
Posts: 10
 

Default Re: Enter tracking number on order list page mod

Working perfectly with 4.0.19. Thank you!
__________________
XCart 4.1.10
Reply With Quote
  #19  
Old 02-19-2007, 12:31 PM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Default Re: Enter tracking number on order list page mod

Richard thank you very much for contributing this very useful mod. The one problem I am having with it is that it is also showing in the customer / members area. Do you know what I can do to remove from customer view?
__________________
Moving over to a SaaS solution.
Reply With Quote
  #20  
Old 02-19-2007, 01:03 PM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Default Re: Enter tracking number on order list page mod

Balinor was kind enough to provide the following answer for me:

{if $usertype ne "C"}

display code

{/if}

Display Code = code you want kept from customer view.
__________________
Moving over to a SaaS solution.
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 10:36 AM.

   

 
X-Cart forums © 2001-2020