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)
-   -   Hide "failed orders" from users (https://forum.x-cart.com/showthread.php?t=48189)

necroflux 06-20-2009 12:22 AM

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}

RichieRich 06-20-2009 01:35 AM

Re: Hide "failed orders" from users
 
Would this work for provider and affiliates who can view orders.

necroflux 06-20-2009 05:28 AM

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.

timbrrr 05-07-2012 08:01 AM

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.