Coupon Code That Can Only Be Apply For Prepaid Orders

On my shopify store, i want to give a discount to prepaid customers only to convert them from CoD to pepaid. That discount should pop up when the customer chooses CoD but it should be applicable with only prepaid selection not with CoD. Currently my CoD customer also are applying PREPAID10 discount and its allowing them.

Hi, can you please share your shop URL on myvirtualteams1@gmail.com
I can assist you with this.

Check if your gateway has it’s own discount system and can apply the % off that way.

Currently in shopify you cannot control this behavior , in the discounts admin there is no way to limit a discount based on payment gateway.

A possible klunky workaround is to use accelerated-buy-buttons on product pages and auto-inject a different hard to guess discount-code with javascript(ajax) on the frontend*, but when ever someone clicks the regular checkout button clear the discount code just assume they will pay with COD.

If they go through the checkout button and they do prepaid you could then issue a refund for part of the order; or change the tactic to give free giftcards to prepaid orders.

  • .myshopify.com/discount/DISCOUNTCODE

Hypothetically the only way to do this in checkout is by building an app with the new shopify-functions api.

Even though the discounts aren’t part of the payments-function graphql schema it may be possible to kludge something together by tallying the cart costs + taxes + expected discount to try and guess if a discount is applied and hide COD with a hideoperation. Optionally renaming the prepaid method with a renamoperation to clarify the discount is applied and COD is not useable(though that’s a lot of words)

https://shopify.dev/docs/api/functions/reference/payment-customization/graphql/common-objects/cartcost

https://shopify.dev/docs/api/functions/reference/payment-customization/graphql/common-objects/renameoperation

https://shopify.dev/docs/api/functions/reference/payment-customization/graphql/common-objects/hideoperation

Hello @Stylematters27

This is not directly possible in Shopify, but it is possible using our app Releasit Cash On Delivery.

With the app you can disable COD if the order contains any discount, so you can create a discount code on Shopify and call it PREPAID or something similar and tell your customers to use it at checkout if they want to get a discount and pay with prepaid. When the discount is used by the customer, the COD option will not appear at checkout so the customer will only be able to use a prepaid payment.

You can install our app Releasit Cash On Delivery for free from the Shopify App Store here: https://apps.shopify.com/cash-on-delivery-fee

After you install it you can go on the Limit COD page and you will find here the option to disable COD if the order has discounts:

We also offer 24/7 support and the app works with all Shopify plans, so if you need any help feel free to contact us from there!

I hope this helps you, if this answers your question please Accept it as a solution

Marco from Releasit

1 Like

great!
i was looking for it for some time now.