How to create Product in Magento 2

Last updated on May 31 2022
Raghvendra Wanchoo

Table of Contents

How to create Product in Magento 2

Magento 2 has six different types of products, as we have already discussed in the previous section. We can add these products to our website.

  1. Create a Simple Product
  2. Create a Configurable Product
  3. Create a Grouped Product
  4. Create a Virtual Product
  5. Create a Bundled Product
  6. Create a Downloadable Product

To add these different products in our webpage, follow the below steps:

  • Login to the Magento 2 Admin Panel.

Create a Simple Product

To create the Simple Product, follow the below steps:

Step 1: At the left of the Admin Panel, Go to Catalog >> Product.

image1 7

Step 2: Click on the Add Product drop-down list and select the Simple Product.

image2 7
Step 3: Enter the product details which are required in the given fields and click on the Save button. We can directly add the product in a particular category by clicking on Category drop-down list and even create a new Category by clicking on the Category button.

image3 7

Step 4: The given product Power Bank is added to the Mobile Accessories category under Electronics. Similarly, choose the category of your product under which you want to add your new product and click on Done.

image4 7

Create a new category

  1. To create a new category for products, click on New Category.
  2. Enter the Category Name and select the Parent Category to determine its position in the menu structure.
  3. Click on Create Category.

It is difficult to create a category in the middle. So, create the categories of the product before adding the product to the website. See the previous tutorial for Product Category Creation.

image5 7

For the Simple Product, we need to fill the following details.

Product Enter the product name
SKU It is an identification number, through which we can exactly find a product using this code. We can use the default SKU.
Price The cost of the product to sell.
Tax Class Choose this box for the Taxable Goods, None or other.
Image & Video Upload the image or videos of the product.
Quantity Quantity of the available product in the store, choose the status to out of stock or in stock.
Weight Fill the weight of the product if needed.
Category Place the product in a suitable category, e.g., iron in the electronics category.
Description Describe the product that you want to sell. It helps the customer to understand more about the product.
Downloadable Information This field is for configurable or downloadable products only. So, it can be skipped while creating simple products.
Configuration

Step 5: Expand the Content section, where you can add a description for the product in the Description field. Add the description and short description here.

image6 6

Step 6: In the image and video section, we can add the image or video of the product. Expand the Image and Video section and click on Browse to find or drag the image here to add the image of the product. Select the images from your system and Save.

image7 6

Things to remember

  • Simple products can be included with the configurable, bundled, or grouped product types.
  • A simple product can have custom options with a variety of input controls that makes it possible to sell many product variations with a single SKU.

Create a Configurable Product

Here we will create configurable products based on the color attribute. To create the Configurable Product, follow the below steps:

Step 1: At the left of the Admin Panel, Go to Catalog >> Product, similar to the simple product.

image1 7

Step 2: Click on the Add Product drop-down list and select the Configurable Product.

image8 6

Step 3: Fill the product details which are required in the given fields such as product name, SKU, Quantity, etc. and click on the Save button. We can directly add the product in a particular category by clicking on Category drop-down list and even create a new Category by clicking on the Category button.

image9 4

Step 4: Mark the checkbox of the category under which you want to add your product, and click on Done.

image10 4

Note: Do not forget to add the product category.

Step 5: Expand the Content section, where we can add the description of the product in the Description field. Add the description and short description here.
image11 3

Step 6: For Configurable product, we can add the configuration. It allows the customers to choose different options (e.g., Jacket color). Explore the Configuration and click on Create Configuration.

image12 3

Step 7: Select the color attribute. You can also create other attributes if available for your product. Check the color and click on Next.

image13 3

Step 8: Click on Create New Value and add different colors available for your product. Check or uncheck the available color for your product and click Next.

image14 2

Step 9: Now, you need to configure the Image, Price, and Quantity of the product. Add the images of the product by attribute like color. We can choose any option as per our requirement. We either apply a single set of images to all SKU, unique image by attribute, or either skip it.

image15 1

Step 10: Summary of the product is generated here. Now, click on the Generate Products and move ahead.

image16 1

Step 11: Save the configured product from the top by clicking on the Save button. These products will be shown by selecting their attributes.

image17 1

Step 12: Expand the Image and Video section and browse or drag the image here of the product. We can use any image as a base image, which will be initially visible to the customer on the website before selecting the color attribute.

image18 1

Step 13: Click on the image you want to make the base image. A pop up will open where mark the Base option and get back to the previous page. Save the changes we made by clicking on the Save button. We will make the pink jacket as a base image here.

image19 1

Things to remember

  • A configurable product allows the shoppers to select the options from the drop-down.
  • The attributes which are used for product variations must have a global scope, and the customers have to choose a value.
  • The thumbnail image in the shopping cart can be set to show the image from the configurable product record, or from the product variation.

Create a Grouped Product

To create the Grouped Product, follow the below steps:

Follow Step 1 to Step 6 is similar to the Simple product. Firstly, add the product in the store database as a simple product, and then grouped products will be created.

Step 7: Click on the Add Product drop-down list and select the Grouped Product.

image20 1
Step 8: Fill the product details which are required in the given fields and click on Save. Note that the quantity field is not enabled because the value is already taken from the individual products, which make up the group.

image21 1
Step 9: Expand the Content section and provide a description of the grouped product.

image22 1

Step 10: Now, expand the Grouped Product section below the Content and click on Add Product to Group.

image23 1
Step 11: In the given list of products, mark the checkbox of each product which you want to add in the group. Then click on Add Selected Products as given in the below screenshot.

image24

Step 12: The selected items will be visible in the grouped product section, as you can see in the below screenshot. Enter the default quantity of the grouped product and Save.

image25

Click on the Remove option that is corresponding to the item, which you want to remove from the group.

Step 13: Expand the Image and Video section and click on Browse to find or drag the image here to add the image for grouped products. Select the images from your system and Save.

image26

Things to remember

  • A grouped product is basically a collection of simple products.
  • Each product purchased appears individually in the shopping cart instead of as a part of the group.
  • The thumbnail image in the shopping cart can be set to display the image from the grouped parent product or associated product.

Create a Virtual Product

To create the Virtual Product, follow the below steps:

Step 1: At the left of the Admin Panel, Go to Catalog >> Product, similar to the simple product.

image1 7

Step 2: Click on the Add Product drop-down list and select the Virtual Product.

image27

Step 3: Fill the product details which are required in the given fields such as product name, SKU, Quantity, etc. Click on the Save button and continue.

image28

Note that this item has no weight because the virtual product is not shipped. So, the Weight field is not enabled.

Step 4: Add the product in a specific category by clicking on the category drop-down list. If the category does not exist, then create a new category. Follow the steps given below for creating a new category.

Create a new category

  1. To create a new category of a product, click on New Category.
  2. Enter the Category Name and select the Parent Category to determine its position in the menu structure.
  3. Click on Create Category.

It is a bit difficult to create a category in the middle. So, create the categories of the product before adding the product to the website. See the previous tutorial for Product Category Creation.

image29

Step 5: Add the description of the virtual product. Expand the Content section and provide the description and short description of the product.

image30

Step 6: Expand the image and video section and insert the image of the product. Click on Save and continue.

image31

Things to remember

  • Virtual products are non-tangible products, which are not shipped, such as membership, subscription, warranty, etc.
  • These are much similar to the simple product but without weight.
  • The shipping option will not appear during checkout unless the cart contains a tangible product.

Note: The process of creating a simple product and virtual product is the same.

Create a Bundled Product

The selection of the options appears when the customer clicks either the Customize or Add to Cart button. Because the products that are included in bundle vary. The SKU, Weight, and Price can be set to either a fixed or dynamic value.

The below instructions take us through the process of creating a bundle product using required fields and basic settings. Each required field while creating any product is marked with a red asterisk (*). After finishing the basics, we can complete the advanced setting and other settings.

To create the Bundle Product, follow the below steps:

Follow Step 1 to Step 6, which is similar to the Simple product. Firstly add the product in the store database as a simple product, and then the bundle product will be created.

Step 2: Click on the Add Product drop-down list and select the Bundle Product.

image32

Note that there are some changes in the given fields to add bundle products, such as – SKU, Weight, Price, between fixed, and dynamic.

  1. Dynamic SKU can be assigned to each bundled product by adding a suffix to the default SKU. By default, Dynamic SKU is set to Yes.
  2. If you want to assign a unique SKU to each bundled product, then set Dynamic SKU to No.
  3. Similarly, to charge the fixed price for the bundle, set the Dynamic Price to No, and enter the price for the bundle.

image33

Step 3: Enter the required information in the given input fields and click on the Save.

image34

Step 4: Now, scroll down to the Bundle item section and set the Ship Bundle Items to one of the following.

  • Separately
  • Together

image35

Click on the Add Option and expand the fields to add options as given inside the Bundle Items at the right down corner, and do the following:

  1. Enter the option title and set the input type from one of the given options:
  • Drop-down
  • Radio Buttons
  • Checkbox
  • Multiple Select
  1. Mark the Requiredcheckbox to make the field a required entry.

image36

  1. Click on the Add Product to optionand select the products which you want to include in this option by marking the checkbox. If there are so many products, then we can use the filter and pagination control to find the product easily and quickly.
  2. After selecting the product, click on Add Selected Products.

image37

  1. The selected products will appear inside the Optionsection. Enter the quantity of each product that is added to the bundle and save.

image38
Step 5: In the image and video section, insert the image or video of the bundle product. Expand the Image and Video section and click on Browse to find or drag the image here to add the image of the product. Select the images from your system and Save.

image39

Step 6: On the frontend, the customer can select the item by marking the checkbox of the product. The price of the items will be added accordingly. Click on the Customize and Add to Cart at the frontend.

image40

Things to remember

  • Bundle products can be shipped separately or together.
  • SKU and Weight can be either Dynamic or Fixed.
  • The main thing about the bundle product is that the customer can “build their own” bundle product.
  • Bundle items can be virtual or simple products with custom options.

Create a Downloadable Product

To create the Downloadable Product, follow the below steps:

Step 1: At the left of the Admin Panel, Go to Catalog >> Product, similar to the other product.

image1 7

Step 2: Click on the Add Product drop-down list and select the Downloadable Product.

image41

Step 3: Fill the product details which are required in the given fields such as product name, SKU, Quantity, etc. Click on the Save button and continue.

image42

Note that this item has no weight because the downloadable product is not shipped. So, the Weight field is not enabled.

Step 4: Add the product in a category by clicking on the category drop-down list. If the category does not exist, then create a new category. Follow the below steps to create a new category.

image43

Create a new category

  1. To create a new category of a product, click on New Category.
  2. Enter the Category Name and select the Parent Category to determine its position in the menu structure.
  3. Click on Create Category.

image44

Note: To create the categories of the product before adding the product to the website, see the previous tutorial for Product Category Creation.

Step 5: Add the description of the downloadable product which you are going to add in your store. Explore the Content section and provide the description and short description of the product.

image45

Step 6: Expand the image and video section and insert the image of the product. Click on Save and continue.

image47

The process of creating a downloadable product till the Image and Video section is much similar to the virtual product.

Step 7: Now, scroll down to the Downloadable Information section and expand it. Mark the “Is this downloadable product?” Checkbox.

image46

The downloadable information section has two parts. The first part of the downloadable information section describes each download link, and the second part describes each sample file.

Complete Link

  1. Enter the Title that is used as a heading for download links.
  2. Marks the Links can be purchased separately checkbox if applicable.
  3. Click on the Add Link and complete the link.
  4. Enter the Title and Price of download.
  5. For both the File and Sample files, choose one of the following methods:
    • Upload File – Choose Upload File from the drop-down list to upload the distribution file to the server, and browse the file for upload.
    • URL – Choose URL to access the distribution file from a URL and then enter the full URL to the download file.
  6. Set Shareable to No, which requires the customers to log in to their account to access the download link. If Yes is set in Shareable, the customers can share the link with others through email.
  7. Enter the number of Max Download to limit downloads per customer otherwise, allow unlimited download by marking the Unlimited Checkbox.

image48

To add another link again, click on Add Link and repeat these steps.

Complete Sample

  1. Enter the Title that is used as a heading for the samples.
  2. Click on Add Link to complete the information for each sample.
  3. Do the same as the Link section and complete the Sample part.

Things to remember

  • The downloadable product can be uploaded on the server, or linked from another server on the internet.
  • We can determine how many numbers of times a customer downloads a product.
  • The customer, who buys a downloadable product have to log in before going through the checkout.
  • The delivery of a downloadable product can be done when the order is either Invoiced or in a Pending state.

So, this brings us to the end of blog. This Tecklearn ‘How to create Product in Magento 2’ blog helps you with commonly asked questions if you are looking out for a job in Magento Programming. If you wish to learn Java and build a career Java Programming domain, then check out our interactive, Java and JEE Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/java-and-jee-training/

Java and JEE Training

About the Course

Java and JEE Certification Training is designed by professionals as per the industrial requirements and demands. This training encompasses comprehensive knowledge on basic and advanced concepts of core Java & J2EE along with popular frameworks like Hibernate, Spring & SOA. In this course, you will gain expertise in concepts like Java Array, Java OOPs, Java Function, Java Loops, Java Collections, Java Thread, Java Servlet, and Web Services using industry use-cases and this will help you to become a certified Java expert.

Why Should you take Java and JEE Training?

  • Java developers are in great demand in the job market. With average pay going between $90,000/- to $120,000/- depending on your experience and the employers.
  • Used by more than 10 Million developers worldwide to develop applications for 15 Billion devices.
  • Java is one of the most popular programming languages in the software world. Rated #1 in TIOBE Popular programming languages index (15th Consecutive Year)

What you will Learn in this Course?

Introduction to Java

  • Java Fundamentals
  • Introduction to Java Basics
  • Features of Java
  • Various components of Java language
  • Benefits of Java over other programming languages
  • Key Benefits of Java

Installation and IDE’s for Java Programming Language

  • Installation of Java
  • Setting up of Eclipse IDE
  • Components of Java Program
  • Editors and IDEs used for Java Programming
  • Writing a Simple Java Program

Data Handling and Functions

  • Data types, Operations, Compilation process, Class files, Loops, Conditions
  • Using Loop Constructs
  • Arrays- Single Dimensional and Multi-Dimensional
  • Functions
  • Functions with Arguments

OOPS in Java: Concept of Object Orientation

  • Object Oriented Programming in Java
  • Implement classes and objects in Java
  • Create Class Constructors
  • Overload Constructors
  • Inheritance
  • Inherit Classes and create sub-classes
  • Implement abstract classes and methods
  • Use static keyword
  • Implement Interfaces and use it

Polymorphism, Packages and String Handling

  • Concept of Static and Run time Polymorphism
  • Function Overloading
  • String Handling –String Class
  • Java Packages

Exception Handling and Multi-Threading

  • Exception handling
  • Various Types of Exception Handling
  • Introduction to multi-threading in Java
  • Extending the thread class
  • Synchronizing the thread

File Handling in Java

  • Input Output Streams
  • Java.io Package
  • File Handling in Java

Java Collections

  • Wrapper Classes and Inner Classes: Integer, Character, Boolean, Float etc
  • Applet Programs: How to write UI programs with Applet, Java.lang, Java.io, Java.util
  • Collections: ArrayList, Vector, HashSet, TreeSet, HashMap, HashTable

Java Database Connectivity (JDBC)

  • Introduction to SQL: Connect, Insert, Update, Delete, Select
  • Introduction to JDBC and Architecture of JDBC
  • Insert/Update/Delete/Select Operations using JDBC
  • Batch Processing Transaction
  • Management: Commit and Rollback

Java Enterprise Edition – Servlets

  • Introduction to J2EE
  • Client Server architecture
  • URL, Port Number, Request, Response
  • Need for servlets
  • Servlet fundamentals
  • Setting up a web project in Eclipse
  • Configuring and running the web app with servlets
  •  GET and POST request in web application with demo
  • Servlet lifecycle
  • Servlets Continued
  • Session tracking and filter
  • Forward and include Servlet request dispatchers

Java Server Pages (JSP)

  • Fundamentals of Java Server Page
  • Writing a code using JSP
  • The architecture of JSP
  • JSP Continued
  • JSP elements: Scriptlets, expressions, declaration
  • JSP standard actions
  • JSP directives
  • Introduction to JavaBeans
  • ServletConfig and ServletContext
  • Servlet Chaining
  • Cookies Management
  • Session Management

Hibernate

  • Introduction to Hibernate
  • Introduction to ORM
  • ORM features
  • Hibernate as an ORM framework
  • Hibernate features
  • Setting up a project with Hibernate framework
  • Basic APIs needed to do CRUD operations with Hibernate
  • Hibernate Architecture

POJO (Plain Old Java Object)

  • POJO (Plain Old Java Object)
  • Persistent Objects
  • Lifecycle of Persistent Object

Spring

  • Introduction to Spring
  • Spring Fundamentals
  • Advanced Spring

Got a question for us? Please mention it in the comments section and we will get back to you.

 

0 responses on "How to create Product in Magento 2"

Leave a Message

Your email address will not be published. Required fields are marked *