Here is a quick demo to the actions i took when it came to removing the My Affiliates from the Customers "My Account"
I can only provide info for the "Default" template in Open Cart Version 3.0.2.0 although this may help with other Templates.
1. In the folder that holds your Open Cart, go to: "OpenCart\upload\catalog\view\theme\default\template\account" without the "_" of course.
2. Now look for the file name "account.twig" (it should be at the top of the archive in that folder)
3. Before you proceed with this step please make a back up of the "account.twig" file
4. Open the twig file in Notepad ++ or whatever your code editing program is, now go down to around line 46 and remove the following lines of code:
Code: Select all
<h2>{{ text_my_affiliate }}</h2>
<ul class="list-unstyled">
{% if not tracking %}
<li><a href="{{ affiliate }}">{{ text_affiliate_add }}</a></li>
{% else %}
<li><a href="{{ affiliate }}">{{ text_affiliate_edit }}</a></li>
<li><a href="{{ tracking }}">{{ text_tracking }}</a></li>
{% endif %}
</ul>
6. Log in to the admin panel of your Open Cart install and from the dash board click the "Gear Icon" top right of the dash board and clear the cache for the theme and sass.
7. Log in as a user on your cart and refresh clear the browser cache, now go to my account and the Affiliates Account text and links should be gone.
This is the only method that worked for me and I hope it helps someone else out there too... By the way if anything is hard to follow or a little off let me know and I will try and amend it.
Disclaimer: I take no responsibility If for some reason your Open Cart install becomes unresponsive or broken, you do this at your own risk.
Good Luck!
