How to add a new product (ERC-721)
Last updated
Last updated
We are now creating a product that should contain product variants and then be automatically minted as an ERC-721 token.
To do this, we go to TokenSuite -> Products → Create → Simple Product.
Under "Details," the following fields and options must be created:
The product must be "enabled." This is automatically the case.
The channel must be activated. You can active the channel of the product, when everything is setup for the product or even after minting. After activation the product will be visible in the FrontEnd.
The price and original price must be set.
The product name and description must be entered in both English and German.
The tax must be selected.
Save the product. The product will now be created in the system with the previous settings.
The next setting is to activate the inventory. To do this, select "Tracked" there.
Now also save the changes.
It is very important to select an image for the product (NFT) under Media Files.
💡 When adding a product image under "Media Files," make sure that the file name does not contain any special characters. The perfect file name looks something like this: **filename_additional_info.jpg**
We suggest to use .JPG or .PNG file format for the images of the product.
To do this, select an image and click on save changes.
Next step is to add metadata. For display on the website, fill out the nft_metadata
. The order should be maintained, and no new fields should be added.
Instructions for how to add MetaData:
A new product attribute must be created:
Code must match: edition_number_field_metadata
Text
not translatable
name doesn't matter
This attribute must be assigned in the product
In the metadata, a field such as "Edition Number": 0
can be entered at the desired location.
The name of this entry (Edition Number
) in exact spelling must then be entered as the value for the newly entered attribute.
This will then replace the 0 for the actual edition number in the metadata token.
If there are still documents in the product (e.g. asset content sheet), the corresponding PDF is stored under Documents and the document name must be entered in English and German.
💡 Note: It is unfortunately not possible to delete created customers, products or orders. Even if there is a button for it. If you do not want to show a product in the frontend, we recommend deactivating the channel in the product itself.
Really the final and concluding step, before making sure that all product information has been entered correctly and that images and metadata have been saved correctly, the edition is created and minted.
💡 **Edition Numbers has to entered BEFORE minting!!!**
If edition numbers need to be manually entered, follow this process BEFORE minting:
DO NOT select a SmartContract.
Set Edition to "auto".
Enter the number of available products in EditionSize. This does not refer to the size/quantity of the complete edition.
Edition Number Start automatically counts up starting from the entered number.
In the next step, call up "manage variants". The created variants are now visible.
Open a variant and under the EditionNumber field, an individual edition number can now be entered. Then save.
Once all individual edition numbers have been entered, switch back to the product display and go to "Token & Edition".
Here, select the corresponding SmartContract.
After saving, the minting process is started directly. You can switch back to Manage Variants and see the corresponding message per item there.
If you want to ADD more product variants, edit the edition number and mint - do the following:
Choose the product and edit it.
Go to "Token & Edition".
Go to SmartContract and select the existing SmartContract and leave it empty.
Enter the total number of available products (e.g. if the edition size was previously 10 and you want to add 5 more, enter 15)
Click on save.
.png)
Additional new product variants are now being created.
After approximately 2 minutes of waiting time, you can edit the individual variants via Manage Variants.
Enter the respective new edition number and click save.
When the new product variants are ready for minting, go back to the product “Token&Edition”.
Select the relevant SmartContract and click on save.
Now the minting of the new created variants has been initiated.
The Edition Settings are as follows:
Under "Edition", select whether the process should run automatically (=auto) or manually (=manual).
In case of "auto", the specified edition size is automatically generated with corresponding product variants. If a SmartContract is selected, minting is also automatically performed.
To do this, select the corresponding contract under SmartContract.
Choose "auto" for the edition setting. Choose an edition size such that the number of available products is created within the edition in the system. If desired, an edition number can also be incremented. The edition numbers can also be adjusted in the individual product variant.
Before minting, the product looks as follows in the overview:
After starting the process of product variations and minting, click on "Manage variants" in the product.
To access the individual product variants, we go to "manage variants" and then click on "list variants".
The status here shows "minting".
At this stage, the tokens have been successfully "minted".
For example, to check if the NFT is correctly available on https://polygonscan.com/, in our case on Testnet https://mumbai.polygonscan.com/, we copy the address of the contract.
Enter these in our tokenforge blockchain explorer https://ninja.tokenforge.tech/ or directly on https://polygonscan.com/ or https://mumbai.polygonscan.com/ (if TestNet).
Copy another TokenID that we want to verify.
The TokenID must be entered into the tokenURI. The result will then be displayed, and we will copy the hash value.
And add it for example under http://www.ipfs.io/ipfs/. Here we can now see the stored metadata and attributes.