Hi there
Been a few years since i last posted. I am running enfold 4.7.6.1 and everything appears fine up until you select a facet on the left hand nav. Once selected the quantity buttons disappear (+/-)
https://jaycor.staging.wpengine.com/products/
Before selecting a facet
http://ibb.co/XX35yPf
After
http://ibb.co/CBBDQhk
I did check with the plugin developer and their response was :
It looks like those + / – buttons are loaded by JS on page load rather than being in the HTML, so whatever that JS is needs to be re-run on facet’s refresh when filters are selected.
Since this is usually theme or plugin specific, it would help if you would also ask your theme’s support.
Here is the explanation you can share with them from our docs:
Some plugins and themes use JavaScript to modify the layout, load images, or apply animation effects. Some examples include masonry layouts, isotope, image lazy loading, and sliders. These scripts run on page load, but do not usually run after each FacetWP ajax refresh, meaning that they’ll likely need to be manually re-triggered within a facetwp-loaded event.
Ask their support what JavaScript from their theme (or plugin) is needed to re-trigger the layout.
Please can you assist?
I think i got it.
In enfold/config-woocommerce/woocommerce-mod.js
I added the line
$( document ).on( 'facetwp-loaded', avia_apply_quant_btn );
after here
$('body').on( 'wc_fragments_refreshed', avia_cart_dropdown_changed );
And it seems to have resolved the issue.