Adding Item to cart after Querying using Product ID??

Highlighted
Tourist
7 0 1

Im using the IOS sample app as a base for my shopify application. Im querying the data by using the Product ID. But when I get the product, the product is in Storefront.Product? form? How can I add this to the Cart? It needs to be in ProductViewModel form? Has anyone done this before?

 

Please help?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 165

Hey @Danielshop54,

 

Did you make any progress on this? Some notes from the docs:

 

  • The Buy SDK does not provide support for a local shopping cart since the requirements can vary between applications. Instead, the implementation is left up to the custom storefront. Nevertheless, when a customer is ready to make a purchase you'll need to create a checkout.

https://github.com/Shopify/mobile-buy-sdk-ios#checkout-

0 Likes