Page 1 of 1

[Released] Restrict Categories by IP Address

Posted: Fri Jan 29, 2010 8:08 am
by payflow
Just released today: Restrict Categories by IP Address

This allows categories to be restricted by IP address ranges. This is a pretty heavy modification. Be sure to backup all files prior to applying it and read all instructions carefully.


I forgot to mention in the install instructions to run the following command against the database:

Code: Select all

ALTER TABLE [prefix_used_during_install]category ADD COLUMN ip_restrict varchar(255) not null default '';
(Copy and paste into phpMyAdmin or a MySQL command prompt. If someone has a way to do this automagically using OpenCart itself, let me know.)

If you get errors with this mod, then make sure you ran the above MySQL statement.