Global
Confirmed 65,943,496 +420,024 new today Deaths 1,519,143 +7,997 new today Recovered 45,652,023 Active: 18,772,330 Last updated: December 5, 2020 - 12:06 am (+05:30)
Home WordPress | WP Put *AddtoCart* Button below every product – Woocommerce

Put *AddtoCart* Button below every product – Woocommerce

by Admin
wordpress-woocommerce

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’ );

Related Articles

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Decline