<aside> ‼️ This document may be outdated. Please refer to the latest version here
</aside>
This is used when you want to set up a gated access campaign with limited redemptions. This will replace the current buy button with an “Redeem with NFT”. The customer will be prompted to connect their wallet. Once the wallet with valid NFTs is connected. They are presented with a NFT selection screen where they can select the NFTs they want to use to redeem the product. The customer will then be prompted to complete a Draft order with the product and number of NFTs selected.
For a smooth experience, create your campaign ahead of time so all you need to do is enable it.
From Add Product select the products you want to make a PERCS campaign with. Note: The sales channels need to be hidden
Give your PERC Campaign a name for administration purposes.
Verify that the products listed are the ones that will be gated or conflicting with other products
Select the PERCS type Allow access to product
From Usage limit per NFT > ****Select Limited redemptions > Set a Limit Note: This limit is set by the campaign and cannot be changed by the holder.
Select an Audience for your campaign
Add the appropriate Customer Messaging and Header Image URL
Below is an example on how to integrate and NFT redemption campaign to a landing page or a template section. You will need to create a product listing in draft state, add the redeem with NFT button and add a cart form on the landing page. There is a script that will also need to run to populate the selector and add the variant id on change for that selector.
You can modify the main-page.liquid include this line at the top
<script type="text/javascript" src="{{ 'nft-connect.js' | asset_url }}"></script>