question

rizwan avatar image
rizwan asked ·

How to save Order on Open new Register page.

hi all,

i am getting order when i lanuch new register page with following code.

  Intent intent = new Intent(Intents.ACTION_START_REGISTER);
  intent.putExtra(Intents.EXTRA_MERCHANT_ID, id);
  startActivity(intent);

i want to remove discount and save this order into order list of clover

so far i have check ACTION_ACTIVE_REGISTER_ORDER is the receiver which runs when we have order in register page.

the problem is i could not find method to save order into orderlist.

any help will be appreciated thanks.

OrdersLineItems
1 comment
10 |2000 characters needed characters left characters exceeded

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

In other words:

If there's a current order on the register, save it & start a new one.

0 Likes 0 · ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered ·
  1. Create the order using the order connector
  2. Pass the ID of the order in the START_REGISTER extras
  3. Register will save/close previous order & open the register with the new blank order.

Here's a sample code:

http://pastebin.com/5Yw2xh0E

Share
10 |2000 characters needed characters left characters exceeded

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