Personal field on products conditioning

  • Posts: 88
  • Thank you received: 0
8 years 5 days ago #255589

-- HikaShop version -- : 2.6.4

Hello,

I have a special case for 2 of our products.
They can only be added to the basket if our Job nr exists.
Once a customer places an order he get a Job ref NR.
He can later on order a complemental product (the 2 I am talking about) to his job.

Couldn't I add a personal field on those two products where the customer has to enter his Job ref NR, and if his NR does not correspond to a list of values, the order is rejected with a message to the customer saying that His reference is not in our database.

How can I maintain the Job nr field valid values ?


EDIT
Could it be possible to control based on an existing order number in Hikashops database ?
END

Thanks in advance for your help and advise,
Best regards,
Stéphane

Last edit: 8 years 5 days ago by steph3838. Reason: Additional question

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

  • Posts: 12953
  • Thank you received: 1778
8 years 4 days ago #255593

Hello Stéphane,

Can you give us more information about what you exactly want to do and about your "Job nr" and "Job ref NR" so that we can understand it ?

Thank you.
Best regards,
Mohamed Thelji.

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

  • Posts: 88
  • Thank you received: 0
8 years 4 days ago #255637

Mohamed Thelji wrote: Hello Stéphane,

Can you give us more information about what you exactly want to do and about your "Job nr" and "Job ref NR" so that we can understand it ?

Thank you.
Best regards,
Mohamed Thelji.


Mohamed,

I will try to explain it :

The 2 products, I am talking about, are conditioned by the fact that the customer who wants them has to be an existing customer in our database.
So my idea is to let him enter(1) his original order Number (the one we have also i the Hikashop database) in the personal field and if his entry matches an available record in the database, he is allowed to order the products.

(1)Maybe select it in a dropdown list

Ideally we should verify that his has in an existing order the products with id 1, 3 or 20 from our database.

This message contains confidential information


I hope that I could be as clear as much possible in my explanation.
Thanks for your help and advise,
Best regards
Stéphane

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 4 days ago #255648

Hi,

Then I have a simpler solution for you.
You can create a mass action (menu System>Mass actions) to add the user to a specific user group after an order is confirmed
www.hikashop.com/support/documentation/167-massaction-form.html

Then it's easy to manage. Either use the "access level" setting of the product to not display the product on your shop for users not in that user group, or use the ACL setting of the price of the product to display the price of that product only to that user group and turn off the "display add to cart button for free products" setting so that others won't be able to purchase the product.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum