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
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
Last edited by i2Paq on Fri Dec 14, 2012 9:47 pm, edited 2 times in total.
Reason: Topic moved
Reason: Topic moved
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 .
The vqmod is attached.
Code: Select all
/index.php?route=account/return/insert
The vqmod is attached.
Just what I needed!
Thanks!
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.
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.
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.
~
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
~
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
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>
<?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>
Who is online
Users browsing this forum: No registered users and 7 guests