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.

There are six product types in Magento 2:

  1. Simple Product
  2. Configurable Product
  3. Grouped Product
  4. Virtual Product
  5. Bundle Product
  6. Downloadable Product

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:

  1. Login to admin panel
  2. Navigate to Catalog > Products
  3. Under the Add Product menu, select Virtual Product in the upper right corner.

Fill the below details after enabling the product:

  1. Attribute Set – Select the attribute set as default or create an attribute set.
  2. Product Name – Enter the product name
  3. SKU – Enter the SKU of the product. However, Magento takes the product name as the default SKU
  4. Price – Set the price of the product.
  1. Advanced Pricing
    1. Special Price – Enter the discounted price
    2. Special Price From & To – Set the start and end date of the discount availability
    3. Cost – The actual cost of the product
    4. 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.

  1. Set Product As New From – Set the dates to feature the product as new.
  2. Content
    1. Description – Enter the main product description for displaying on the product page
    2. Short Description – Enter the short description, mainly for the RSS feed or product page, catalog page, etc
  1. Configurations

Configurable products allow customers to choose options. If you want to add configurations to the virtual product then follow the steps that Magento provides.

  1. Images and Videos
  2. 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:

  1. Alt Text – Enter the content to describe the image or to display in the case when the image is not loaded.
  2. Role
    1. Base – Main image for the product page
    2. 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.
    3. Thumbnail – Images for thumbnail gallery, shopping cart, blocks like related items
    4. Swatch – Used to illustrate the color, pattern, or texture.

  1. Search Engine Optimization
  1. URL Key – Enter the URL key for the online address of the product
  2. Meta Title – Enter the title for the display in search results. The default meta title is based on the product name.
  3. Meta Keywords -Add relevant keywords for more visibility in search results.
  4. Meta Description – Enter the description of the product for display in the search results.
  1. Related Products, Up-Sells, and Cross-Sells – Used to promote other products in the store
  1. Related Products – Add products that are supposed to be purchased in addition to the item the customer is viewing.
  2. Up-Sells Products – Add products that are similar to the product that you are creating but probably higher quality
  3. 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.

  1. Design
  1. Layout – Choose a layout from the dropdown
  2. Display Product Options In – Select where the product options appear on the product page from the drop-down menu
  3. 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!

That’s all! 

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.

Thanks.

Default image
Sagar Doshi
CEO / Managing Partner

An expert in his field, Sagar Doshi is the CEO and team leader in

meghrajtechnosoft.

His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover."

Articles: 26

Leave a Reply