Watch this tutorial to learn how to: Virtual Items.
Steps in this tutorial
- Welcome - virtual items let you sell license keys, gift cards, and other digital codes that get delivered automatically after payment.
- This is the Virtual Item Lists page. A list groups all the codes that belong to the same product.
- Click New Virtual Item List to create your first list.
- Give the list a clear name. We will call it Steam Game Keys for this demo.
- The Encrypted option encrypts the codes at rest. It can be set only when you create the list, so think carefully - we will leave it off for this demo.
- Click Create to save the new list.
- The list now exists, but the Available badge shows zero - there are no codes inside it yet.
- This is the Virtual Items page where each individual code lives.
- Click New Virtual Item to add the first code.
- Pick the list this code belongs to.
- Enter the code customers will receive - and an optional Info note for your own records.
- Use Create & create another to immediately add the next code.
- Add a second code so we have stock for more than one customer.
- Two codes are now in the list, both still marked as unused.
- Back on the lists page, the Available badge has turned green and shows two.
- Now create the product customers will buy. Fill in a name, pick a category, set the price, and add an image.
- Switch to the Sales & Discounts tab - that is where you link a product to a virtual item list.
- Pick the Virtual Item List. Every purchase of this product will claim one unused code from this list.
- Click Create to save the product.
- Now switch to the storefront as a customer - the admin account works as a customer too, so we can keep using the same session.
- Find the new digital product and open its page.
- Click Add to Cart to add the digital product to your cart.
- The product is in the cart. Let us proceed to checkout.
- Click Continue to Checkout to start the order.
- Fill in the contact and address details so the order can be placed.
- Click Continue to Payment to choose the payment method.
- Choose Payment on Delivery so we can finish the order without an external gateway.
- Click Confirm Order to commit the COD order so the merchant can fulfil it.
- The order is placed - but notice payment has not been recorded yet, so the code stays locked in the list.
- Open your Orders page to find the new order.
- Click into the order to see its details.
- There is no Virtual Items / Codes section yet - the system holds the code until payment is confirmed.
- Switch back to the admin orders list to record the payment.
- Open the row actions menu to find the Mark as Paid action.
- Click Mark as Paid to record the payment for this order.
- Confirm in the modal - this is the moment the system claims one virtual code from the list and attaches it to the order item.
- Payment recorded - the order is now paid and a code has been claimed for the customer.
- Back on the lists page, the Available badge has dropped to one - that is our claimed code.
- Reload the customer order page - a Virtual Items section now appears with the delivered code.
- Here is the code, ready for the customer to copy and use.
- You have seen the full virtual items lifecycle: codes loaded into a list, linked to a product, claimed automatically when payment is confirmed, and delivered to the customer immediately.