Gift (Freebie) Usage Instructions
Last updated
Last updated
Steps to Add a Gift (Free Gift)
Step 1: Create a Gift Meta Object
Go to the Metafields configuration page.
Add a new meta object and name it "gift" (the name can be customized).
Ensure that this meta object contains the following three fields:
image (Select file type; supports images.): Used to upload the gift image.
title (Single line text type): Used to enter the gift’s name.
price (Amount type): Used to set the price of the gift.
Step 2: Add Gift Entries
In the "gift" meta object, add multiple entries, with each entry representing a separate gift.
For each entry, upload the image, and fill in the gift’s title and price.
Step 3: Add Gifts to Products or Product Variants
If adding a gift to a product (applies to all variants):
Go to the Metafields configuration page, and add a new product metafield named product-gift. Ensure the namespace and key are set to custom.product_gift.
Select Meta Object as the metafield type and reference the gift meta object created in Step 1.
On the product edit page, find the Product Metafields section and locate the newly created product-gift metafield. Select the gift entry you want to add as the free gift.
If adding a gift to a specific product variant:
Go to the metafield configuration page and add a new multi-attribute metafield named variant-gift. Ensure the namespace and key are set to custom.variant_gift.
For the metafield type, select Meta Object and reference the gift meta object created in Step 1.
On the product edit page, go to the Variants section, and click on the specific variant you want to add a gift to.
In the variant edit page, find the Metafields section, and locate the variant-gift metafield. Select the desired gift entry.
Important Notes
A maximum of 6 gifts can be added to each product or variant.
Ensure that the metafields are configured correctly to make it easy to select and add gifts during future operations.