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:
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.