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,
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...