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

Introduction


The Magento widgets system is a graphical interface where you can configure blocks in the frontend. For every widget, there is a configuration page available where you can set the required values for that widget.

With a Magento widget, you can configure the layout instructions to show the widget at several places in the frontend.

In this chapter, we will create a new module in which we will create our own widget. We will create a product slider with the products of a category that we can configure in that widget.

When we are done with the technical part (configuration page, block class, template initialization), we can finish with its representation in the frontend. We will create a product list that we will style with a jQuery slider script.