Shopify Script - Show Payment Gateway IF product A, B, or C are in cart.

vschantz
Tourist
3 0 6

I see a lot of pre-built scripts showing how to hide payment gateways if certain products are in the cart, but I don't see the opposite of that... 

Only show payment gateway "X" if product SKUs "A", "B", or "C" are in the cart. If none are in the cart, then hide payment gateway "X". 

Does anyone know how to do this? 

Thank you!

0 Likes