< ?php echo home_url('/checkout/?add-to-cart='.$product_id) ?>
Skeptical but..
March 31, 2020
    

Didn’t think it would work as well as it does.