Action list

Every action, as data-next-action="<name>" and next.actions.<name>({ … }).

ActionArgumentsEvents
addItemitems ("1x2, 5"), or package_id and quantity, or selector_id for its pick; replace empties the cart firstcart.updated, cart.added
removeItempackage_idcart.updated, cart.removed
setQuantityquantity ("+1", "-1" or a number) and package_id or selector_id; min_quantity, max_quantitycart.updated or selector.updated
selectselector_id, option_idselector.selected
selectVariantcode, value, and the option, slot or line it changes; a variants.<code> row of data-next-each carries all of themcart.updated for an option or line; selector.updated for a slot
clear—cart.updated, cart.removed
applyCoupon, removeCouponcodecoupon.applied, coupon.denied, coupon.removed
setShippingshipping_idshipping.selected
acceptUpsellselector_id or items: what the offer adds to the order (on a page opened with ?ref_id)upsell.accepted, order.updated
skipUpsellthe sameupsell.skipped
gourl—

acceptUpsell is its own action because it charges the order; addItem on an order page fills a new cart.