Barcode stock manager field not working properly

  • Posts: 6
  • Thank you received: 0
  • Hikamarket Frontedition Hikashop Business Hikashop Essential Hikashop Style
2 years 1 month ago #348014

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Fitefox 108.0.1

The barcode stockmanager is really a great addition to Hikashop.
But it could work a little better.
Working in the backend : Hikashop | Products | Stock manager the field for 'Enter the barcode of your product here'.
When I enter a value with my barcode reader the contents disappears immediate after and the message 'Enter the barcode of your product here' is displayed again. Most of the time I can find and select it form the history of the field, But that is of course unnecessary work.
Two things should improve:
The scanned value should stay in the field till we have handled the quantity
It does not catch all products this way. I think that up to 25% of the time it is not recognised.
I was very happy to discover that i can use my barcode reader in the Search field in the Products list.
It recognises up to 100% form the barcodes and automagically selects the corresponding product. Fantastic!
Somehow the Search field handles the process much better then the 'Enter the barcode of your product here' field.
I hope the team will spend some extra effort to adjust the working of the field.
I checked in Firefox as well as with Edge.
Thanks in advance

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

  • Posts: 83328
  • Thank you received: 13476
  • MODERATOR
2 years 1 month ago #348015

Hi,

Thank you for your feedback on the barcode stock manager plugin.

I'm not able to reproduce what you're describing.
I suppose your bacode scanner must add a virtual press on the enter key to submit the form where the input is and that's what is creating the odd behavior you're talking about.
Add the code:

document.getElementById('code').addEventListener("keypress", function(event) {
    if (event.key === "Enter") {
		document.getElementById('qty').focus();
		event.preventDefault();
		return false;
    }
});
just before the line:
</script>
at the end of the file plugins/hikashop/stock_manager/views/stock_manager/tmpl/listing.php
That will cancel the auto submit of the form when the barcode scanner fills the input field for the barcode, and it will instead automatically move the focus to the quantity input field.

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

  • Posts: 6
  • Thank you received: 0
  • Hikamarket Frontedition Hikashop Business Hikashop Essential Hikashop Style
2 years 1 month ago #348021

that did the work
thanks for your quck responce

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

  • Posts: 83328
  • Thank you received: 13476
  • MODERATOR
2 years 1 month ago #348022

Hi,

Thanks for your feedback. We've pushed a new version of the plugin with the patch.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum