Creating a Custom Widget

Create a widget you can use anywhere in the Magento CMS!

A widget is a prepared snippet of code that can be used to place blocks, links, and dynamic content at specific locations on store pages. You can use widgets to create landing pages for marketing campaigns, display promotional content at specific locations throughout the store. Widgets can also be used to add interactive elements and action blocks for external review systems, video chats, voting, and subscription forms, or to provide navigation elements for tag clouds and image sliders.

– Magento Glossary

Since most of the Scandi presentation logic happens on the frontend, the CMS system is a little different in Scandi than default Magento. For this reason, you need to take a slightly different approach when developing a widget for Scandi.

In this example, we will create a newsletter widget. The CMS author will be able to add the widget anywhere and specify its title. Then, the customer will see the title and newsletter block on the frontend.

Last updated