Post by greendragon2020 » Mon May 25, 2020 6:57 am

Can someone please help, how to I disable or remove the "Product Returns" version. 3.0.3.3


Posts

Joined
Fri May 22, 2020 7:22 am

Post by uksitebuilder » Mon May 25, 2020 6:38 pm

The simplest method would be to remove the link to it from Customer Services column in the footer

catalog/view/theme/default/template/common/footer.twig
find and delete:

Code: Select all

          <li><a href="{{ return }}">{{ text_return }}</a></li>

To be thorough, you can also remove links to the returns from your Customer's Account Section

catalog/view/theme/default/template/account/account.twig
find and delete:

Code: Select all

        <li><a href="{{ return }}">{{ text_return }}</a></li>

catalog/view/theme/default/template/extension/module/account.twig
find and delete:

Code: Select all

 <a href="{{ return }}" class="list-group-item">{{ text_return }}</a>

delete these files:

catalog/view/theme/default/template/account/return_form.twig
catalog/view/theme/default/template/account/return_info.twig
catalog/view/theme/default/template/account/return_list.twig

User avatar
Guru Member

Posts

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

Post by straightlight » Mon May 25, 2020 7:38 pm

While the catalog/controller/account/return.php and catalog/language/<your_language>/account/return.php file should also be removed, I would suggest to read this post: viewtopic.php?f=199&t=210484&p=788438#p788438 so to understand why it might be important not to remove those features on-the-fly.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by greendragon2020 » Tue May 26, 2020 9:15 am

uksitebuilder wrote:
Mon May 25, 2020 6:38 pm
The simplest method would be to remove the link to it from Customer Services column in the footer

catalog/view/theme/default/template/common/footer.twig
find and delete:

Code: Select all

          <li><a href="{{ return }}">{{ text_return }}</a></li>

To be thorough, you can also remove links to the returns from your Customer's Account Section

catalog/view/theme/default/template/account/account.twig
find and delete:

Code: Select all

        <li><a href="{{ return }}">{{ text_return }}</a></li>

catalog/view/theme/default/template/extension/module/account.twig
find and delete:

Code: Select all

 <a href="{{ return }}" class="list-group-item">{{ text_return }}</a>

delete these files:

catalog/view/theme/default/template/account/return_form.twig
catalog/view/theme/default/template/account/return_info.twig
catalog/view/theme/default/template/account/return_list.twig
Thank you very much, it worked.


Posts

Joined
Fri May 22, 2020 7:22 am

Post by bhavikshah92 » Tue Dec 01, 2020 3:39 pm

Hello, Thank you for the solution.

But what if I want to remove/disable the button after somedays of the order delivered?

Say for example Customer Got the delivery on the 1st of December 2020 and according to my return policy customer can return the product within 3-5 days so after it gets delivered for 3-5 days the return button should be visible and after that, it should not.

Newbie

Posts

Joined
Wed Jun 03, 2015 7:39 pm
Who is online

Users browsing this forum: daniil_oc, Google [Bot], pprmkr, WaxedPerfection and 461 guests