Hey! I created a custom app that allows my shop to have third-party carrier-calculated shipping rates. We offer various types of shipping methods, including, for example, regular shipping, express shipping, and lockers. We also have cash-on-delivery (COD) enabled as a payment method (and we need this, it makes up for an important percentage of our sales). The problem is that certain shipping-method + payment-method combinations are not allowed. For example, I can’t accept cash-on-delivery whenever a client wants their purchase delivered to a locker.
I need a way to condition the available payment methods based on the selected shipping method.
My question is, is this achievable with a custom app? Or do I need to use the new Shopify Functions or checkout UI extensions? Is this doable at all?
In instances like this, it wouldn’t be possible to have multiple payment gateways combinations based on shipping method. At this time, whichever payment methods you set up will be applicable to all orders. I understand it’s important to ensure people who select ‘Lockers’ shipping method do not choose the COD option.
In that case, I’d recommend editing the verbiage on your shipping and payment methods to instruct the customer at checkout.
You can use the ‘additional instructions’ field when setting up the cash on delivery payment method to instruct customers:
Including in the Shipping method:
If there is anything else I can help you with, please let me know.
Isn’t there a way I can customize my shop to do this? Maybe using the new Shopify Functions (which I understand allow backend changes) or the new checkout UI extensions?
While adding the message would help, I really wouldn’t be restrictive enough and would cause a lot of trouble for customer service.