Answer the question
In order to leave comments, you need to log in
Why does clicking on the add to cart button take me to the product page?
When I click on the add to cart button, I am redirected to the product page and only there it is added to the cart.
I need that when clicking on the store page, the product is added to the cart, and the client can continue shopping.
I included this.
Answer the question
In order to leave comments, you need to log in
I had the same problem, I did not understand why, but I solved it like this:
remove_action('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open');
remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question