Hi folks,
I have created a widget that sits inside the product page which allows the customization of a complex product type. From this widget, I would like to add the finished product into the cart. Looking at the documentation there appears to be a way of doing this through the Storefront API (CheckoutLineItemInput). But how it is actually implemented is still confusing to me.
There is another GraphQL endpoint similarly called checkoutLineItemsAdd with a different spec entirely.
I am able to make other GraphQL calls, could someone please help me figure out what the call would look like to add an item to the cart for a given product (or variant) id?
Thanks so much!