O'Reilly logo

Mastering Magento Theme Design by Andrea Saccà

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing a widget

The method of developing a widget does not differ much from that of developing a regular Magento module. In a few words, a Magento widget is a Magento module that generates admin add-ons, which you can easily insert into CMS pages or CMS blocks with simple actions.

We will start by creating a sample module that provides one simple widget.

The widget called Social Widget Icons outputs a block that includes the AddThis social sharing icons, the same sharing icons that we added in Chapter 6, Making the Theme Socially Ready.

The final frontend result is shown by the following screenshot:

Developing a widget

Creating an empty module

Let's start by creating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required