Buttons don’t refresh with Facet WP Filters
-
On our membership site, when a user logs in, they should see the “Download” button for specific products categories, and logged out users will see the “Buy Now” button.
The products are filtered using the Facet WP plugin: https://facetwp.com/
If a user logs in, and then uses the filter to filter a product category that they should have instant download access, the download button won’t work properly until you refresh the page after filtering.
Is there some kind of function I can run after the Facet WP is loaded? For instance, with Jetpack lazy loading, it can be done like this:
<script> (function($) { $(document).on('facetwp-loaded', function() { jetpackLazyImagesModule( $ ); }); })(jQuery); </script>
Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Buttons don’t refresh with Facet WP Filters’ is closed to new replies.