I have a store that's using a sidebar filter to filter products on my collection pages by tags, collections, vendor, and various other options. The filter is written into the theme.js
I've added an add to cart button and gone though the procedures listed in this article to "ajaxify" my cart.
Everything works wonderfully. The filter does what it's supposed to. The add to cart button works in both my collections pages on my home pages and the collection pages with the filter.
The only exception is that the ajaxify-cart.liquid doesn't seem to be triggered on the collection pages itself, where the sidebar is. Everywhere else is fine.
I'm guessing it's because the ajaxify-cart.liquid isn't being triggered in the sidebar.
I'm wondering if there's some code that can be added to the theme.js to achieve something like what the {% include 'ajaxify-cart' %} does in liquid files.
Am I way off with this? If so, any ideas?
As always, thanks for your time.
Jeff