Unfortunately, it’s not possible to restrict any payment method in Shopify based on any condition. All payment methods in Shopify are global, which means that they are shown to all customers who can make a purchase on your store and you cannot show them only based on specific conditions such as the shipping method selected by the customer.
This restriction does not apply to Shopify Plus stores, so unless your store is using Shopify Plus you have no option to do this, you will have to manually cancel orders that have the wrong shipping method.
Something that can help could be adding a note to your COD payment method message saying "Cash on Delivery is not available for shipping method X and Y". You can do this by opening your Shopify Settings > Payments > scroll down a lot > click on the "Manage" button on the Cash on Delivery payment method > write your message on the popup that appears
I hope this helps!
Marco from Releasit
I have Shopify Plus and i managed to hide COD for specific countries via Shopify Script.
Now i'd like to hide COD for the customers who choose DHL as their carrier for their order, as DHL does not support COD payments. Could you please assist me on how i can achieve that?
Thank you in advance.
Can you please share your script and where you edited to achieve that? I will take a look at it and see if I can find a solution for limiting COD based on carrier.
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023
You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...By Skye Nov 8, 2023