Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pipeline events:
* add_product.pre
* add_product.post
Theme could add messages to the pipeline:
ShopifyApi.Pipeline.addProduct(1234, 1).then(function(pipelineStatus, cart) {
// do things
});
Apps could hook to events:
var priority = 2;
ShopifyApi.Pipeline.listen('add_product.pre', priority, function(requestedId, requestedQuantity) {
// An app could implement its own logic to prevent the element to be added, for instance
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.