Custom fields that are conditional on user

  • Posts: 256
  • Thank you received: 21
10 years 3 months ago #167819

-- HikaShop version -- : 2.3.0

Hi guys, here is another of my weird requirements.

I have a site that has retail customers and a wholesale customer. The wholesale customer gets orders from the site via an SAP OCI interface (don't panic I have that under control) and require an employee number and cost centre code on each order. That is easily achieved with custom fields of "order" type.

Here is my problem. How can I make these fields compulsory for the wholesale customer (all employees use the same login via the SAP interface so there is only one customer number) but optional or preferably hidden from retail customers?

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

  • Posts: 2143
  • Thank you received: 747
10 years 3 months ago #167858

Hi,

In the configuration of each custom field you'll find "Access level", where you can limit it to certain user groups only after clicking "Custom". That should do the trick for you.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #167821

Hello,

Here is my problem. How can I make these fields compulsory for the wholesale customer (all employees use the same login via the SAP interface so there is only one customer number) but optional or preferably hidden from retail customers?

The solution will be to :
- Add your customer to a wholesale or retail group
- Create 2 same custom fields for each customer, and use the "Access level" and "Required" option of your custom field.

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

  • Posts: 256
  • Thank you received: 21
10 years 3 months ago #168437

Thanks, that works

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

Time to create page: 0.084 seconds
Powered by Kunena Forum