Answer the question
In order to leave comments, you need to log in
How to make a popup cart in WooCommerce?
Hello.
Help solve the problem.
I want to display the cart and checkout template in the popup window.
I found this solution:
but after I removed the "add product" button, this thing stopped working.
I want to attach a click handler to another button and call the cart template in the popup.
Or tell me how you can use ajax-a to call a function that will display the woocommerce cart template.
To be able to do for example
$('.cart').click(function(){
$('body').append('<div id="hidden_cart">'+data['div.widget_shopping_cart_content']+'</div>');
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question