cancel
Showing results for 
Search instead for 
Did you mean: 

how to show particular category products to specific customers or customer group

how to show particular category products to specific customers or customer group

Hi 

i want to show a some additional products in catalog with default products for particular customers.like if B2B customer loged in then want to show some additional products from category.

As of now i tried with 2 cases like:

1 . I created attribute and asking customer from register page if he want to be a B2B member or not then with that, when customer login have to show a additional products also in list page working on this 

 

2. created customer group, 

2 REPLIES 2

Re: how to show particular category products to specific customers or customer group

I think I would do this by observing the loading of products on category pages and modifying the product collection call. Rather than loading additional products I would look at it the other way around and modifying it to filter products to those products only "all customers" should see if they aren't in the right customer group and then restrict the product collection. 

 

If you wanted to do this for all collections, this would mean that the same logic was applied to other product lists like upsells/cross sells featured products etc which is probably desirable. 

 

The event you could hook into, 'catalog_product_collection_load_before', is here: https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/Catalog/Model/Resourc...

 

 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: how to show particular category products to specific customers or customer group

To show particular category products to specific customer groups, I would suggest to use Magento 2 restrict products by customer group extension. You can easily manage product visibility by creating specific customer groups.

Checkout the demo here - https://www.fmeextensions.com/restrict-store-access-customer-groups-magento-2.html

We can also customize our extension to create a B2B attribute on user registration page that will fulfill your requirements.

Contact our support team here - https://www.fmeextensions.com/support-center.html