Disable Opencart Affiliate Module Completely - opencart2.x

I'm Using OpenCart 2.1.0.2 and getting bot affiliate account daily 20 to 25 accounts. so i'm planning to disable completely affiliate module of Opencart , Please, anyone can help me regarding this issue?

I wrote a pull request to opencart that adds an option to disable the functionality: https://github.com/opencart/opencart/pull/7166. Once that's merged (or if you patch your code with it), you can shut affiliate marketing off in your store settings.

Login to CPanel, go to File Manager and go to your Opencart installation folder. Navigate to /catalog/controller/. Inside this folder you will find the folder "affiliate". Rename or delete it. Problem solved!

Steps I followed: Deleted both folders to disable affiliate pages /index.php?route=affiliate/login
/public_html/catalog/view/theme/default/template/affiliate/
/public_html/catalog/view/theme/journal2/template/affiliate/
But still getting 20 to 30 affiliate account registration daily.
Note: I'm using journal theme. – R

Well, first off, in your Settings (of your admin dashboard), make sure they require your approval. This way they don't just get an automatically-enabled affiliate account after they sign up for it (i think this should be an option in your version, but if not, follow the rest of this post anyway.)
Second, just remove the links and the tpl pages altogether to it, so that way they don't click nor sign up for it. For example, using the default template folder (default) navigate to:
template/account/affiliate.tpl - this file can be deleted
template/affiliate - delete the affiliate folder altogether
template/module/affiliate.tpl - this file can be deleted
Please make sure you backup these files anyway just in case anything. You should be done with bots/spammers trying to sign up now as there are no pages they can land on to sign up for affiliate-related things.
There are other things that can be done, too, but given the way you formatted your question and the vagueness in what you attempted thus far, this may be the simplest solution.

From the opencart admin left bar menu go to Extension -> Extensions -> Modules. Check if there's a module named Affiliate (by default it should be right below the Account module). Uninstall it.

Related

Kentico permanent link vs direct path

I'm working on some site that all links (dynamic + hard-coded) to media library are permanent links (with getmedia...), which made it so hard to locate the exact folder of the files and update them. I've asked some developer and heard that permanent links are more secure as the system can check who have access to download the materials. Is it a fair statement and why/why not? Thanks for your input!
This is not a fair or correct statement. Access is set at the individual medial library directory, not an individual file level.
For example, if you have an Images media library which has no security behind it, you can access it directly with a URL of:
/site/media/images/logo.png or /getmedia/<guid>/logo.png
and the image will display without issue.
Now you have another media library called "Secure_Files", if you attempt to access:
/site/media/secure_files/file1.pdf
You'll get an error or a login page because the security is set on the
/site/media/secure_files directory.
Here is the documentation on securing media libraries.
By default, Kentico does not check the See library content permission for visitors on the live site. If you wish to require users to have this permission to view media library content, you need to enable the following settings in the Content -> Media category of the Settings application:
Use permanent URLs
Check file permissions
See the note at the very bottom of this documentation page.
Permanent Link is made up of:
/getmedia/
Guid ID
Image Path
.aspx
Eg: /getmedia/C73B5-6A0-4F6-878-3C29D792014/IMG_3860.jpg.aspx
Direct Path is made up of:
/
Site Name
Media Library Folder Name
Image Path
Eg: /google/media/Blog-images-from-Kentico-Cloud/IMG_360.jpg

Hybris store creation

Hi I have done with initial setup of hybris and now I am seeing apparel store. Now could you please someone answer how should I proceed further to completely customize the apparel store site. I wanted to remove all the products and I wanted to add my own products and categories . Also where should I change the URL from apparelstore to my own customized URL?
You need to create your own accelerator module. There is a trail called "commerce trail" on the hybris wiki/help pages that helps you with the initial setup of a module.
I suggest to follow the help section about how to customize the accelerator (e.g: b2c accelerator customization). Generally speaking, you can use the ant modulegen command to generate the extensions for your very own accelerator.
For your own products/categories, you should provide them on impex files. The current data you're seeing is from the apparelstore extension that adds products, categories, site configuration & cms content for the apparel store. So in case you don't want that, you need to remove the apparelstore extension (or don't run projectdata for it) and then provide your own data. You can check that extension also and see how the data is created, to use it as a guide, but also the ant modulegen should generate some impex file templates that you can use. Look in hybris/bin/ext-data/apparelstore/resources/apparelstore/import.
Finally, for your urls, please check the CMSSite url parameters, this are the urls that 'activate' the site for the given request. Also search for properties like website.{siteid}.http= & website.{siteid}.https= that you also need to update for everything to work fine.

Move Extensions without Annoying Users

Ok,
So about a year ago (I think) google went through a transition where they made Google Apps accounts "real" so we could use them in places like the Chrome Web Store. Unfortunately, prior to that happening I had written some extensions that were under the now conflicting account. So, now what I've got is a two accounts where the old extensions are under this conflicting account and anything past that date is under the new account.
So, it is time to upgrade some of these (old extensions), what I'd like to do is move the extensions under the apps account in a way that doesn't cause problems for the users. Does anyone know a way? It seems like the only option is just to place the extensions under the new account and delete them under the old account, but then I think all of the users would have to know to install the new one.
Thoughts? Has someone gone through this process?
EDIT: As #artur-nowak pointed out in the comments it is now possible to transfer extensions between accounts using this form.
If only your extensions were hosted outside Chrome Web Store (CWS) it would be possible to solve this by modifying update_url in manifest.json (so that extensions will start to download updates from another source). But they are not, and CWS doesn't allow you to modify the update_url param. Because of that, I believe you have two options left:
wait for google to add 'change ownership' function in CWS
or add your extensions to CWS again as a desired user and update the old ones to display a popup/notification "please update" with a link to the new version. Users should be more eager to update if you include some new features to attract them. Also, it will be less annoying from them if config will be preserved. To achieve this, export settings to bookmarks panel (it will be easy to access them) and import them in the new version of extension when it's installed.

Deny Access to directories from unauthorized users

I am not being paid for this and I would like to know the quickest way to do the following. A former client has a page which only members can access. This page links to a number of galleries which he only wants members to access. The galleries are not protected by any kind of authentication.
What I assume is the quickest way to do this is to create a .htaccess file which only allow people to view the site when the come from a certain referrer. Would this work?
My current thinking is that I could use a php script to deploy a .htaccess file into each of the gallery directories. (There are around a 100 at the moment.)
I found this link which might be what I am after but to be honest I really don't get it. Is my thinking sound? Could someone either link me to a tutorial that does this or show me how it is done.
http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec7
As always, a massive thank you for any help.
Jason

Changing page location after google analytics setup

The current website structure is setup such that all the ASPX pages are in the main folder. It's becoming increasingly difficult to maintain, so I would like to create new folders and move the relevant pages. This would change the URL from say:
http://mydomain.com/DoStuff.aspx
to
http://mydomain.com/DoingFolder/DoStuff.aspx
I fear that this will skew up the google analytics results. Is it recommended I do this change? If so, is there a way to link the page locations of after and before the change?
Also, what would happen when I implement the URL rewrite? Would I run into the same issue again? Anyone?
So in general I think it is a good idea to add the folder for both your users to visually see the section they are in via the URL and to help the search engines figure out the areas and who knows you may even get a (small) SEO benefit out of it.
What I would advise is to setup a second profile in Analytics and then add a filter which removes the folder name from the request and will leave you with the same flat structure in your reports as you have currently. (NB Do this under a new profile with the same tracking code to avoid major mess-ups that you can't undo).
Cheers
Z

Resources