Seperate area for a user group

  • Posts: 44
  • Thank you received: 0
4 years 4 months ago #321304

Hi

We have recently created a portal using Hika Shop & Market Multivendor latest versions. Normal user can login, do registration, shop, pay, etc. Now, we want a separate area or a page using the same portal but specific to a set of customers group(e.g. a large corporate employees) where they can do the registration, login and purchase the products. The purpose is the corporate company wants to know how many of their employees, who purchase what, when and using which coupon. This area should be same but totally separate from the existing portal on the frontend.

How can we build such functionality?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 4 months ago #321311

Hi,

I think you want to use such extension to protect that area :
extensions.joomla.org/extension/access-a...e-access/jlex-block/
That way, the large corporate will be able to provide a password to their users to access that area of the website.
You could then setup the affiliate system of HikaShop, and have the page they access redirect to the shop with the added parameter in the URL for the affiliation code of the corporate main user account.
That way, each order created by someone who accessed that page will be linked to the affiliate. You can even provide them with the frontend interface to get a list of the orders and of the users linked to them.

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

  • Posts: 44
  • Thank you received: 0
4 years 4 months ago #321341

Thanks Nicolas.

But we are not looking for Affiliate system. Our requirement is only the login & Registration page we have created will be used by the corporate employees to access the same portal. The only thing is while registering, we need to know that the person is an employee of that corporate. So, we can validate by using their corporate email ID and employee code. After login they will use the same portal and we need to generate a report that which employee purchased which products, date, amount, coupon used, other details,etc.

Looking forward to your help.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 4 months ago #321346

Hi,

So you don't want to have them enter some code to access that "separate area" ?
You mean you want to let any user choose on the registration form ?
In that case, you can just create some custom fields of the table "user" via the menu Display>Custom fields to have them enter their employee code and maybe a yes / no choice. You can also use the "User group on registration" setting of the HikaShop configuration on that yes/no field so that the customers will be assigned either to the "registered" user group or another user group based on what they select.
Once you have the users separated by user group, you'll be able to get data out on the orders, etc with the mass action system (menu System>Mass actions) and a filter on the user group.

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

  • Posts: 44
  • Thank you received: 0
4 years 4 months ago #321373

You can also use the "User group on registration" setting of the HikaShop configuration on that yes/no field so that the customers will be assigned either to the "registered" user group or another user group based on what they select.


Sorry, how to do this? How customer will be assigned to a particular group if they select e.g. employee code? How we can validate if that employee code is of the company and then only allow it to add to a user group?

Validation at the time of registration either of corporate email ID or employee ID or both is a must. On that basis only we want to assign a particular user group to that user. How can I do this>

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 4 months ago #321410

Hi,

Here is the documentation text for that option:

If set to inherit, HikaShop will use the user group configured in the Joomla user manager settings screen for the user group of newly registered users registering from the HikaShop registration form.
If set to a user group, HikaShop will use that user group instead.
Finally, it's also possible to select a custom address field or a custom user field of the types radio button, simple dropdown, multiple dropdown or checkbox. That way, you can let the customer choose himself his user group among a list of user groups you entered in the values of the custom field.
The custom field values should have the user group id in the "value" column for the system to work properly in such cases.


If you want to manually check the employee code, you can have them added to a temporary user group, and then when you check their id, you can move them to the user group you want the employees to have.
If you want to automatically check the employee code, then you can develop a custom plugin of the group "hikashop" and implement the onBeforeUserCreate trigger ( www.hikashop.com/support/documentation/6...r-documentation.html ) so that you can have your own code contact some API or check some database to validate the employee code automatically.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum