X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Enter tracking number on order list page mod (https://forum.x-cart.com/showthread.php?t=20686)

willirl 05-04-2006 06:31 AM

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.

eaglemobiles 05-12-2006 04:37 PM

Excellent, Thanks for sharing. Work well with 4..0.11

taltos1 05-31-2006 01:18 PM

Just got this working sweetly on my site 4.0.18. Thanks so much for this!

upgrade 05-31-2006 05:04 PM

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.

aslater 07-08-2006 07:21 AM

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

robf 07-08-2006 01:33 PM

Just applied this mod to 4.1.2 and it works perfect, thanks! =D>

stevep 09-19-2006 08:11 AM

Re: Enter tracking number on order list page mod
 
Works a treat 4.014 cheers.

MichelleT 01-30-2007 07:00 PM

Re: Enter tracking number on order list page mod
 
Working perfectly with 4.0.19. Thank you!

Shopkeeper09 02-19-2007 12:31 PM

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?

Shopkeeper09 02-19-2007 01:03 PM

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.


All times are GMT -8. The time now is 11:53 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.