Setup
1
Open your store's Discounts page and click Create discount

2
Scroll down to the Discount Kit section, which should now be available, and click Gift with purchase

3
Fill in the desired settings and click Save

Settings
Condition type
Determines the type of cart condition that must be met before the discount will apply. The options are either a set quantity of products or a monetary amount.Value type
Determines the type of discount that will be applied. The options are either a fixed amount off or a percentage.Applies to
Determines whether the discount will apply to all products, a selection of products, or a collection.Purchase Type
Determines if the discount applies to only subscription products, one-time purchase products, or both.Exclude products with compare-at prices
This option will exclude products with compare-at prices from tier prerequisite totals. This is particularly useful when targeting a collection with the discount.Group by
Determines how the discount will group the products before applying tier rules. Mix-and-match means that all products will count together toward each tier. Product and product variant options will apply tiers to each product or variant separately, allowing for products to have different discounts applied.Tiers
Title override
Overrides the discount title when the discount is displayed in the cart or checkout. Optional.Minimum quantity/minimum subtotal
Determines the number of products, or total product value, required to apply the discount.Percentage off/Fixed amount off
Determines the discount value that will be applied.Integrations
Automatic Gifts
Open your store’s theme editor. Select App embeds in the left hand panel and then enable Core from Discount Kit. Open up Core’s settings using the drop-down arrow and select Automatically add single variant gift products to the cart. Page Refresh Option: In most cases, it’s best to enable Refresh page after making cart changes so that customer’s carts do not become out of sync with the store’s theme. However, if you prefer to handle cart updates yourself (for a smoother user experience), you can disable this option. Manually Refreshing the Cart: If you disable page refresh, use this code to update your cart after gift adjustments:

Gift Selector
Enable Core as above (Core is required for all storefront gifting functionality). Then enable the Gift Selector app embed found below Core. Feel free to customize the settings to your liking!
Custom Integration
For developers building custom gift experiences, Discount Kit dispatches a browser event containing gift adjustment data: Event Name:discount_kit:gift_adjustments
This event provides a list of gift products to add to, and cart lines to remove from, the cart as a result of changes to the cart.
Event Structure:
remove property to work correctly, you must add a line item property to gifted products:
- Key:
_dk_gift - Value:
<discount_title>
remove property in the event will include any cart line with the _dk_gift property that does not contain an active discount.
Example Usage: