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.
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) !
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.
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024