Accepting credit cards, warehouses, and shipping and fulfilling orders
Hello,
How to create a discount through coding that creates a discount but ONLY for customers who choose to pay online?
I did try this using Chat GPT, and it did give me a response, but upon trying to follow the steps, we reached our desired goal.
Could you see what the problem is and why aren't we able to give discounts ONLY to online payment customers?
This is Chat GPT's response.
Step 1: Create a new discount code
Step 2: Configure the discount code
Step 3: Set up payment method conditions
Step 4: Modify your theme's code
This code snippet will hide the discount code field from the checkout page if the customer has the "prepaid" tag.
Step 5: Test the discount
By following these steps, you can offer discounts exclusively for prepaid orders in Shopify. Remember to replace "PREPAID10" with your desired discount code and modify the customer tags accordingly.
Hello @rickriate
do you have any other discount which have same percentage(%)?
Ex: if you have 10% off only for to pay online and no other discount for 10% (like welcome10) !
Lmk
Hi,
Now in 2023, it is possible to implement this using our free app Payment Customizations: PayMix.
You can setup a rule in PayMix to "Show specific payment methods and hide others" when the cart contains discount.
Here is a small video to see how the end effect would look like:
If the discount code is applied, only the applicable payment methods would show. Others will be hidden.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025