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, 

Tags (1)
1 REPLY

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!