shopify add to cart button sdk storefront api code example
Example: add/cart shopify api
jQuery.post('/cart/add.js', {
items: [
{
quantity: 1,
id: 794864229,
properties: {
'First name': 'Caroline'
}
}
]
});