How To Create Virtual Products in Magento 2
According to Magento docs,
The virtual product represents digital products or in other terms intangible items such as monthly or annual subscription, services, memberships, warranties.
Among these, virtual products are not physical or digital entries. They cannot be shipped or downloaded from the link. This is a great way to sell services or intellectual products.
This type of product does not need to be delivered at all and also don’t need any stock management! Virtual products can be used in association with grouped and bundle products also.
An example of Magento 2 Virtual product is support services, online language courses, technical service, insurance, reservation, online consulting or subscriptions.
Follow the below steps to create a virtual product in Magento 2
Steps to create virtual products in Magento 2:
- Login to admin panel
- Navigate to Catalog > Products
- Under the Add Product menu, select Virtual Product in the upper right corner.
Fill the below details after enabling the product:
- Attribute Set – Select the attribute set as default or create an attribute set.
- Product Name – Enter the product name
- SKU – Enter the SKU of the product. However, Magento takes the product name as the default SKU
- Price – Set the price of the product.
- Advanced Pricing
- Special Price – Enter the discounted price
- Special Price From & To – Set the start and end date of the discount availability
- Cost – The actual cost of the product
- Tier Price – The discount price offered to customers based on the customer group and website. Here, select the quantity and price for every customer group.
Categories – Assign categories to the product using Select box and choose the existing category or create a new one.
- Set Product As New From – Set the dates to feature the product as new.
- Description – Enter the main product description for displaying on the product page
- Short Description – Enter the short description, mainly for the RSS feed or product page, catalog page, etc
Configurable products allow customers to choose options. If you want to add configurations to the virtual product then follow the steps that Magento provides.
- Images and Videos
- Add images and videos to display on the product page using the popup or drag-drop functionality.
Click on the image to fill up the details like Alt Text and Role:
- Alt Text – Enter the content to describe the image or to display in the case when the image is not loaded.
- Base – Main image for the product page
- Small – Image for listings on category and search results pages, and for sections such as for Up-sells, Cross-sells, and the New Products List.
- Thumbnail – Images for thumbnail gallery, shopping cart, blocks like related items
- Swatch – Used to illustrate the color, pattern, or texture.
- Search Engine Optimization
- URL Key – Enter the URL key for the online address of the product
- Meta Title – Enter the title for the display in search results. The default meta title is based on the product name.
- Meta Keywords -Add relevant keywords for more visibility in search results.
- Meta Description – Enter the description of the product for display in the search results.
- Related Products, Up-Sells, and Cross-Sells – Used to promote other products in the store
- Related Products – Add products that are supposed to be purchased in addition to the item the customer is viewing.
- Up-Sells Products – Add products that are similar to the product that you are creating but probably higher quality
- Cross-Sells Products – Add products that are offered on the shopping cart page as last-minute purchases before the checkout process begins.
Customizable Options – Configure this option to offer customers a selection of options with a variety of text, selection, and date input types.
Products in Websites – Select the option where the product is available as per the store hierarchy. By default, for a single website installation, the website checkbox is marked.
- Layout – Choose a layout from the dropdown
- Display Product Options In – Select where the product options appear on the product page from the drop-down menu
- Layout Update XML – Enter XML code in case of customizing the theme
That was all about the steps to add virtual product in Magento 2
Once you follow the mentioned steps the appearance of the frontend will look like this!
If you need to create a custom product type, visit here.
I’d be happy to assist if you are stuck in the process so mention your doubts in the comments section below.
Do share the tutorial with beginners in Magento 2 via social media.