Post by bonsey » Tue Jan 16, 2018 5:26 am

New user here, cannot find info for ver 3.x to remove the returns page. Do I still need to edit code or is there a different way to get rid of returns?

Thanks

Newbie

Posts

Joined
Tue Jan 16, 2018 5:19 am

Post by Johnathan » Tue Jan 16, 2018 7:41 am

No way to hide the links in the settings, but if you know HTML/CSS, they're pretty easy to hide yourself. You'd want to edit the footer template file and customer account template file, to remove those <a> tags:

/catalog/view/theme/YOURTHEME/template/account/account.twig
/catalog/view/theme/YOURTHEME/template/common/footer.twig

Or, you could buy an extension that does this for you. I'm not aware of a free one for OpenCart 3.0, but there might be one out there. Here's a start:

https://www.opencart.com/index.php?rout ... %20returns

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by bonsey » Fri Jan 19, 2018 10:13 pm

Thanks, I'll give it a try. Same thing to remove the "Affiliates" as well?

Edit: I removed it from both files and it still appears, do I need to refresh anything after modifying those files?

Newbie

Posts

Joined
Tue Jan 16, 2018 5:19 am

Post by Johnathan » Tue Jan 23, 2018 3:35 am

Yes, you'll want to refresh your Twig cache (or turn it off) after that. You do that using the gear icon in the upper-right of the main admin dashboard.

You may also want to refresh your ocMod cache in Extensions > Modifications, since if you have any ocMods that affect those files, the edit won't be active until you refresh.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by bonsey » Tue Jan 23, 2018 4:17 am

Thank you !

Newbie

Posts

Joined
Tue Jan 16, 2018 5:19 am
Who is online

Users browsing this forum: Bing [Bot] and 264 guests