Add product to cart with API from another platform

carat
New Member
4 0 0

Hi,

I want to add a particular product/products to a respective (logged-in) user's cart from another platform like php/laravel.

Is this possible with Shopify?

0 Likes
Jason
Shopify Expert
10272 144 1943

There's a couple of things working against you.

  • Carts are not tied to a user but rather a session.
  • There isn't a cart object exposed via the Admin API.

You could look to approach it in a different way. For example, add a metafield to the customer object with the product details and when they log in, you add that to the cart using the AJAX API.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes