To get the Shopify checkout page to open in the same tab / window when you click the Buy Now or Checkout button, you need to add the following code to your website in the header (or footer) scripts section.<script data-shopify-buy-ui="">
window.open ...