How To add select product directly to customer cart

We have created a Flutter app for our Shopify store where customers can book appointments with a doctor. After the consultation, the doctor prescribes products to the customer.

We want to add a feature where the products selected by the doctor are automatically added to the customer’s cart.

How can we implement this functionality?

Hi @Sanket_Vaghani

With the data collected in the app, you could use Shopify’s Admin API to make a draftOrderCreate mutation. This draft order can then be sent to the customer for checkout.

If you want to add products directly to a customer’s cart (for example, if you are using a custom storefront), you would typically use the Storefront API, see cartCreate here: cartCreate - Storefront API

thank you so much for this information