Page 1 of 2

Remove Affiliate

Posted: Sat Oct 21, 2017 11:47 pm
by cwxOpenCart
Hello all,

I was wondering how I would remove the Affiliate links and module from version 3.0.2.0? I would think that many people are like me and do not have an affiliate program so it should be something that I could easily remove. However I don't seem to be able to find a easy way to do that so I must be missing something.

Any help or guidance would be appreciated.

Re: Remove Affiliate

Posted: Sat Oct 21, 2017 11:59 pm
by straightlight

Re: Remove Affiliate

Posted: Sun Oct 22, 2017 4:25 am
by straightlight
However, if you are looking to remove the entire affiliate feature out of Opencart, followed are the list of files where all the affiliates throughout Opencart are being handled:

Code: Select all

admin/controller/catalog/information.php
admin/controller/customer/customer.php
admin/controller/customer/customer_approval.php
admin/controller/mail/affiliate.php
admin/controller/marketing/contact.php
admin/controller/report/statistics.php
admin/controller/sale/order.php
admin/controller/setting/setting.php
admin/language/en-gb/en-gb.php
admin/model/customer/customer.php
admin/model/customer/customer_approval.php
admin/model/sale/order.php
catalog/controller/account/account.php
catalog/controller/account/affiliate.php
catalog/controller/account/tracking.php
catalog/controller/affiliate/login.php
catalog/controller/affiliate/register.php
catalog/controller/affiliate/success.php
catalog/controller/api/order.php
catalog/controller/checkout/confirm.php
catalog/controller/common/footer.php
catalog/controller/event/activity.php
catalog/controller/mail/affiliate.php
catalog/model/account/customer.php
catalog/model/checkout/order.php
install/model/upgrade/1001.php
install/model/upgrade/1003.php
install/model/upgrade/1004.php
install/model/upgrade/1009.php
admin/language/en-gb/catalog/information.php
admin/language/en-gb/customer/customer.php
admin/language/en-gb/customer/customer_approval.php
admin/language/en-gb/customer/custom_field.php
admin/language/en-gb/localisation/country.php
admin/language/en-gb/localisation/zone.php
admin/language/en-gb/mail/affiliate_approve.php
admin/language/en-gb/mail/affiliate_deny.php
admin/language/en-gb/mail/transaction.php
admin/language/en-gb/marketing/contact.php
admin/language/en-gb/report/statistics.php
admin/language/en-gb/sale/order.php
admin/language/en-gb/setting/setting.php
admin/model/extension/report/activity.php
catalog/controller/extension/openbay/amazon.php
catalog/controller/extension/openbay/amazonus.php
catalog/controller/extension/payment/amazon_login_pay.php
catalog/controller/extension/payment/klarna_checkout.php
catalog/controller/extension/payment/pilibaba.php
catalog/controller/extension/payment/pp_braintree.php
catalog/controller/extension/payment/pp_express.php
catalog/language/en-gb/account/account.php
catalog/language/en-gb/account/affiliate.php
catalog/language/en-gb/account/tracking.php
catalog/language/en-gb/affiliate/login.php
catalog/language/en-gb/affiliate/register.php
catalog/language/en-gb/affiliate/success.php
catalog/language/en-gb/common/footer.php
catalog/language/en-gb/mail/affiliate.php
catalog/language/en-gb/mail/transaction.php
catalog/model/extension/openbay/ebay_order.php
catalog/model/extension/openbay/etsy_order.php
admin/language/en-gb/extension/dashboard/activity.php
admin/language/en-gb/extension/payment/twocheckout.php
admin/language/en-gb/extension/report/customer_activity.php
Database tables:

Code: Select all

customer_affiliate
event
layout_route
order
setting
user_group

Re: Remove Affiliate

Posted: Sun Oct 22, 2017 6:04 am
by cwxOpenCart
Thank you. I would have thought this would be something like a on/off system option that I missed as I can see where lots of people would not offer an affiliate program. Not sure I want to purchase a Mod just to remove a link and that only removes the link not the entire module. I do thank you for the quick reply and detailed listing of files that are affected.

best regards

Re: Remove Affiliate

Posted: Sun Oct 22, 2017 4:19 pm
by kestas
to remove affiliate link just comment this line in catalog/view/theme/default/template/common/footer.twig

Code: Select all

<li><a href="{{ affiliate }}">{{ text_affiliate }}</a></li>
like this:

Code: Select all

<!--<li><a href="{{ affiliate }}">{{ text_affiliate }}</a></li>-->
After clear all cash, in admin right upper corner click gear and in pop up window click refresh... that's all link should disappear.

Re: Remove Affiliate

Posted: Thu Feb 08, 2018 12:52 pm
by thinks
This needs updating! There IS no 'cog" in OC3. And NO, we do not want to pay $20 for a mod to remove the AFFILIATE files -- :crazy:

Re: Remove Affiliate

Posted: Fri Feb 09, 2018 6:11 am
by straightlight
thinks wrote:
Thu Feb 08, 2018 12:52 pm
This needs updating! There IS no 'cog" in OC3. And NO, we do not want to pay $20 for a mod to remove the AFFILIATE files -- :crazy:
The free solution is entirely posted ... on my previous post above ...

Re: Remove Affiliate

Posted: Wed Feb 14, 2018 2:29 am
by DaCrash
after commenting the Link you can still register over www.yourdomain.com/index.php?route=affiliate/register.
That should definitely be an option to disable.

Re: Remove Affiliate

Posted: Wed Feb 14, 2018 5:48 am
by uksitebuilder
A simple solution is to edit the template file as per the post by kestas a few posts above this one and also delete the controller folder catalog/controller/affiliate

The cog in OC 3.x displays when you are on the Dashboard of your admin - It is top-right and allows you to clear the caches

Re: Remove Affiliate

Posted: Sat Feb 17, 2018 1:18 am
by misterzorik
kestas wrote:
Sun Oct 22, 2017 4:19 pm
to remove affiliate link just comment this line in catalog/view/theme/default/template/common/footer.twig

Code: Select all

<li><a href="{{ affiliate }}">{{ text_affiliate }}</a></li>
like this:

Code: Select all

<!--<li><a href="{{ affiliate }}">{{ text_affiliate }}</a></li>-->
After clear all cash, in admin right upper corner click gear and in pop up window click refresh... that's all link should disappear.
I did this but I am still seeing the affiliate link
using OC version 3.0.0.0

Re: Remove Affiliate

Posted: Sat Feb 17, 2018 6:42 am
by straightlight
Clear your OC cache from your admin - > dashboard - > blue icon - > clear both caches and from your admin - > extensions - > modifications - > refresh button.

Re: Remove Affiliate

Posted: Sat Feb 17, 2018 9:43 pm
by misterzorik
straightlight wrote:
Sat Feb 17, 2018 6:42 am
Clear your OC cache from your admin - > dashboard - > blue icon - > clear both caches and from your admin - > extensions - > modifications - > refresh button.
thanks alot even i dont have a clear cache in admin > dashbord > blue icon.
i always clear it manually from the server in storage folder. do you know how to get that blue button to clear cache from admin instead of going to server?
i also cleard the extension modification cash now it works. probably i forgot to clear the modifications cashe that is why it wasnt working
thanks alot for your help

Re: Remove Affiliate

Posted: Sat Feb 17, 2018 9:59 pm
by straightlight
The blue icon should be there unless the Sass cache has not been enabled. However, if from the modifications page it did worked afterwards, then you followed the instructions above.

Re: Remove Affiliate

Posted: Sun Feb 18, 2018 6:46 pm
by misterzorik
straightlight wrote:
Sat Feb 17, 2018 9:59 pm
The blue icon should be there unless the Sass cache has not been enabled. However, if from the modifications page it did worked afterwards, then you followed the instructions above.
Yes It worked but the blue item is not there.
can you tell me how to get it? as its easier to clear the cash by a button then to go to ftp everytime.
i attached a printscreen from my dashbor so that you see that the blue screen is not there.
Also another quick question.
sometimes my extensions doesnt work. for example i have an extension of showing home button on the menu bar, and also extension to show the information pages on the menu.
but everyday when i open my website, it dosnt show it unless i go and refresh the modification cashe again. do i have to do this everyday without even doing any modifications?
please see the attached pictures

Re: Remove Affiliate

Posted: Sun Feb 18, 2018 10:48 pm
by straightlight
do i have to refresh the modification cashe everyday?
The refresh button should only be used when making modifications to your site. If you need to repeat the action without modifying a content on your website, then it is a cache related issue either from the FTP folder or from the server.

Re: Remove Affiliate

Posted: Tue Mar 13, 2018 8:56 am
by niroc
I agree, it would be great if there were an easy option to disable affiliate links without having to pay for the privilege. "My Affiliate Account" shows up very prominently in "My Account" and I can't believe this is an option the majority of store owners want or need. Perhaps those who want it should pay for it rather than those who don't need it and want to remove it.

Re: Remove Affiliate

Posted: Tue Mar 13, 2018 9:03 pm
by straightlight
niroc wrote:
Tue Mar 13, 2018 8:56 am
I agree, it would be great if there were an easy option to disable affiliate links without having to pay for the privilege. "My Affiliate Account" shows up very prominently in "My Account" and I can't believe this is an option the majority of store owners want or need. Perhaps those who want it should pay for it rather than those who don't need it and want to remove it.
I don't understand why there are so many un-distinctive analysis. On this topic itself, I already provided all the locations where the affiliates subject can be removed entirely for free as it does not require having to pay for any privileges ...

Just use VQMod to track the affiliate lines for your associative OC version. Yes, it may take time but at least you won't have to pay anything by dedicating your own time to it.

Re: Remove Affiliate

Posted: Mon Mar 19, 2018 3:55 am
by niroc
Just use VQMod to track the affiliate lines for your associative OC version. Yes, it may take time but at least you won't have to pay anything by dedicating your own time to it.
Yes, already noted. But this is not an easy option for those who are nervous about editing code. Just out of interest, would it survive a version upgrade?

Re: Remove Affiliate

Posted: Mon Mar 19, 2018 4:22 am
by straightlight
By removing the affiliates from the database manually, there are even few chances to survive an upgrade process without relying on a professional to do it. Which is why, if the database and only the links are modified from the OC files, with VQMod, better chances to simply disable that specific XML file before running the next upgrade.

Re: Remove Affiliate

Posted: Thu May 10, 2018 2:31 am
by thankevans
I'm a bit late to this discussion, but I'd like to know - if I remove the data from only some of the files posted above will it cause any errors?

Regards

Bob