Forked from sarachisholm/four-smart-reasons-to-embed-shopify-store-toggle-cart.js
Created
March 17, 2017 19:18
-
-
Save shopifypartners/3bd25eed09908c7f511b8f3d0e28bb11 to your computer and use it in GitHub Desktop.
Toggle cart JavaScript for Shopify Buy Button - https://www.shopify.com/partners/blog/four-smart-reasons-to-embed-a-shopify-store-in-your-client-websites
This file contains 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
function openCart() { | |
$('.cart').addClass('js-active'); | |
} | |
function closeCart() { | |
$('.cart .btn--close').click(function () { | |
$('.cart').removeClass('js-active'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment