In this tutorial, you'll use Shopify Functions to create a original discount type that offers a percentage off when customers purchase more than the minimum quantity of each product.

https://youtu.be/vMoDQPfW0Ks?si=vCqRwTYl53I33fME

Create and test your discount

  1. From your Shopify admin, go to Discounts.

  2. If you have existing discounts from previous tutorials, then click the checkbox next to each of them, and then click Deactivate discounts.

  3. Click the Create discount button.

  4. Click the Tiered amount off products button.

    スクリーンショット 2023-11-19 23.16.34.png

  5. Fill in values for the discount:

  6. Click Save. You should see a new discount in the discounts list.

    スクリーンショット 2023-11-19 23.52.57.png

  7. Open your store and build a cart with items from your collection that you have added to Specific Collection. No discounts should be applied to the cart.

  8. Increase the item quantity to 3. The 5% Volume discount should now be applied to the cart.

    スクリーンショット 2023-11-19 23.53.17.png

  9. Increase the item quantity to 5. The 10% Volume discount should now be applied to the cart.

    スクリーンショット 2023-11-19 23.53.31.png


Frequently Asked Questions (FAQ)