Show “add to wishlist” after ajax content reload
-
Hello,
In addition to using “YITH WooCommerce Wishlist”, I also use “WOOF – Products Filter for WooCommerce”. The problem is that when I apply a filter and reload the products via ajax, the icon to add to my wishlist disappears.
There is a function (woof_ajax_done) from the plugin “WOOF – Products Filter for WooCommerce” that runs the actions inside that function after ajax loading is finished. To reload the wishlist icons I have added the following action:
$ (document) .trigger ('yith_wcwl_reload_fragments');
It seems to work correctly but I would like to verify that it is a correct way to do it.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show “add to wishlist” after ajax content reload’ is closed to new replies.