hsmonline Posted June 21, 2013 Share Posted June 21, 2013 I need to hide products based on customer groups. I need ALL products (hidden and visible) to be in the same category. I KNOW I can create a separate category to put all products in that I want to hide, but this is not what I want.I need hidden products together with the visible products and when a certain group member logs in they can see the hidden products along with everything else, so it's seamless.There's a module for opencart that does exactly what I need, so am wondering if there is anything else out there that is similar to this for prestashop: http://www.opencart.com/index.php?route=extension/extension/info&extension_id=5130 Even a workaround would be fine (as long as it doesn't involve double products).Thanks for any suggestions. solution: module for prestashop: https://www.prestashop.com/forums/topic/385000-module-groups-access-to-products/ module for prestashop: https://www.prestashop.com/forums/topic/385000-module-groups-access-to-products/ Link to comment Share on other sites More sharing options...
Carlsen Posted June 22, 2013 Share Posted June 22, 2013 Hi hsmonline, Do you wish to distinguish between "Guests" and "Customers", or is it other types of groups? Is it more than two groups? Link to comment Share on other sites More sharing options...
hsmonline Posted June 25, 2013 Author Share Posted June 25, 2013 Hi, I need to distinguish between guests and several custom customer groups. Guests should not be able to see everything, and all other custom customer groups should be able to see everything. Link to comment Share on other sites More sharing options...
FelipeGallo Posted July 4, 2013 Share Posted July 4, 2013 (edited) Have the same problem.. works fine with the categories, but the products can be acessed by everyone.. I think if I add this code of CategoryController in the ProductController will work: if (!$this->category->checkAccess($this->context->customer->id)) { header('HTTP/1.1 403 Forbidden'); header('Status: 403 Forbidden'); $this->errors[] = Tools::displayError('You do not have access to this category.'); $this->customer_access = false; } But which line i put this? Edited July 4, 2013 by FelipeGallo (see edit history) Link to comment Share on other sites More sharing options...
kelvz Posted August 28, 2013 Share Posted August 28, 2013 Hi! Same here... i want to restrict specific group to access specific product.. I think this code is the solution but i dont know how it works or what is this for... ProductController.php Line 118-119 elseif (!$this->product->checkAccess((int)self::$cookie->id_customer)) $this->errors[] = Tools::displayError('You do not have access to this product.'); my prestashop version is 1.4.8 Link to comment Share on other sites More sharing options...
kelvz Posted August 28, 2013 Share Posted August 28, 2013 after working on this... I notice that my product was set to two categories Home and Category1 then when i remove this product to Home category and set Category1 to specific group all products found in Category1 was restricted to access even if you are not login or login as default user... this is good! But the problem is i want to include this product to other categories without restriction Link to comment Share on other sites More sharing options...
adri986 Posted August 29, 2013 Share Posted August 29, 2013 Hi colls, maybe you can help me, i have diferent categories and i need that when one person log on asa diferent group he can see extra categories, i don`t find where i should d this, can you help me? Link to comment Share on other sites More sharing options...
hsmonline Posted August 30, 2013 Author Share Posted August 30, 2013 Hi Kelvz, any more progress or success on hiding the individual products? Link to comment Share on other sites More sharing options...
JohnADK Posted October 16, 2013 Share Posted October 16, 2013 I too am interested to know how to achieve this. Does it require major modification? Is there a module that can be added to do this? Anyone have a solution? Link to comment Share on other sites More sharing options...
hsmonline Posted January 9, 2014 Author Share Posted January 9, 2014 Has there been any progress on this problem yet? The hiding of individual products that is. Thanks. Link to comment Share on other sites More sharing options...
Pronux Posted April 29, 2014 Share Posted April 29, 2014 Any update on this issue? Link to comment Share on other sites More sharing options...
JohnADK Posted April 29, 2014 Share Posted April 29, 2014 I have found that I can address many of my needs by activating and using PS multi-store functionality. Users in one store do not see the products in another store, but in the back office I can control all products from one place. A product can appear in all stores, or in one store, or in those stores I assign it to. If the user groups you have are different enough, this is a great way to solve the dividing up issues. There are other challenges in working iwith multi-store, like quantity management and sharing category issues, that take a while to figure out. But so far, I'm quite pleased with the multi-store functionality. 1 Link to comment Share on other sites More sharing options...
TomPuja Posted July 19, 2014 Share Posted July 19, 2014 Hello all! Has anyone found a way how to achieve that? Thank you in advance! Link to comment Share on other sites More sharing options...
obewanz Posted January 7, 2015 Share Posted January 7, 2015 This functionality exists in most other carts. I am now also in need to restrict certain products from being visible until you login with an account. I have a particular brand that cannot be displayed to the general public, but it is ok to sell to "customers"... but they need to be in the same category as their non-restricted companion products for shipping/discount purposes... Has this been addressed?? Link to comment Share on other sites More sharing options...
nomealternativo Posted September 8, 2015 Share Posted September 8, 2015 Hello, I would need to display different specific products for different user groups, is there any news in your test? Link to comment Share on other sites More sharing options...
Rosie Posy Posted May 1, 2017 Share Posted May 1, 2017 Hi guys How do I restrict one product for sale in France while allowing the same product to be sold in other countries. Other products in the same catagory can also be sold in France, I hope my question is clear. Thanks for any advice, I am stuck at the moment. Kind regards Len Link to comment Share on other sites More sharing options...
Steve Joms Posted May 26, 2017 Share Posted May 26, 2017 after working on this... I notice that my product was set to two categories Home and Category1 then when i remove this product to Home category and set Category1 to specific group all products found in Category1 was restricted to access even if you are not login or login as default user... this is good! But the problem is i want to include this product to other categories without restriction Hi Kelvs, What did you do in your solution? I'm trying to figure out how to do it in ProductController. 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