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)
-   -   Color coded order status... (https://forum.x-cart.com/showthread.php?t=4949)

Thomasb134 03-02-2015 05:16 PM

Re: Color coded order status...
 
Quote:

I have many extras such as ... to show if order is first time order, to show how many orders customer has had ...
Any chance you can share the code for those two new features?

Rob Barclay 03-02-2015 05:41 PM

Re: Color coded order status...
 
sure though it wont be tonight (2:40am uk time) It spans a few files I will need to sit and look through files again and see what the edits and new code involved for each. Will have time later this week to sort though.

Thomasb134 03-02-2015 05:58 PM

Re: Color coded order status...
 
Fantastic!

Vacman 03-03-2015 08:43 AM

Re: Color coded order status...
 
I do have that file as well, I just wanted to get this concept out there.

zone1creative 03-24-2015 02:18 AM

Re: Color coded order status...
 
I have a free module that I put together a few years ago for xcart 4.
This will allow you to set the colour of your order statuses.

Not tested it for a while but should work still for xcart 4

http://z1c.ecwid.com/#!/X-Cart-Mods/c/4943003/offset=0&sort=normal

georgewf 07-25-2015 02:26 PM

Re: Color coded order status...
 
Hey guys, Some great ideas in this thread. Here's some code to add additional customer info like referer in the orders list.

The customer data is not directly available in the orders template.
So in orders.php add a field in this SQL select

// mod: add referer
$orders = func_query("SELECT $sql_tbl[orders].*, $sql_tbl[customers].id AS existing_userid, $sql_tbl[customers].login, $sql_tbl[customers].referer $search_condition ORDER BY $sort_string LIMIT $first_page, $objects_per_page");


In order_list.tpl add in the orders list:
<td> {$orders[oid].referer|replace:'http://':''|replace:'https://':''|truncate:"30":"...":TRUE:FALSE|strip_tags}
</td>

Also add new column header in that table and adjust colspan and widths.

Anyone know how to get the sum of orders placed by a customer like Rob has?

espresso 07-25-2015 03:33 PM

Re: Color coded order status...
 
Yes, this is a much needed featue:

On orders page, please show if a customer has placed multiple orders!


All times are GMT -8. The time now is 04:32 AM.

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