Post by ICD_C0d3 » Tue Oct 03, 2017 12:00 am

Hi Everyone

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>
      
5. Now upload the file to your server of the same directory replacing the current "account.twig" file
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! ;)

Newbie

Posts

Joined
Mon Oct 02, 2017 11:31 pm

Post by IP_CAM » Tue Oct 03, 2017 10:10 am

> Notepad ++ or whatever your code editing program is, ...

well, at least as long as one does not use MS Word, or something like it,
because then, any OC Source Code saved will be ruined for good! :laugh:

Just to mention this, Good Luck! ;)
Ernie

I'm rarely active at the OC Forum lately. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in real Action here: http://www.jti.li/shop/
---
1'300+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by ArtGallery » Wed May 22, 2019 7:03 pm

Simple fix that worked for me. Thanks!

I have no interest in dealing with affiliates so this is just what I needed to keep my customers from registering as an affiliate which is wasting their time and mine when they want me to explain how it works for them.

New member

Posts

Joined
Sat Apr 21, 2018 7:54 am
Who is online

Users browsing this forum: No registered users and 11 guests