Page 1 of 1
Remove Product Return Links
Posted: Wed Sep 05, 2012 5:22 am
by javabean
First real post, no flaming please.
I've been trying to disable returns completely on my site but it looks like it's not possible without digging into the core coding so I guess the next best thing is just to wipe out all the links that gives leads the customer to the returns page. I found this mod:
http://www.opencart.com/index.php?route ... on_id=5061
It works great for up to 1.5.1.3 but didn't work 100% for my 1.5.4.1 install so here's my modified version of the code in VQmod. It will require VQmod installed. Upload to your /vqmod/xml folder and it will work on the default theme as is. If you're running a custom theme, then you'll need to do some digging around and make sure the code corresponds to the right files on your system.
Functions:
- Removes Returns link from footer
- Removes Returns link from accounts page
- Removes Return button found on order information page and formats the table
----> applies to
http://www.yourstore.com/account/order/info&order_id=xx
Edit: Download link updated to reflect changes by fuertes
Re: Remove Product Return Links
Posted: Tue Sep 11, 2012 11:52 am
by fueres
javabean, I added some code to your vqmod so it can redirect the user to the home page if he uses the direct link to returns
Code: Select all
/index.php?route=account/return/insert
.
The vqmod is attached.
Re: Remove Product Return Links
Posted: Thu Sep 13, 2012 12:10 am
by javabean
Great Fix! Thanks fueres.
Re: Remove Product Return Links
Posted: Tue Nov 06, 2012 2:02 am
by djwizard
Thank you very much!
Re: Remove Product Return Links
Posted: Sat Dec 01, 2012 12:55 pm
by Saudi Bee
Works Great on open cart 1.5.4
Re: Remove Product Return Links
Posted: Thu Dec 13, 2012 8:38 am
by png22
Thanks so much for this. Works great!
Re: Remove Product Return Links
Posted: Fri Dec 14, 2012 9:44 pm
by i2Paq
Just what I needed!
Thanks!
Re: Remove Product Return Links
Posted: Sat Dec 15, 2012 12:34 am
by MrTech
I know the solution is here but I wanted to add my custom mod which has a slightly different take on the returns.
When someone wants to return something, I assume they have a member account. When they click on a return link, it will just auto re-direct them to their account page. Even if they know the direct link to returns page, they won't see it as the auto forward will take over.
Besides, it's always good to study code from different people so you can edu-ma-cate yourself.
Re: Remove Product Return Links
Posted: Thu Jan 03, 2013 2:41 am
by odi2000
what is the file name containing the "Product Return" form? Is it .../return.php? Page redirection sounds a good idea without deleting the associated links. I do not have and use vQmod. I just would like to redirect that file to the account page.
Edit Return Page
Posted: Tue Jan 08, 2013 11:01 am
by seanbrai
How or where do you go to edit the content of the return page? I don't want to remove the link or the page. I just want to edit its content. Such as the dead on arrival radio button.
Re: Remove Product Return Links
Posted: Wed Jan 09, 2013 8:14 am
by baby
in admin: System - Localisation - Returns - Return Reasons
Re: Remove Product Return Links
Posted: Fri Mar 01, 2013 1:17 pm
by d4zort
I found this. To disable "returns". Where do I put it for 1.5.1.3
<?xml version="1.0"?>
-<modification> -<id>
<![CDATA[Remove Returns Link]]>
</id> -<version>
<![CDATA[1.0]]>
</version> -<vqmver>
<![CDATA[2.x]]>
</vqmver> -<author>
<![CDATA[AlexeyChu]]>
</author> -<file name="catalog/view/theme/YOUR_THEME_NAME/template/common/footer.tpl"> -<operation> -<search position="replace">
<![CDATA[<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>]]>
</search> -<add>
<![CDATA[<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->]]>
</add> </operation> </file> -<file name="catalog/view/theme/YOUR_THEME_NAME/template/account/account.tpl"> -<operation> -<search position="replace">
<![CDATA[<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>]]>
</search> -<add>
<![CDATA[<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->]]>
</add> </operation> </file> -<file name="catalog/view/theme/YOUR_THEME_NAME/template/account/order_info.tpl"> -<operation> -<search position="replace">
<![CDATA[<option value="return"><?php echo $text_return; ?></option>]]>
</search> -<add>
<![CDATA[<!-- <option value="return"><?php echo $text_return; ?></option> -->]]>
</add> </operation> </file> -<file name="catalog/view/theme/YOUR_THEME_NAME/template/module/account.tpl"> -<operation> -<search position="replace">
<![CDATA[<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>]]>
</search> -<add>
<![CDATA[<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->]]>
</add> </operation> </file> </modification>
Re: Remove Product Return Links
Posted: Wed Sep 18, 2013 5:44 am
by alvin101
Will this work with v1.5.6?
This option should be added to core...
Re: Remove Product Return Links
Posted: Fri Oct 18, 2013 3:40 pm
by RonnyM82
fueres xml file works sweet as with 1.5.6