O'Reilly logo

Magento 2 Development Cookbook by Bart Delvaux

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

Finalizing the theming

The frontend representation of the widget that we just created is not something that invites people to buy some products. It is just a list of the product names for a given category.

The last step of this chapter is to finalize the theming of the widget. We will create an HTML output that shows an image, name, and price of the given products.

With a jQuery plugin, we will convert the HTML output to a slider, so we can scroll through the products.

Getting ready

On the Internet, there are a lot of good JavaScript carousel plugins. In this recipe, we will use the following:

http://kenwheeler.github.io/slick/

For the code, we will build further on the things that are created in the previous recipes of this chapter. Ensure that you ...

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