Creating a product and making it available for a spesific cu

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
skogelure
Posts: 2
Joined: Thu Feb 17, 2011 5:53 pm

Creating a product and making it available for a spesific cu

Post by skogelure »

When creating a new product from admin side, I want to choose from a list of customers, which customers can buy and view the product. Said differently: How to assign one product to one customer without any others seeing the product.

The purpose would be for a Photo company to being able to upload a captured photo of a specific family, to an existing customer account.

How can I create this feature?
Tony Barnes
Posts: 744
Joined: Thu Jun 18, 2009 8:59 am

Re: Creating a product and making it available for a spesifi

Post by Tony Barnes »

You can set products as visible just to certain customer groups by having them in specific categories, and setting that category to only be visible to certain customer groups, by editing their rights in customer group settings.

Alternatively, if the items are to go in existing categories, and just not be viewable by certain customer groups, you can hack in a customer group check into the php, and set up a switch (basically an if/else) statement that will prevent certain customers from seeing certain items.

Option 1 is better if possible, as it will not need any maintaining.
Post Reply