Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Looks like it may not be possible to create discounts in flow. I could build out an automation template for you to do this using our app mesa if you're interested in that?
Hi @Kalen_Jordan . I asked for that from support also and it's not possible with Shopify Flow.
So does the MESA create the unique discount codes for each order?
Yes exactly - here's a template for it:
Hi Kjankko,
Instead of creating a unique discount code per client (which can potentially clutter your backend if you have many), you can use automatic discounts.
For example, here's how you can give Mike a 10% discount by combining Shopify Flow with my app, Regios Automatic Discounts:
First, create a workflow in Shopify Flow that adds a specific tag (ex. "BoughtProductX") to a customer, if the order line items contain a specific product. Here's a screenshot of a demo workflow:
Then, in Regios Automatic Discounts, use the "Customers with specific tags" option to give a 10% discount to all customers who have the "BoughtProductX" tag. Here's a screenshot of what it looks like to create a discount based on a tag:
Once you've turned on your workflow and saved your discount, any customer who buys Product X, will automatically receive a discount on the products you specify.
If you don't want to use an app, you can create your own discount using Shopify Functions.
If you have any questions, just reply, and I'll be happy to help you out in this thread.
Hi @tobebuilds & thank you.
This is a good way, but the only problem is that the discount code isn't unique.
The discount code should be i.e: Random digits + first name + random digits:
123-MIKE-456
Do you have a solution for uniqueness?
Hi,
We don't have a solution for uniqueness, as our app doesn't require you to create multiple discount codes.
The tag "BoughtProductX" in the example is on the customer's individual profile, so it will only ever apply to accounts you have tagged (whether manually, or via Shopify Flow).
That being said, the solution I outlined will result in customers with the "BoughtProductX" tag getting 10% off all future purchases.
If you need to limit the number of times a customer can use the discount, then unfortunately that's not possible right now.
There are some other apps that can generate discount codes in bulk, though.
You could build the flow to remove the tag after the user uses that discount to stop it being used more than once?
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024