T
T
trenton2021-05-02 23:03:16
WooCommerce
trenton, 2021-05-02 23:03:16

How to make a popup without a plugin after adding it to the cart - "go to cart" or continue shopping"?

There is a script there, and just by clicking on the add to cart button button does not work.
It is necessary to somehow tie up to the action of adding to the cart and add after it.
Are there any examples of this? What is there to cling to?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Chernenko, 2021-05-02
@vladchv

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question