Created
January 10, 2018 11:34
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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