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"} Add: Code:
{if $order.status neq "F"} And BEFORE the following: Code:
{/foreach} Add: Code:
{/if} |
Re: Hide "failed orders" from users
Would this work for provider and affiliates who can view orders.
|
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.
|
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.
|
All times are GMT -8. The time now is 05:29 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.