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

Hide "failed orders" from users

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 06-20-2009, 01:35 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Hide "failed orders" from users

Would this work for provider and affiliates who can view orders.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #3  
Old 06-20-2009, 05:28 AM
 
necroflux necroflux is offline
 

Advanced Member
  
Join Date: Feb 2009
Posts: 47
 

Default Re: Hide "failed orders" from users

I'm not sure since I'm not set up with providers and affiliates, but since this .tpl file is in the customer directory it should only affect customers' view of that info.
__________________
-----------------
X-cart version 4.2.1
Reply With Quote
  #4  
Old 05-07-2012, 08:01 AM
 
timbrrr timbrrr is offline
 

eXpert
  
Join Date: Feb 2006
Posts: 277
 

Default Re: Hide "failed orders" from users

I know this is an old post, but would like to make this work in 4.4.5 and cannot get it going.. Any help would be appreciated.
__________________
X-Cart Gold 4.6.3
Codero dedicated server
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 07:50 PM.

   

 
X-Cart forums © 2001-2020