Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #563 from Shopify/add-storefront-buttons-callback
Browse files Browse the repository at this point in the history
Add StorefrontExpressButtons.initialize in cartCallback
  • Loading branch information
xuorig authored Aug 24, 2016
2 parents 2b73e42 + 2393ceb commit bc0c644
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/ajax-cart.js.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ var ajaxCart = (function(module, $) {
cartCallback = function(cart) {
$body.removeClass('drawer--is-loading');
$body.trigger('afterCartLoad.ajaxCart', cart);

if (window.Shopify && Shopify.StorefrontExpressButtons)
Shopify.StorefrontExpressButtons.initialize();
}
};

adjustCart = function () {
Expand Down

0 comments on commit bc0c644

Please sign in to comment.