Adding product to cart after querying as Storefront.Product

Highlighted
Tourist
7 0 1
I’m trying to search for products by their product ID. I can query the data fine using “let product = response?.node as? Storefront.Product l”, however, to add it to cart, I need product to be the type “ProductViewModel” instead of “Storefront.Product”, how do I do this?
0 Likes