Add the Add to Cart button to WooCommerce Shop and Category pages

Nov 23, 2020 | WooCommerce Tips | 0 comments

Add the following to your child theme functions.php file.

// Add Add to Cart buttons to shop pages
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );


Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.