Closed (fixed)
Project:
Commerce Point of Sale (POS)
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2019 at 18:44 UTC
Updated:
23 Oct 2023 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
safallia joseph commentedThe attached patch checks whether quagga lib is present before adding barcode scanning js and thus fixes the issue. Please review
Comment #3
jnrfred commentedPatch tested and works for me. See attached
Comment #4
quietone commentedNice but the text used doesn't meet the Interface Text standards. Specifically,
User interface text is not my area but I'd also like to see this a positive statement what the person has to do. The grammar is taken from MigrationConfigurationTrait in core. "Install the quagga library to use barcode scanning."
When adding a product at /admin/commerce/pos/main I get two instances of the message. Image attached.
Actually, the more I think about this, who is this message for? AFAICT it is for a developer or possibly an admin and yet it is displayed on a page seen by a cashier. It would be nice for the cashier to know if barcode scanning is available or not and maybe an icon can be used to let the cashier now.
I also think that this message should be in the install process somewhere. Or better, can't the library be included in composer to ensure it is available when installing the barcode scanning module?
I see two somewhat different issues to solve here
1) Make barcode scanning dependent on the qugga library.
2) Inform the cashier on the availability of bar code scanning.
Comment #5
smccabe commentedWe should move the messaging to the status section, that is where stuff like missing libraries should go. It doesn't make sense to show this to a cashier, if we can't barcode scan we just shouldn't show any options.
Also I agree with switching it to positive of "Install the quagga library to use barcode scanning." instead of the negative.
Comment #6
jseniuk commentedThe install script already shows a warning on the status page when quagga isn't found, so instead it can just be added as a dependency in the info file.
Comment #7
derekcresswell commentedHello, I've taken the patch from #2 and changed wording based on #4
I've also removed the warnings from displaying on the cashier's order. Added a warning to when installing the module and to the help page to alert you if quagga is installed or not.
Comment #8
skyredwangComment #9
alexpott