Woocommerce Add Code after add to cart form plugin


<?php
add_action( 'woocommerce_after_add_to_cart_form', 'htdat_content_after_addtocart_button' );

function htdat_content_after_addtocart_button() {


    if (get_post_meta(get_the_ID(),"min_quantity",true)){
        echo '<div style="clear: both"></div>
		<div style="margin-top: 10px;color:#0028FF;font-size: 30px">
		 Pack:'.get_post_meta(get_the_ID(),"min_quantity",true).'</div>
		';
    }



}

Leave a Reply

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