Closed (fixed)
Project:
Commerce Point of Sale (POS)
Version:
7.x-1.0-alpha4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2014 at 19:47 UTC
Updated:
16 Mar 2016 at 21:21 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
jbeuckm commentedComment #2
jbeuckm commentedComment #3
jbeuckm commentedComment #4
icylace commentedjQuery's
data()will try to convert data attribute values into JavaScript values.attr()won't try to do any conversion and is what we need to handle leading-zero SKUs correctly.Comment #5
zeezhao commentedThanks for your patch. It works but appears to have adverse effect on product quantity. When you press product button on POS and change quantity before "Add to Order", quantity on POS always comes up as 1 after pressing "Add to order".
You may need to clear your cache to see that prior to patch this worked fine.
Comment #6
rbayliss commentedYeah, it's unfortunate we can't just use .data() for this, but I don't see any way but to go with .attr(). Need this patch rerolled to have the quantity change handler update the quantity using .attr() too.
Comment #7
mglamanUpdated patch per #6
Comment #8
kfitz commentedPatch addresses and corrects issue; tested on fresh install.
Comment #9
kfitz commentedComment #10
kfitz commentedComment #11
smccabe commentedComment #13
smccabe commented