Post by cwxOpenCart » Sat Oct 21, 2017 11:47 pm

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.

Newbie

Posts

Joined
Sat Sep 30, 2017 12:38 am

Post by straightlight » Sat Oct 21, 2017 11:59 pm


The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Sun Oct 22, 2017 4:25 am

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

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by cwxOpenCart » Sun Oct 22, 2017 6:04 am

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

Newbie

Posts

Joined
Sat Sep 30, 2017 12:38 am

Post by kestas » 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.

Custom OpenCart modules and solutions. Just PM me... Extensions you can find here and here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by thinks » 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:

Newbie

Posts

Joined
Sat Jul 07, 2012 9:28 pm

Post by straightlight » Fri Feb 09, 2018 6:11 am

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 ...

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by DaCrash » Wed Feb 14, 2018 2:29 am

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.

Image
DG-Webservices- Webdesign und Programmierung aus Friesland


User avatar
New member

Posts

Joined
Mon Feb 22, 2010 8:02 pm
Location - Germany

Post by uksitebuilder » Wed Feb 14, 2018 5:48 am

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

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by misterzorik » Sat Feb 17, 2018 1:18 am

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

New member

Posts

Joined
Sat Jan 20, 2018 3:47 am

Post by straightlight » 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by misterzorik » Sat Feb 17, 2018 9:43 pm

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

New member

Posts

Joined
Sat Jan 20, 2018 3:47 am

Post by straightlight » 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by misterzorik » Sun Feb 18, 2018 6:46 pm

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

Attachments

no cache button.jpg

No cache button on dashbord - no cache button.jpg (242.71 KiB) Viewed 5051 times

extension 2.jpg

my homepage after...
do i have to refresh the modification cashe everyday?
- extension 2.jpg (229.47 KiB) Viewed 5051 times

extension 1.jpg

my homepage before refreshing modifications - extension 1.jpg (215.23 KiB) Viewed 5051 times


New member

Posts

Joined
Sat Jan 20, 2018 3:47 am

Post by straightlight » Sun Feb 18, 2018 10:48 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by niroc » 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.

Newbie

Posts

Joined
Fri May 30, 2014 3:28 pm

Post by straightlight » Tue Mar 13, 2018 9:03 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by niroc » Mon Mar 19, 2018 3:55 am

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?

Newbie

Posts

Joined
Fri May 30, 2014 3:28 pm

Post by straightlight » Mon Mar 19, 2018 4:22 am

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thankevans » Thu May 10, 2018 2:31 am

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

Newbie

Posts

Joined
Thu Jan 04, 2018 1:06 am
Who is online

Users browsing this forum: hannalord and 11 guests