Book Image

Magento 2 Development Cookbook

Book Image

Magento 2 Development Cookbook

Overview of this book

With the challenges of growing an online business, Magento 2 is an open source e-commerce platform with innumerable functionalities that gives you the freedom to make on-the-fly decisions. It allows you to customize multiple levels of security permissions and enhance the look and feel of your website, and thus gives you a personalized experience in promoting your business.
Table of Contents (18 chapters)
Magento 2 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with product types


In Magento 2, it is still possible to work with different types of products. The standard product is a simple product, which is used to sell basic products, but there are more types available, such as products, where you can choose a size and other options, or download products, virtual products (such as a license), and product combinations.

Getting ready

In this recipe, we will create a configurable product, for example, you want to buy a pair of shoes where you can choose their size and color. Open the Magento backend and navigate to Products | Catalog.

How to do it

In the following steps, we will create a product where we can specify a size on the product detail page:

  1. Navigate to Products | Catalog, click on the arrow near the Add Product button, and choose Configurable Product as shown in the following screenshot:

  2. Choose a name, SKU, and price for the product.

  3. The next step is to decide the attribute on which we want to configure our product. Scroll down through the...