Using Slide Cart with GemPages
Slide Cart is compatible and can be used with Gem Pages page builder, it simply requires an additional snippet to be added to your theme.
Pre-requisites:
- Make sure you've installed the fast-install snippet. Detailed instructions can be found here.
Once the pre-requisites have been met place the following snippet below the fast install snippet.
<script>
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll('.gf_add-to-cart').forEach(function(el) {
el.addEventListener('click', function() {
setTimeout(function() {
SLIDECART_UPDATE();
SLIDECART_OPEN();
},1000)
})
})
})
</script>
If you need help or it's not working, do not hesitate to reach out.