LogoLogo
Manifold for Developers
Manifold for Developers
  • Introduction
  • Shopify Merch Bridge
    • Overview
    • Tutorial
      • Step 1: Product Gate Setup
        • 1.1: Configure the Product
        • 1.2: Install Manifold Merch Bridge
        • 1.2: Create a New Product Gate
        • 1.3: Link a Product to the Gate
        • 1.4: Add Rules
      • Step 2: Store Theme Setup
        • 2.1 The Theme Editor
        • 2.2 Product Page Setup
        • 2.3 Cart Page Setup
    • Advanced Configuration
    • FAQ / Error Help
    • Reference
      • Product and Gate Configuration
        • Shopify Products
        • Product Gates
          • Gate Products
          • Rules
      • Custom Themes
      • Updating to the Latest Version
      • UI Configuration Options
      • Advanced Usage
      • Common Issues
  • Guides
    • Getting Started
    • HTML
    • React
    • NextJS
    • Vue
    • Wix
    • Squarespace
      • Simple Squarespace Site
      • Customised Squarespace Template
  • Resources
    • Apps
      • Grant Types
    • Widgets
      • Directory
      • Manifold CSS Variables
        • Scheme Utility Classes
        • List of Manifold CSS Variables
      • Connect Widget
        • Blockchain Interaction
        • Wallet Authentication
        • Data Client
          • NFT Information Retrieval
            • getNFT
            • getNFTsOfOwner
            • ownerHasNFT
            • getCollectors
          • Data Storage and Retrieval
        • Advanced Configuration
        • Customization & Styling
        • Automatic Error Handling
      • Campaign Widget
        • Campaign Creation
          • Questionnaire
        • Campaign Progress
        • Customization & Styling
      • Curation Widget
      • Marketplace Widgets
        • Widgets
          • Data Attributes
          • Layout Widgets
          • Card Widgets
          • Listing Widgets
        • Window Events
        • Troubleshooting
        • Customization & Styling
        • Version Change Notes
          • 3.2.1 - CSS Selector Changes
          • 3.1.1 - CSS Selector Changes
      • Claim Widgets
        • Widgets
          • Data Attributes
          • Complete Claim Widget
          • Buy Button Only Widget
          • Mint Count Widget
        • Troubleshooting
        • Customization & Styling
        • Version Change Notes
          • 1.7.0, 1.7.1 - CSS Selector Changes
      • Restricted Token Widget
        • Customization & Styling
      • Wallet Identity Widget
        • Customization & Styling
      • Subscription Widget
      • 6551 Display Widget
    • Manifold Ethereum Provider
  • Tools and APIs
    • Merkle Tree Tool
    • Snapshot Tool
    • Discord Tools
    • Server-Side Session Authentication
      • Signature Grant
      • Authorization Code Grant
  • Smart Contracts
    • Manifold Creator
      • Contracts
        • Creator Core
          • Common Functions
          • ERC721 Functions
          • ERC1155 Functions
        • Extensions
          • Extensions Functions
          • Extensions Examples
          • Extensions Deployment Guide
            • Dynamic NFT Extension
            • Lazy Mint Extension ERC1155
            • Lazy Mint Extension ERC721
        • Mint Permissions
          • Mint Permissions Functions
      • Prior Versions
        • 1.0.x
          • Creator Core
            • Common Functions
            • ERC721 Functions
            • ERC1155 Functions
          • Extensions
            • Extensions Functions
            • Extensions Examples
            • Extensions Deployment Guide
              • Dynamic NFT Extension
              • Lazy Mint Extension ERC1155
              • Lazy Mint Extension ERC721
          • Mint Permissions
            • Mint Permissions Functions
        • 2.0.x
          • Creator Core
            • Common Functions
            • ERC721 Functions
            • ERC1155 Functions
          • Extensions
            • Extensions Functions
            • Extensions Examples
            • Extensions Deployment Guide
              • Dynamic NFT Extension
              • Lazy Mint Extension ERC1155
              • Lazy Mint Extension ERC721
          • Mint Permissions
            • Mint Permissions Functions
    • Marketplace
      • Identity Verifier
    • Royalty Registry
  • Contact Us
Powered by GitBook
On this page
  • Restricted Rule
  • Attribute Filtering
  • Attribute Combinations

Was this helpful?

  1. Shopify Merch Bridge
  2. Reference
  3. Product and Gate Configuration
  4. Product Gates

Rules

Last updated 2 years ago

Was this helpful?

Here we'll indicate what groups of NFT holders will get what discount or access.

Click on the green "Manage Rules" button to open the Campaign Rule Manager.

Select the "Product" from the drop down for which you want to make a token gated rule. You'll notice that only items you've added to your product list (previous step) are available. This is on purpose and you'll need to add desired products there first before selecting.

Next, select the "Discount %" you want to apply to this product with this rule.

If you are giving only access to this product to certain NFT holders (NFT-Exclusive, yet still regular price), please ensure that your product has an artifically high price (e.g. $10,000) and apply a discount for NFT holders to bring the product back down to the expect NFT-holder price. This is necessary due to limitations of Shopify's native cart system. If you did not do this, anyone could programatically add the item to the cart and checkout.

Next we'll specify the NFT holding requirements for this rule with the "Restricted rule" box!

Restricted Rule

This is where the NFT magic happens. Check the "Restricted rule" box to open up the UI for specifying which NFTs you want to make sure customers have to be eligible.

Now that we've got the contract address loaded in we can select from the following:

  • All tokens: Selecting this option will make holders of any token of the specified contract eligible for redemption (one token = one redemption). This is great for giving access to "all Cool Cats" or "all holders of my artwork".

  • Filter by token id range: Selecting this option will allow you to specify a "Minimum" and "Maximum" token ID to indicate a range of ho is eligible. For example, if I were to put "1" and "100" as inputs for this contract, Cool Cats #1 - #100 would only be eligible (Token ID).

  • Filter by attribute: Selecting this option will allow gating based on specific NFT attributes, even required sets of specific attributes. For example, with my Cool Hat! product I want to ensure only those Cool Cats NFTs that also wear the same hat have access to it (attribute "hat: hat white".

Attribute Filtering

To select an attribute simply click in the "Search attributes" box and the selection of available attributes will populate. For some projects with many attributes (like PFPs) the set of attributes might take a moment to load. If you are not seeing the correct set of attributes double check the submitted contract address. If that's correct it may be that our system needs a nudge to re-scan the collection for the updated set. You can do this by clicking the "Refresh metadata" button if needed.

When selecting an attribute check the box next to the attribute and you will see the attribute populate below the search bar in a grey box. Click "Add" to add this rule

You'll see the rule gets added as a line item to the "Rules" table with details of contract, restriction (all contract tokens, range, or attributes), restriction details, and the desired discount percent for this group of holders.

Attribute Combinations

If more than one attribute is selected before "adding" the rule, this will function as an "and", requiring holders' NFTs to have attribute 1 AND attribute 2 AND attribute 3 (and so on) to be eligible for the claim.

Start by entering in the contract address of the NFT collection in the "Contract address" box. For example, I know I want to use Cool Cats for these Cool Hats! so I'm inputting 0x1A92f7381B9F03921564a437210bB9396471050C into the form. Contract addresses can be obtained by finding the official collection pages for projects on marketplaces like or and clicking through to the projects .

In the below example we've created a rule that only Cool Cats with "face - glasses" AND "tier - exotic_1" traits are eligible for the 100% discount of the Mani Hat. Be sure to double check your intended audience when combining attributes. For example, this combination of two traits represents from the 10k collection.

LooksRare
OpenSea
Etherscan link for the contract
only 12 NFTs