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