I did a search and saw an older thread mentioning returns cannot be disabled without modifying the code manually.
Does anyone know if there is an extension for this? I sell digital downloads and need to remove it, but am not comfortable editing the code.
Does anyone know if there is an extension for this? I sell digital downloads and need to remove it, but am not comfortable editing the code.
Since the only link to the returns page is in the footer, the easiest way is to edit the template file. In "catalog/view/theme/default/template/common/footer.tpl" find (line 14):
and delete it.
Code: Select all
<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Uhh, yeah. Missed those.
In "catalog/view/theme/default/template/account/account.tpl" delete line 27.
And in "catalog/view/theme/default/template/account/order_info.tpl" at line 97, remove:
Also, in "catalog/view/theme/default/template/module/account.tpl", delete line 18.
In "catalog/view/theme/default/template/account/account.tpl" delete line 27.
And in "catalog/view/theme/default/template/account/order_info.tpl" at line 97, remove:
Code: Select all
<option value="return"><?php echo $text_return; ?></option>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Removing these links is not enough. It will still go to the return page if the actual link is typed.
Along with the steps mention above, you need to remove the files completely delete return.php from the controller and the return.tpl from the template folder.
Only then you will stop the return approach from your store.
Along with the steps mention above, you need to remove the files completely delete return.php from the controller and the return.tpl from the template folder.
Only then you will stop the return approach from your store.
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
I want to remove the product return option from the Account pages
I've followed Fido-x's suggestion..
using v1.5.1.3 on local host
I've followed Fido-x's suggestion..
That works fine, but now the only option remaining in the drop down menu on the account/order/info page is "add to cart" (for customers who want to reorder something they've ordered previously). As there's only one option it would make more sense to have this as a button rather than a drop down. How would I do this?In "catalog/view/theme/default/template/account/account.tpl" delete line 27.
And in "catalog/view/theme/default/template/account/order_info.tpl" at line 97, remove:
Code: Select all
<option value="return"><?php echo $text_return; ?></option>
using v1.5.1.3 on local host
For others who are trying to accomplish the same thing as me. This is what I did.
I create a returns page under the information pages and put a "-1" to the sort order so it is not displayed from the frontend. The SEO keyword for the returns page is returns.
Then, I edit catalog/controller/account/return.php file so it redirects to the returns page above.
I create a returns page under the information pages and put a "-1" to the sort order so it is not displayed from the frontend. The SEO keyword for the returns page is returns.
Then, I edit catalog/controller/account/return.php file so it redirects to the returns page above.
Code: Select all
<?php
header( 'Location: http://yourdomainname.com/returns' ) ;
?>
To fix the single option in the menu, find:
and replace with:
You'll then have a single button that just says "Add to cart"
Code: Select all
<div class="right"><?php echo $text_action; ?>
<select name="action" onchange="$('#order').submit();">
<option value="" selected="selected"><?php echo $text_selected; ?></option>
<option value="reorder"><?php echo $text_reorder; ?></option>
<option value="return"><?php echo $text_return; ?></option>
</select>
</div>
Code: Select all
<div class="right">
<input type="hidden" name="action" value="reorder" />
<a onclick="$('#order').submit();" class="button"><span><?php echo $text_reorder; ?></span></a>
</div>
Please follow the below step if you are using v1.5.2.1, to hide out return completely.
catalog/view/theme/default/template/common/footer.tpl" find (line 14):
<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->
catalog/view/theme/default/template/account/account.tpl" comment out line 30.
<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->
catalog/view/theme/default/template/account/order_info.tpl
Comment out tds -> line 58, 74, 85, 97 (comment example <!-- <td> ..... </td> -->)
catalog\view\theme\default\template\module\account.tpl
Comment out td line 17 - > <!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->
Let me know if you need more help.
catalog/view/theme/default/template/common/footer.tpl" find (line 14):
<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->
catalog/view/theme/default/template/account/account.tpl" comment out line 30.
<!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->
catalog/view/theme/default/template/account/order_info.tpl
Comment out tds -> line 58, 74, 85, 97 (comment example <!-- <td> ..... </td> -->)
catalog\view\theme\default\template\module\account.tpl
Comment out td line 17 - > <!-- <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li> -->
Let me know if you need more help.
Rather than commenting them out, I'd suggest deleting them (and keeping a copy before hand, in case you decide to re-enable it for any reason). By commenting it out, the code will still be generated and sent to the customer/visitor, but their browser will not show it. By deleting it completely then the customer will never see it at all and the page will be smaller as a result.
Also, make sure you've disabled it by doing some of the other steps from earlier messages, or else someone who knows the URL will be able to go to it directly because the functionality will still be there.
Also, make sure you've disabled it by doing some of the other steps from earlier messages, or else someone who knows the URL will be able to go to it directly because the functionality will still be there.
Hi favaz_info,fayaz_info wrote:Please follow the below step if you are using v1.5.2.1, to hide out return completely.
catalog/view/theme/default/template/account/order_info.tpl
Comment out tds -> line 58, 74, 85, 97 (comment example <!-- <td> ..... </td> -->)
Let me know if you need more help.
I not understand this. Dunno which text should i change. thanks
this thread may be what i am looking for as well. I deal with physical items (toys). custoemr buys it and checks out. item has a 0 quantity but still shows in the store. will doing any of the above code edits fix it so once its sold it wont show in the store?
thanks
thanks
gi joe and action figures www.jasonsjoesandmore.com
I am a newbie to OCart and totally agree !!! There needs to be a button somewhere to turn Returns On and Off. I assume this has been added to the Feature Request section.
Paul
Paul
Who is online
Users browsing this forum: No registered users and 146 guests