question

dhananjay avatar image
dhananjay asked David Marginian answered

how to get LineItem with lineItemId

Hi team,

I am using ACTION_LINE_ITEM_ADDED intent to for item added to register application.

and by using the below method I am able to get ordered, lineItemId and ItemId

                 
  1. orderId = intent.getStringExtra("com.clover.intent.extra.ORDER_ID")
  2. lineItemId = intent.getStringExtra("com.clover.intent.extra.LINE_ITEM_ID")
  3. val itemId: String? = intent.getStringExtra("com.clover.intent.extra.ITEM_ID")

I need a current lineItem created details like weight and price into the register app.

how do I get that using orderId LineItemId or itemId.

thank you,

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered

Please take a look at the example I previously provided. You should be able to obtain the item and obtain the information you need.

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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