-
-
Save shopifypartners/a0ccb57680c960623c127f4ab4c285ca to your computer and use it in GitHub Desktop.
Sticky add to cart using the http://stickyjs.com/ plugin - https://shopify.com/partners/blog/112052742-how-to-create-a-sticky-add-to-cart-button-on-scroll
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src="jquery.sticky.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$(".add-to-cart").sticky({topSpacing:50}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment