• Resolved TrueLie

    (@footballher0)


    Hello.

    I have a custom fancybox window with a notification that the product has been added to the cart. This works great with simple products in archives and works great with any type of products on a single product page. However, it does not work on the wish list page. I use it:

    $('body').on('added_to_cart', function () {
        // do something;
    });

    Tell me, please, how can I catch the event of adding an item to the cart from the wish list page?

    Thanks for the plugin)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @footballher0

    We added some events in the plugin version 2.0.10 and you can try the next code:

    jQuery('body').on('tinvwl_wishlist_ajax_response', function(e,o,response) {
    	if ('add_to_cart_single'===response.action && response.status){  
    		// do something;
    	}
    });
    Thread Starter TrueLie

    (@footballher0)

    Thanks, it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to catch added_to_cart on the wish list page?’ is closed to new replies.