How to disable Shopify Native Checkout for specific products

Hi,

  1. How can I disable the native Shopify Buy now button for specific products and replace it with Buy with Amazon button?

2.How to integrate conditional statement into code to check product has that tag “Buy now” to Buy with Amazon.
3. How Can I check the products and tags the products which have default native checkout is replaced?

Hi @Satguru_tech

You can do this a few ways depending on what your store is setup like.

A way that could work is have a If statement on the product page for the buy buttons. I would create a metafield inside of your products for your URL to be stored to reference and create tags on the products you want to reference the amazon link for.

{% if product.tags contain “Amazon” %}

Buy Now

{% else %]

“Your buy button that you currently have in place for the product page already”

{% endif %}

As I can’t see your store I can really help much other than a guess at the moment. If you need more help reach out via DM and I’ll try to help you.

Jake