39
0

Put Add to Cart Button Below Every Product – Woocommerce

39
0

If you need to show the woocommerce Add to Cart Button beneath your Woocommerce Products, simply copy the next code and paste that code in function.php file of your wordpress theme file.

Paste this code in to function.php

// register add to cart motion

function wnc_add_cart_button () {

add_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_add_to_cart’, 10 );

}

add_action( ‘after_setup_theme’, ‘wnc_add_cart_button’ );

Leave a Reply

Your email address will not be published.