
How to Set Up a Free Gift for a Product in Xynotheme Without Using an App
Share
With XynoThemes, giving away free gifts is easy and code-free. You can set up gift offers directly on your product pages using built-in theme blocks and Shopify metafields — no third-party apps required!
Here’s a simple step-by-step guide to help you get started.
🧩 Step 1: Add the "Free Gift" Block

- From your Shopify admin, go to Online Store > Themes.
- Click Customize on the theme you’re editing.
- Navigate to Products > choose Default Product (or any product template you’re using).
- In the theme editor, click “+ Add block” inside the product section.
- Choose the block called Free Gift
- In the block settings, select up to 3 products for free gift.
✅ This method applies to all products using this template.
🎯 Step 2: Add Specific Free Gift for Individual Products (Optional)
If you want to show different free gift products for each product, follow these extra steps:
1. Create a Custom Metafield
- Go to your Shopify Admin > Settings > Custom data > Products.
- Click Add definition.
- Set the Name to something like “freegift”. it must be exactly “freegift” for the theme to recognize it correctly. If you use a different name, it will not work.
Choose the Type:
→ Select List of Products. - Save the metafield definition. After savings, your meta look like this
2. Assign Custom Free Gift to a Product
- Go to Products > [Select a product].
- Scroll down to the Metafields section (usually at the bottom).
- Under freegift, pick the specific products you want to upsell for this product.
- Save the product.
🎯 Step 3: Create a Discount Code for Your Free Gift Offer
To make your free gift offer work at checkout, you’ll need to create a discount using Shopify’s "Buy X, Get Y" promotion:
- From your Shopify admin, go to Discounts.
- Click Create discount and choose “Buy X, Get Y”.
- Under Customer buys, set the conditions (e.g., minimum purchase amount or specific product).
- Under Customer gets, choose the product(s) you want to offer as the free gift and set the discount value to 100%.
- Customize any additional settings, like usage limits or active dates.
- Save your discount.
✅ Now when customers meet the conditions, the free gift will be automatically applied at checkout!