Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Spurit.checkout.addHandler(function (cart, next) {
- cart.getLineItems().forEach(function (lineItem) {
- if (...) {
- lineItem.quantity = ...;
- lineItem.discounted_price -= ...;
- //cart.updateLineItem(lineItem);
- }
- });
- var tags = cart.getOrderTags();
- tags.push(...);
- cart.setOrderTags(tags);
- next(cart);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement