Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Assign customers/groups to categories


mortal

Recommended Posts

Posted

Hi.

i would like to be able to set up a B2B site with the ability to assign customers or a group of customers to certain categories or to be able to view a different categorybox on the frontend.

 

anyway that it will be possible to give special customers accses to a area that is closed to the public, even if they are logged in.

 

 

Thanhs a bunch in advance

Posted

You need to register a session variable for customers you wish to view these categories, then check categories/products against this - you need to check products/categories in product_info.php specials.php, new_products.php etc. otherwise thay may still view the products.

 

Dunno if there is a contribution specifically for this, but you can look :D

 

Matti

Posted

Hi Johnson. thank you for the reply.

 

unfortunatly my skills only reaches editing copy/pasiting code and so forth,

if i could use a existing function/feature with some changes to it i could probably do it.

 

i have found a single contribution that does almost this(custom_products). the problem with that contribution is that it is specific for products only and its only possible to assign one user to a product.

 

if it could be merged with contribution "customer groups" and be specific to a category instead of a product.

 

 

actually i think that a complete b2b package would contain this feature. unfortunatly none of the b2b contribs can do this.

 

i hope someone can help me with this.

Posted
Hi Johnson. thank you for the reply.

 

unfortunatly my skills only reaches editing copy/pasiting code and so forth,

 

 

 

 

This is what is required - its possibly quite a bit of work :P

 

Look at how these contributions work and apply this to your categories.

 

Matti

Posted

Yeah, you are probably right, i have to do this myself.

 

i would then like to greet anyone trying to do something like this to collaborate with me.

 

i will post further progress here and ask for help here.

 

Cheers mate have a nice weekend.

Posted
i would like to be able to set up a B2B site with the ability to assign customers or a group of customers to certain categories or to be able to view a different categorybox on the frontend.

 

anyway that it will be possible to give special customers accses to a area that is closed to the public, even if they are logged in.

Installing Seperate Pricing Per Customer will give you a B2B site with customer groups. The extra functionality you are looking for has been coded, but on the product level (Hide products from customer groups for SPPC), not on a category level.

 

I'm quite positive you could rewrite Enable & Disable Categories to do something similar as Hide products from customer groups for SPPC. The field category_status could be changed to a category_hide_from_groups and filled with @ plus ",group_to_hide_from1,group_to_hide_from3" to make a list of groups from which this category should be hidden.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...