Hello,
I have one request, and need to know one thing.
On the basis of below Shopify official docs page, I just wanted to know can we Hide any specific Payment method or option or Gateway if a user (or customer) applies some specific Discount coupon code.
Say, If we create a Discount coupon with 10% OFF on All or selected products, with name DISC10OFF.
And if any user uses this Code during checkout, then any specific Payment method or option or Gateway should get Hidden.
Somewhat similar to below one, and as a reference –
https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/payment-gateway-scripts
PS:
- We actually want to Hide Cash-On-Delivery (COD) Payment Method (option or Gateway), once a Coupon code is applied. As, we want to offer Discount Only on Prepaid Orders (Payment via Card, Netbanking, other online sources)
Another reference link for COD payment option (just in case)
https://help.shopify.com/en/manual/payments/cash-on-delivery
- I know this can be done. And I have seen this on someone’s else Store using one of the Popular themes (from Themeforest marketplace)
Can someone from Shopify Moderator team (or core tech team) please suggest the Updated code, by referring to the above official Shopify Docs page.
Also, can this code also be Added on the above Help Manual page, as per the request and requirement, I have posted above. The same way, few other custom scripts have already been added.
Please suggest
Regards