> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://regiostech.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Metafield Discounts

Our app gives you the ability to create discounts based on the values of product/variant metafields.

Due to the [Shopify Functions Input Query Complexity Limitation](/en/article/shopify-functions-input-query-complexity-limitation-6u1u2t/), product/variant metafield eligibility conditions had to be put in their own separate discount type, rather than being available in other discount types. Also, due to this limitation, several features that are available in other discount types are not available in metafield discounts (though you can submit a feature request). These limitations are largely about some discount conditions not available in Metafield Discount.

## Use cases
* Creating discounts for products with specific metafield values
* Creating discounts for product variants with specific metafield values

## How to create metafield discounts

To create a new metafield discount:

![Screenshot of our Metafield Discount Templates](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_12v6649.png)


1. On the home screen of the app, click "Create discount."
2. Click "Browse Templates".
3. Type "Metafield" in the search bar.
4. Select you desired Metafield discount bly clicking "Use Template".

## Product/variant metafield eligibility conditions
![Screenshot of a product metafield eligibility condition](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_ku6q5w.png)

Metafield discounts have additional [product eligibility options](/en/article/product-eligibility-options-in-regios-discounts-35adhk/) available:

* Product metafield
* Product variant metafield

Options:
* **Choose metafield**: A customer metafield definition from your store. We automatically load these from your store, but you can choose to "Enter metafield manually."
* **Condition**: Either "equals" (the default), or "contains." This determines how the discount handles the product/variant's metafield value.
* **Metafield value**: If your condition is "equals," your discount will only apply if the product/variant's metafield value is exactly equal to this field's value. If your condition is "contains," then your discount will apply if the product/variant's metafield value contains this field's value.

If you choose "Enter metafield manually," you will be shown 2 additional fields: **Metafield namespace** and **Metafield key**. 

![Screenshot of the fields for manually entering a metafield definition](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_sqaszc.png)

You can find the correct metafield namespace and metafield key in `Settings > Custom data > Metafields` in your Shopify admin dashboard.

## Your Feedback Matters
Your review helps keep this small business running. Please [leave one](https://apps.shopify.com/regios-automatic-discounts#modal-show=ReviewListingModal) on the Shopify App Store.