woocommerce buy button code example Example: how to add buy now button in woocommerce without plugin <?php echo home_url('/cart/?add-to-cart='.$product_id); ?>