• Hello. I use this code to get the total number of items added to the wishlist in header:

    <?php echo count(get_user_meta(get_current_user_id(), 'berocket_wish', true)); ?>

    Help make sure that when adding/removing a product from the wishlist, the number of products in the block in header changes with the number of products in the list. Can you help me?

Viewing 1 replies (of 1 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    For code you can use option “JavaScript After add to wish list” in plugin settings -> Custom CSS/JavaScript tab.
    There you can place JavaScript code to update needed elements on page with AJAX load.

    Regards,
    Oleg

Viewing 1 replies (of 1 total)
  • The topic ‘Ajax Update Count Products in Wishlist’ is closed to new replies.