Pressing enter in product page automatically changes quantity to -1

  • Posts: 573
  • Thank you received: 4
  • Hikamarket Multivendor Hikaserial Standard Hikashop Business
1 year 2 weeks ago #279564

Hi!
We are developing a plugin with a handy barcode scanner. We remarked that when we use the barcode the quantity fileds goes to "unlimited".
At first I thought it was the hardwares problem. But when I m in any field and I press enter I get unlimited also.
Is this a bug?

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

  • Posts: 11842
  • Thank you received: 1635
  • MODERATOR
1 year 2 weeks ago #279585

Hello,

Your issue is probably coming from the fact that pressing "enter" on a form, will always use the first HTML form button (the "unlimited" button in your case), so the solution will probably be to directly add a hidden button which won't do anything just before the "unlimited" one.

To do that you'll just have to edit the code of the "form" file of the "product" view of your back-end template via "Hikashop->Display->Views".

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

Time to create page: 0.070 seconds
Powered by Kunena Forum