How To Create Virtual Products in Magento 2

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.How To Create Virtual Products in Magento 2 1
  4. 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.How To Create Virtual Products in Magento 2 2
      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.
    5. Tax Class – Select None or Taxable Goods
    6. Quantity – Enter the quantity of the products that are currently in stock
    7. Stock Status – Set the stock status accordingly. Here, the default value is In Stock.
    8. Weight – virtual product is not shipped, the Weight field is not used.
      How To Create Virtual Products in Magento 2 3
    9. Categories – Assign categories to the product using Select box and choose the existing category or create a new one.
      How To Create Virtual Products in Magento 2 4
    10. Set Product As New From – Set the dates to feature the product as new.
  1. 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
      How To Create Virtual Products in Magento 2 5
  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
  1. Add images and videos to display on the product page using the popup or drag-drop functionality.
    How To Create Virtual Products in Magento 2 6
  2. 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.
        How To Create Virtual Products in Magento 2 7
  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.
    How To Create Virtual Products in Magento 2 8
  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.
    How To Create Virtual Products in Magento 2 9
  1. Customizable Options – Configure this option to offer customers a selection of options with a variety of text, selection, and date input types.
    How To Create Virtual Products in Magento 2 10
  2. 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.

How To Create Virtual Products in Magento 2 11

  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

How To Create Virtual Products in Magento 2 12

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!

How To Create Virtual Products in Magento 2 13

That’s all! 

You can also refer to the video tutorial To Create Virtual Products in Magento 2 from our Magento 2 video tutorial series:
How To Create Virtual Products in Magento 2 14

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.


Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

(based on 13 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a reply:

Your email address will not be published.