Post by mmreed » Thu Aug 04, 2011 8:49 pm

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.

Newbie

Posts

Joined
Thu Aug 04, 2011 8:46 pm

Post by fido-x » Thu Aug 04, 2011 9:04 pm

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):

Code: Select all

<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
and delete it.

Image
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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by uksitebuilder » Thu Aug 04, 2011 9:06 pm

There's options in the My Account and Order History too

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by fido-x » Thu Aug 04, 2011 9:17 pm

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:

Code: Select all

<option value="return"><?php echo $text_return; ?></option>
Also, in "catalog/view/theme/default/template/module/account.tpl", delete line 18.

Image
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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Maansy » Fri Aug 05, 2011 1:27 am

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.

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by mmreed » Fri Aug 05, 2011 1:36 am

all this modification shows there is a need for a disabling feature to be built in. Each time one upgrades versions you have to go back and do this again.

Newbie

Posts

Joined
Thu Aug 04, 2011 8:46 pm

Post by sidhi » Wed Aug 31, 2011 12:49 am

I'm using the opencart 1.5.1 it still can not allow my users to make the return product by using this code : index.php?route=account/return/insert

how to make it totaly disable the return products option ?

Thanks.

Newbie

Posts

Joined
Tue Aug 30, 2011 6:21 am

Post by Hagrid » Fri Oct 28, 2011 5:27 am

I want to remove the product return option from the Account pages

I've followed Fido-x's suggestion..
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>
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?

using v1.5.1.3 on local host

Newbie

Posts

Joined
Sun Apr 03, 2011 5:14 am

Post by Kengun » Tue Dec 06, 2011 9:42 pm

Agree with mmreed that all this modification shows there is a need for a disabling feature to be built in.

New member

Posts

Joined
Mon Oct 18, 2010 2:28 am
Location - Norway

Post by metal450 » Tue Dec 27, 2011 11:00 pm

+1 vote for allowing this to be disabled; for sites that deal exclusively with digital products it'd certainly make things a lot easier than having to modify all those files each time a new version is released...

Newbie

Posts

Joined
Mon Nov 01, 2010 2:36 am

Post by ameliaa » Wed Jan 18, 2012 10:41 am

My client doesn't accept returns. Is there any way to disable this returns feature without modifying the above?

New member

Posts

Joined
Fri Jan 29, 2010 6:31 pm

Post by ameliaa » Wed Jan 18, 2012 12:17 pm

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.

Code: Select all

<?php
   header( 'Location: http://yourdomainname.com/returns' ) ;
?>

New member

Posts

Joined
Fri Jan 29, 2010 6:31 pm

Post by IBBoard » Wed Jan 25, 2012 4:24 am

To fix the single option in the menu, find:

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>
and replace with:

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>
You'll then have a single button that just says "Add to cart"

New member

Posts

Joined
Sun Sep 12, 2010 3:30 am

Post by fayaz_info » Mon Apr 16, 2012 10:45 am

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.

Newbie

Posts

Joined
Fri Mar 09, 2012 12:49 am

Post by IBBoard » Tue Apr 17, 2012 2:06 am

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.

New member

Posts

Joined
Sun Sep 12, 2010 3:30 am

Post by cypee » Mon May 14, 2012 10:34 pm

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.
Hi favaz_info,

I not understand this. Dunno which text should i change. thanks

Newbie

Posts

Joined
Mon May 14, 2012 5:24 pm

Post by bluebikerboy2 » Tue May 15, 2012 5:39 am

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

gi joe and action figures www.jasonsjoesandmore.com


New member

Posts

Joined
Sun May 13, 2012 5:18 am
Location - marysville, ca

Post by Kengun » Sun May 27, 2012 5:02 am

Why on earth is it still not possible to turn this return thing off from the admin? Running Version 1.5.3.1 and it's still a pain in the neck to remove it :(

New member

Posts

Joined
Mon Oct 18, 2010 2:28 am
Location - Norway

Post by PaulAlford » Wed Aug 01, 2012 9:36 am

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

New member

Posts

Joined
Mon Jul 23, 2012 9:56 am

Post by BarbieH2 » Sat Aug 04, 2012 3:34 pm

Not only turn it off but also have the option to insert a page that explains that returns are not accepted. And options for when only certain categories can't be returned such as accepting returns of shoes but not underwear.

Newbie

Posts

Joined
Sat Apr 21, 2012 9:24 am
Who is online

Users browsing this forum: No registered users and 53 guests