View Single Post
  #1  
Old 06-20-2009, 12:22 AM
 
necroflux necroflux is offline
 

Advanced Member
  
Join Date: Feb 2009
Posts: 47
 

Default Hide "failed orders" from users

Personally I don't like the way X-cart creates failed orders every time a payment doesn't successfully go through, and I especially don't think there's any good reason to list these on the customer's order history. So to hide these failed orders, go to skin1/customer/main/orders_list.tpl and after:

Code:
{math equation="x + ordertotal" x=$total ordertotal=$order.total assign="total"} {if $order.status eq "P" or $order.status eq "C"} {math equation="x + ordertotal" x=$total_paid ordertotal=$order.total assign="total_paid"} {/if}

Add:

Code:
{if $order.status neq "F"}

And BEFORE the following:

Code:
{/foreach}

Add:

Code:
{/if}
__________________
-----------------
X-cart version 4.2.1
Reply With Quote