Does AJAX /cart/add.js use Shopify Scripts?

bansavage
New Member
2 0 1

Does Shopify's AJAX /cart/add.js method automatically communicate with the Shopify Scripts API and run any line item scripts on the items added to the cart via the AJAX method?

BrixtonBrent
New Member
2 0 1

anyone have an answer yet? I need to know this as well.

 

0 Likes
gina-gregory
Shopify Expert
647 37 141

Yes. Any time the cart is modified, the Script will run and when you fetch the cart afterward, you'll get the cart with the discounts applied.

0 Likes