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

RMA - Customer request return only when order confirmed

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 03-30-2005, 07:59 AM
 
Bella Forma Bella Forma is offline
 

Senior Member
  
Join Date: Nov 2004
Location: Australia
Posts: 150
 

Default RMA - Customer request return only when order confirmed

I can't understand the logic of why you would allow a customer to create a returns request before the order has completed, maybe I am missing something?

Anyway I have changed my code to only display the returns request box for orders with a status of 'Complete' and thought I would post it here in case anyone else would like it.

You need to change the skin1/main/history_order.tpl file remember to BACK UP your file first!!

Find this code about a quarter of the way down:

Code:
{if $active_modules.RMA ne '' && ($usertype eq 'C' || $usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode)) && $return_products ne ''} {include file="buttons/button.tpl" button_title=$lng.lbl_returns href="#returns"} {/if}

And change it to this:

Code:
{if $active_modules.RMA ne '' && ($usertype eq 'C' || $usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode)) && $return_products ne ''} {* Only show return request to customer if order is completed *} {if $usertype eq 'A' || $usertype eq 'P' || ($usertype eq 'C' && $order.status eq "C")} {include file="buttons/button.tpl" button_title=$lng.lbl_returns href="#returns"} {/if} {/if}

Then find this code right down the bottom:

Code:
{if $active_modules.RMA ne '' && ($usertype eq 'C' || $usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode))} <A name="returns"></A> {include file="modules/RMA/add_returns.tpl"} {/if}

And change it to this:

Code:
{if $active_modules.RMA ne '' && ($usertype eq 'C' || $usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode))} {* Only show return request to customer if order is completed *} {if $usertype eq 'A' || $usertype eq 'P' || ($usertype eq 'C' && $order.status eq "C")} <A name="returns"></A> {include file="modules/RMA/add_returns.tpl"} {/if} {/if}
__________________
X-Cart Gold 4.0.12
X-AOM, X-RMA, X-FancyCat
Apache/Linux Server
PHP 4.3.8
Reply With Quote
  #2  
Old 03-27-2006, 04:03 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Moving to custom mods
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 12:13 AM.

   

 
X-Cart forums © 2001-2020