Different user group per vendor

  • Posts: 40
  • Thank you received: 0
10 years 9 months ago #141213

Good day,

I would like to create different user/client groups that can only view products of a particular vendor.
Vendor 1 (apples wholesaler)
Vendor 2 (oranges wholesaler)

Each client goup should be categorised on registration by unique custom fields
Client Group 1 (restriceted to purchase Vendor 1 products-apples) -
Client Group 2 (restriceted to purchase Vendor 2 products-oranges)
Client Group 3 (can by from all/both vendors)

Client Group 1 - uses ID no - directed to Vendor 1 after registration
Client Group 2 - uses Passport no.- directed to Vendor 2 after registration
Client Group 3 - uses Company reg no. - directed to cart with both vendors products

Any assistance shall be greatly appreciated.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141216

Hi,

There is no such restriction for the vendors but the restriction exists for the products.
You can create two "product template" in HikaMarket and set the "Access Level" for these templates.

The idea is to set the Access Level to all products of the two vendors.
By using the product template, you will be sure that all new products will follow the original configuration (you do not let your vendors change this field, by removing the "product / edit / access" ACL in HikaMarket).
Using the mass action, you can modify all existing products of the two vendors in order to set the acl.

At this moment, the restrictions will be automatically applied to the products and the final result will be exactly the same.
I note your request in the HikaMarket TODO list and I will see if it is possible to implement such feature but it is already possible to do it using the procedure just above.

If you want more details, do not hesitate to ask.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 0
10 years 9 months ago #141220

Thank you Jerome.

I am going to attempt your suggestion. but before I do that
1. Is it possible to devide my clients into three groups so that depending on which group they are assigned to they will only see relevant menus, and products.
2. Can I get a client to fill in a custom hikashop/market user registration form instead of the standard joomla?

Look forward to your response

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141283

Hi,

Yes you can use the HikaShop user registration instead of the Joomla one.
There is a system plugin which redirect the users to the HikaShop registration form ( hikashop registration redirect ).

About the custom fields and the user group. There is no implemented feature for that but you can use a custom plugin in order to write your own rules.
Using the trigger "onAfterUserCreate" and some code of the plugin "HikaShop group after purchase" you can catch the user creation, read the custom field and assign a special user group to the just created user.
I don't see how we can propose an interface for the configuration of such specific feature to make it as generic as possible ; that's why for the moment the best solution is to have a little plugin for your rules.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.060 seconds
Powered by Kunena Forum