ERC721Community contract by buildship.xyz is used by 280+ collections with 1500ETH+ in total volume. It uses ERC721A, and has 40-100% lower minting gas fees, costs ~10-20$ in gas to deploy, bullet-proof security, and extensions like allowlists, funds/royalty splits, mint passes, etc.
Make sure your contract has price and mint constants. The possible namings are: mint, buy or mintXXX; price or cost.
Your Wix website is at least on a Connect Domain site plan (required to add custom code)
How to use?
Open Wix website editor
Go to your Wix Dashboard by clicking on Wix logo. Then open Settings -> Advanced -> Custom code, and click on "+ Add custom code" button
Dashboard Settings -> Advanced -> Custom code
3. Copy & paste this code in the Wix window, and select the "Body - end" option under "Place Code in".
Don't close the code window, we'll still need it in Step 4.
Your contract should be verified on Etherscan. Otherwise you have to add CONTRACT_ABI = [{...}] line in the above code, with your full contract ABI inserted. If you have an error saying your ABI is too long, click here.
5. Create a Wix button and insert your minting page link ending with /#mint-button.
<script>
CONTRACT_ADDRESS = "YOUR CONTRACT ADDRESS HERE"
IS_TESTNET = false
// if your contract is NOT VERIFIED on Etherscan
// put here: CONTRACT_ABI = [{...}]
// don't do anything if unsure
</script>
<script src="https://nftcomponents.vercel.app/static/js/main.js"></script>
<link href="https://nftcomponents.vercel.app/static/css/main.css" rel="stylesheet">