tijojoel Posted December 28, 2017 Share Posted December 28, 2017 (edited) Hi, I want to make my shop access only for registered users in prestashop 1.6. Anyone please help me to get an idea to implement it? Please don't suggest any paid modules. Edited December 28, 2017 by tijopromantia (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 1, 2018 Share Posted January 1, 2018 Hi, maybe this module by PrestaHeroes is just what you are looking for. https://addons.prestashop.com/en/private-sales-flash-sales/28906-private-shop-authorized-clients-only.html Link to comment Share on other sites More sharing options...
tijojoel Posted January 2, 2018 Author Share Posted January 2, 2018 @El Patron please don't suggest paid modules. I just want to load a login page when the site is accessed Link to comment Share on other sites More sharing options...
selectshop.at Posted January 2, 2018 Share Posted January 2, 2018 1) If you don't want to pay for a module, besides there are several others on paid addons site for VIP shops, than you need to adapt the code. This is a developing request and not a task between lines. You need to have knowledge of Prestashop's core architecture and php, SQL and css. Take a look into controller files and you will be able to construct an override or module for your purposes. Developer docu: http://doc.prestashop.com/display/PS16/Developer+Guide 2) Another simple, but not liable solution is the use of customer groups. How to configure: http://doc.prestashop.com/display/PS16/Managing+Customers Link to comment Share on other sites More sharing options...
tijojoel Posted January 2, 2018 Author Share Posted January 2, 2018 @selectshop.at Thankyou for your reply. Correct me if I am wrong - can I hide the menu, cart, search, products option from non-registered users? Link to comment Share on other sites More sharing options...
tijojoel Posted January 2, 2018 Author Share Posted January 2, 2018 Anyone know how the menu, cart, search, products option can be hided from non-registered users? Link to comment Share on other sites More sharing options...
selectshop.at Posted January 2, 2018 Share Posted January 2, 2018 Products you can hide via caegory and than customer groups. Search: you cannot hide and that it is why I wrote before: not liable solution To use the site as "login first" you cannot do this without module or changes on code via override. if you are programmer should be an easy task (also wrote before). If you're not, than only by paid addon. Link to comment Share on other sites More sharing options...
tijojoel Posted January 2, 2018 Author Share Posted January 2, 2018 I had done override and get the login first work correctly. I think we can hide the cart and search with some css tricks, is it possible? Link to comment Share on other sites More sharing options...
Whiley Posted January 2, 2018 Share Posted January 2, 2018 vor 2 Stunden schrieb tijopromantia: I think we can hide the cart and search with some css tricks, is it possible? You can do that very easy in the backoffice: Go to backoffice-->modules-->position Find the blocksearch module (and later also the blockcart module) in the DisplayTop section, click on edit Then you can name the pages (in this case "index")where the module should not be displayed in the "exceptions option" regards Whiley Link to comment Share on other sites More sharing options...
selectshop.at Posted January 2, 2018 Share Posted January 2, 2018 Make sure that "search" is not available on your site for non-registered users. By search you will find each product, also the one restricted to a group. Furthermore you should make sure that nobody will access your page by a link on serps. This will also disable all your efforts to "hide" your shop for non-registered users. Link to comment Share on other sites More sharing options...
tijojoel Posted January 3, 2018 Author Share Posted January 3, 2018 @Whiley I followed your steps and it is not working for me. 1. I had added index to cart and quick search. 2. For both it is still showing 3. Did I miss any steps? Link to comment Share on other sites More sharing options...
Whiley Posted January 3, 2018 Share Posted January 3, 2018 And you have done this in the right section? In a default installation it's in displayTop You have saved your changes? You have deleted all cashes (smarty, extended, browser)? I've several "private" customer-shops (PS 1.6.06 - 1.6.1.17) with this modification , for example this: http://www.peggbr.de/ and I've tried this modification just now, in our demoshop, you can see the result here: http://quintilius-varus.de/ regards Whiley Link to comment Share on other sites More sharing options...
tijojoel Posted January 4, 2018 Author Share Posted January 4, 2018 (edited) @Whiley Thank you for the prompt reply. The problem now I am facing is:- The url I want to hide search and cart is http://127.0.0.1/baps1/index.php?controller=authentication?back=my-account, and it is not working in this page. When I load http://127.0.0.1/baps1/index.php it works but I want it in this url only - http://127.0.0.1/baps1/index.php?controller=authentication?back=my-account, because when registered users goes to index.php they have to see the search and cart. Edited January 4, 2018 by tijopromantia (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted January 4, 2018 Share Posted January 4, 2018 In backoffice just go to group configuration page there you can simply turn off cart, search or any other modules for each group. Link to comment Share on other sites More sharing options...
c64girl Posted August 2 Share Posted August 2 If You want login and password for not logged users change: classes/controller/FrontController.php under if (self::$initialized) { return; } self::$initialized = true; parent::init(); add if (!$this->context->customer->isLogged() && $this->php_self != 'authentication') { Tools::redirect('index.php?controller=authentication'); } it will show only header and footer. 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