D
D
Dmitry2018-12-11 22:46:38
WordPress
Dmitry, 2018-12-11 22:46:38

How to add to cart without reloading the page? (WP and Woocommerce)?

In general, the main site has a separate page in the form of a landing page. Where is the "Add to Cart" button. When added to the cart, it redirects to the cart page. And you need to add it to the cart on this landing page without rebooting (the cart is already there).
The "Add to Cart" button is made in such a way that ajax is enabled. Any suggestions on how to implement it? Can you suggest a plugin?
<a href="/?add-to-cart=2651"></a>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question