Skip to content

Instantly share code, notes, and snippets.

@tiagomatos
Created January 10, 2018 11:34
Show Gist options
  • Save tiagomatos/264258908dae17f06286352e7ad07887 to your computer and use it in GitHub Desktop.
Save tiagomatos/264258908dae17f06286352e7ad07887 to your computer and use it in GitHub Desktop.
On the Jumpseller's Checkout or Cart Page, update all of each product's quantity to one.
var setQuantityOne = function(data){
$.each(data.products, function(index, item) {
//console.log(item);
Jumpseller.updateCart(item.id, 1, {});
});
};
Jumpseller.getCart({callback: setQuantityOne})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment