TomekZ Posted April 11, 2019 Share Posted April 11, 2019 (edited) Hi I made small changes in PS 1.7 files (I was working on 1.7.5.1) adding function that allows admin to define which group of users has acces to specific CMS page. It's NOT a module, just small changes. So, if you upgrade your shop you must provide changes in files again and check if function works properly. Please note, that I'm not a php programmer, so functions can be not fully optimized. If you are, you can share here with improvements. How to implement. 1.extract files from zip file (files are in directory structure as should be on the server) 2. Copy CMSGroup.php as is - this is new file. 3. In rest of files there are two possibilities: - simple: just overwrite rest of files BUT! remember about PS version and copy to proper directories. - custom: open each file find mark /* added */ and copy this one line or several lines from /* added start */ to /*added stop */ 4. Create table in database CREATE TABLE `ps_cms_group` ( `id_cms` int(10) UNSIGNED NOT NULL, `id_group` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `ps_cms_group` ADD KEY `id_cms` (`id_cms`) USING BTREE; Simple but functional. Maybe PS Team add such function to official release? Would be nice...:) Please note, that you are making all changes for your onwn risk. I do not take any responsibility! No support to other versions. TomekZ. cms_group_access.zip Edited April 12, 2019 by TomekZ just text edit (see edit history) Link to comment Share on other sites More sharing options...
ai.martingi Posted February 22, 2021 Share Posted February 22, 2021 Hi thanks TomekZ In prestashop 1.7.7.1 doesnt work. I create the table, an put your files in order making a backup of original, but doesnt work. Your intention is so so so good, this functionally is necesary in prestashop original without modules. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now