WooCommerce add_to_cart button loads the product page

[ad_1]

odd behavior: having the button inside of a query loop loads the single product page, add the item to the cart, and give you feedback.

this happens using any method to build a query loop and to put the button where you want. it happens in every builder i tested.
if you use the standard products module or shortcode the button behave as expected, adding the item to the cart and giving you feedback, without sending you to the product page.

why?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer