S
S
Samalamadoit2020-07-30 17:56:19
WordPress
Samalamadoit, 2020-07-30 17:56:19

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.
5f22df8dabd52838666374.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
5
571llum473, 2020-07-30
@Samalamadoit

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 question

Ask a Question

731 491 924 answers to any question