Skip to main content

Custom fields that are conditional on user

More
12 years 1 month ago #167819 by rodfarrell
-- 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.

More
12 years 1 month ago #167858 by lousyfool
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.

More
12 years 1 month ago #167821 by Mohamed Thelji
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.

More
12 years 1 month ago #168437 by rodfarrell
Thanks, that works

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

Time to create page: 0.217 seconds
Powered by Kunena Forum