question

dhananjay avatar image
dhananjay asked dhananjay answered

Unable to find intent to get product code when using ACTION_LINE_ITEM_ADDED

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

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

I need a Product code but am unable to find the intent for it.

thank you,

IntentsBroadcasts
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

You have the itemId, you should use the InventoryConnector to obtain the item and grab the product code - https://github.com/clover/clover-android-sdk/blob/master/clover-android-sdk-examples/src/main/java/com/clover/android/sdk/examples/InventoryTestActivity.java

10 |2000

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

dhananjay avatar image
dhananjay answered

thnx for the response. I want to get the price of the item created currently in the register application.

how can I get that from lineItemId

10 |2000

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