question

Al Connelly avatar image
Al Connelly asked Al Connelly answered

Clover Mini - How do I update a Display Line Item's quantity?

It seems like updating a quantity is not supported and if I try to remove the line item and add it back with a new quantity weird things start to happen and the USB Pay Display crashes.

Clover Mini
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Al Connelly avatar image
Al Connelly answered

I figured it out. Have to loop through and updating quantities manually, if a line item is removed altogether then call displayOrderLineItemRemoved if there is still a quantity left then call displayOrder instead.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community