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

Color coded order status...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #191  
Old 06-09-2013, 02:57 AM
 
Rob Barclay Rob Barclay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 38
 

Default Re: Color coded order status...

that will actually work, I remember now what I was thinking of that was harder and it was to do with outputting onto the packing sheet if it was the customers first order or not
__________________
Version 4.6.1
Reply With Quote
  #192  
Old 06-09-2013, 07:02 AM
  Vacman's Avatar 
Vacman Vacman is offline
 

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

Default Re: Color coded order status...

Yeah, going to have to see if someone with a 4.5.x can figure out the searching by userid part. I have it implemented but it is returning no results. XC version differences I am sure.

Will post back here when I get it figured out.
__________________
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
  #193  
Old 05-22-2014, 12:24 PM
 
espresso espresso is offline
 

eXpert
  
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 227
 

Default Re: Color coded order status...

Has anyone been able to display total orders for 4.5.x ?

The correct link to display all orders by a registered user is:

Code:
<td style="text-align: center;"><a href="orders.php?userid={$orders[oid].userid}" title="View orders from this client">{$orders[oid].total_orders}</a></td>

But {$orders[oid].total_orders} returns nothing.

Thank you
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x


Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE
Reply With Quote
  #194  
Old 05-22-2014, 01:51 PM
 
Rob Barclay Rob Barclay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 38
 

Default Re: Color coded order status...

see below post (next post)
Attached Thumbnails
Click image for larger version

Name:	orders_list.jpg
Views:	181
Size:	353.6 KB
ID:	3772  
__________________
Version 4.6.1
Reply With Quote
  #195  
Old 05-22-2014, 01:54 PM
 
Rob Barclay Rob Barclay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 38
 

Default Re: Color coded order status...

sorry I have re-read and see probably made it confusing.

Code:
<a href="?userid={$orders[oid].userid}">{$orders[oid].total_orders}</a>

should do the trick for you.
__________________
Version 4.6.1
Reply With Quote
  #196  
Old 05-23-2014, 01:21 PM
 
espresso espresso is offline
 

eXpert
  
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 227
 

Default Re: Color coded order status...

Rob, thanks for the supper fast response.

the variable {$orders[oid].total_orders} is empty. Did you populate this in a php file ? I tried on 453 and 463, it's empty.

I searched all xcart files and could not find any php file that defines this variable.

Thanks for your help.
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x


Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE
Reply With Quote
  #197  
Old 07-10-2014, 10:30 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 131
 

Default Re: Color coded order status...

I'd love to see Rob's code for the shipping setup he has - its fantastic
__________________
X-Cart Gold Plus v4.7.12
ReBOOT ReDUX Theme
Reply With Quote
  #198  
Old 07-10-2014, 12:24 PM
 
Rob Barclay Rob Barclay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 38
 

Default Re: Color coded order status...

Hi, which part are you after the order statistics? or the auto label creation for interlink/DPD ?
__________________
Version 4.6.1
Reply With Quote
  #199  
Old 03-02-2015, 04:43 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

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

Default Re: Color coded order status...

As a followup to this thread, I wanted to have an internal color coding when I look at an order without having to scroll down....

In skin/common_files/main/order_info.tpl right below the file info around line 5

Code:
{if $order.status eq "P"} <table><tr><TD bgcolor="#CCFFFF"><strong><B>PROCESSED</B></strong></TD><tr></table><P>{/if} {if $order.status eq "C"} <table><tr><TD bgcolor="#CCCCCC"><strong><B>COMPLETED</B></strong></TD><tr></table><P> {/if} {if $order.status eq "F"} <table><tr><TD bgcolor="#FFBBCC"><strong><B>FAILED</B></strong></TD><tr></table><P> {/if}

Quick, dirty, but gets the job done.
__________________
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
  #200  
Old 03-02-2015, 05:01 PM
 
Rob Barclay Rob Barclay is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 38
 

Default Re: Color coded order status...

It would be better to create a separate file called say order_colours.tpl and put the contents in that.

I have
Code:
{if $orders[oid].status eq "C"} bgcolor="#00CCFF" {/if} {if $orders[oid].status eq "P"} bgcolor="#00FF66" {/if} {if $orders[oid].status eq "Q"} bgcolor="#dddddd" {/if} {if $orders[oid].status eq "F"} bgcolor="#FF3333" {/if} {if $orders[oid].status eq "I"} bgcolor="#CCCCCC" {/if} {if $orders[oid].status eq "M"} bgcolor="#660066" {/if} {if $orders[oid].status eq "L"} bgcolor="#800080" {/if} {if $orders[oid].status eq "G"} bgcolor="#668d21" {/if} {if $orders[oid].status eq "K"} bgcolor="#ADBF0B" {/if} {if $orders[oid].status eq "H"} bgcolor="#ffffff" {/if} {if $orders[oid].status eq "J"} bgcolor="#000000" {/if} {if $orders[oid].status eq "N"} bgcolor="#6FC2DF" {/if} {if $orders[oid].status eq "T"} bgcolor="#ffff00" {/if} {if $orders[oid].status eq "R"} bgcolor="#CC3232" {/if} {if $orders[oid].status eq "E"} bgcolor="#FFFF00" {/if} {if $orders[oid].status eq "S"} bgcolor="#000077" {/if} {if $orders[oid].status eq "U"} bgcolor="#444400" {/if} {if $orders[oid].status eq "V"} bgcolor="#E32A54" {/if}
called in from orders_list.tpl
Code:
{include file="path/order_colours.tpl"}

Once you start playing with orders view you can actually add some really useful features.

I have many extras such as outputting orders to csv to generate shipping labels, to show if order is first time order, to show how many orders customer has had, to log if the order was taken as a phone order, total VAT value of order, shipping method etc. You can create some very useful modifications.
__________________
Version 4.6.1
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 02:38 PM.

   

 
X-Cart forums © 2001-2020