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:
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:
catalog/view/theme/default/template/extension/module/account.twig
find and delete:
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
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
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
Thank you very much, it worked.uksitebuilder wrote: ↑Mon May 25, 2020 6:38 pmThe 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
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.
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.
Who is online
Users browsing this forum: daniil_oc, Google [Bot], pprmkr, WaxedPerfection and 461 guests