add buy now woocommerce without shop page plugins 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);
?>