Confirmed 163,179,059 +10,146 new today Deaths 3,383,606 +281 new today Recovered 142,593,687 Active: 17,201,766 Last updated: May 16, 2021 - 10:18 am (+05:30)
Home Coding Put *AddtoCart* Button below every product – Woocommerce

Put *AddtoCart* Button below every product – Woocommerce

by Admin

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