Add the Add to Cart buttons on WooCommerce shop pages.

Jul 31, 2022 | WooCommerce Tips | 0 comments

This function adds the “Add to Cart” buttons on WooCommerce shop pages.
// Add "Add to Cart" buttons in Divi shop pages
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

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