Post by javabean » Wed Sep 05, 2012 5:22 am

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

Attachments

Last edited by i2Paq on Fri Dec 14, 2012 9:47 pm, edited 2 times in total.
Reason: Topic moved

Newbie

Posts

Joined
Wed Aug 29, 2012 2:11 am

Post by fueres » Tue Sep 11, 2012 11:52 am

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.

Attachments


Newbie

Posts

Joined
Tue Sep 11, 2012 11:47 am

Post by javabean » Thu Sep 13, 2012 12:10 am

Great Fix! Thanks fueres.

Newbie

Posts

Joined
Wed Aug 29, 2012 2:11 am

Post by djwizard » Tue Nov 06, 2012 2:02 am

Thank you very much!

Newbie

Posts

Joined
Wed Oct 31, 2012 2:01 am

Post by Saudi Bee » Sat Dec 01, 2012 12:55 pm

Works Great on open cart 1.5.4

New member

Posts

Joined
Sat May 19, 2012 5:09 pm

Post by png22 » Thu Dec 13, 2012 8:38 am

Thanks so much for this. Works great!

User avatar
Newbie

Posts

Joined
Tue Jun 05, 2012 7:19 am

Post by i2Paq » Fri Dec 14, 2012 9:44 pm

Just what I needed!

Thanks!

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by MrTech » Sat Dec 15, 2012 12:34 am

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.

Attachments


~
Install Extensions OR OpenCart Fast Service! PayPal Accepted
I will professionally install and configure any free or purchased theme, module or extension.

Visit http://www.mrtech.ca if you need an OpenCart webmaster
~


User avatar
Active Member

Posts

Joined
Mon Jan 09, 2012 2:39 pm
Location - Canada, Eh!

Post by odi2000 » Thu Jan 03, 2013 2:41 am

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.

Using v1.5.4.1


New member

Posts

Joined
Sat Apr 09, 2011 2:13 pm

Post by seanbrai » Tue Jan 08, 2013 11:01 am

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.

Newbie

Posts

Joined
Tue Jan 08, 2013 10:57 am

Post by baby » Wed Jan 09, 2013 8:14 am

in admin: System - Localisation - Returns - Return Reasons

Newbie

Posts

Joined
Fri Oct 14, 2011 10:31 pm

Post by d4zort » Fri Mar 01, 2013 1:17 pm

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>

New member

Posts

Joined
Fri Jan 13, 2012 4:28 am

Post by alvin101 » Wed Sep 18, 2013 5:44 am

Will this work with v1.5.6?

This option should be added to core...

Alvin


User avatar
New member

Posts

Joined
Thu Sep 12, 2013 9:08 pm

Post by RonnyM82 » Fri Oct 18, 2013 3:40 pm

fueres xml file works sweet as with 1.5.6

Newbie

Posts

Joined
Fri Oct 18, 2013 3:24 pm
Who is online

Users browsing this forum: No registered users and 7 guests