Articles on: React Flow

Functions - Discount

Discount Function


In this article:


✔️ About Discount Function


A Discount Function is a custom discount created using Shopify Functions that can be applied to different parts of the checkout process, including cart line items, the order subtotal, or shipping rates.


✔️ Use templates


Before you start creating workflows, we recommend you to check the list of available Discount Functions. Maybe you will find the most suitable template and be able to add the function without unnecessary settings.


  1. Open the app and go to the Function tab in the left-side menu.
  2. Find the Discount block and click Create.
  3. Click on Create from template.



Select the template that you need. Check settings, apply changes if needed, and click Save in the upper-right corner.


Now, in the upper-right corner, you can see the Turn on button. Click on it to test the workflow.


✔️ Create from scratch


Example: Offer a discount if the total amount of lines in the cart is greater than 100.


  1. Open the app and go to the Function tab in the left-side menu.
  2. Find the Discount block and click Create -> Create from scratch.



  1. Select the Cart line discount in the right-side menu. Here you can set the start date and time, End date and time, and combinations by selecting additional options.
  2. Click on the + icon and select Conditions.
  3. Click on the field Select conditions -> Cart -> Lines -> Cost -> Total amount -> Amount.



  1. In the Select matcher field select “greater than” and set the amount you need.
  2. Click on + and select Action. Click on Order discount and set the discount value.
  3. Save your workflow by clicking the button on the upper-right corner.



Now, in the upper-right corner you can see the Turn on button. Click on it to test the workflow.


✔️ Need help?


Don’t worry if this feels technical - our support team can guide you through the process or even set up the webhook for you. Just send us a message: support@devit.group 


Updated on: 23/12/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!