Shopify Post-Purchase Extension: Get Product IDs from Order for Customized Upsells

alimirzazadeh
Shopify Partner
2 0 1

Hi,

I have been using the @Shopify/post-purchase-ui-react library and tutorial to create a post-purchase extension for my app. I want to somehow get the items that have been bought, so that I could get the corresponding upsell for each of them from my database. However, in the React code I only have access to the checkout token, and that does not give me information on the items in the cart that was checked out. Is there any way using this library to extract the productids that were in the checked out cart? Or do I have to use local storage in some way to store?

Thanks!

Ali

Replies 0 (0)