Pressing enter in product page automatically changes quantity to -1

  • Posts: 1025
  • Thank you received: 11
  • Hikashop Business
6 years 5 months 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: 12953
  • Thank you received: 1778
6 years 5 months 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.064 seconds
Powered by Kunena Forum