Bignozzi

How to develop a Sticker plug-in for Magento 2: best practice

Direttore Tecnico Marketing Informatico
     

Abstract:

gb
Tech Talk

Case history: how to create a plugin that adds the classical label on product image in the different layouts concerning products (product page, category page, related products, upsell, cross-sell).

Aims:

1. To create two labels with different shape and position,
2. To have a divided graphic management of these labels,
3. To avoid linking labels to single products, but working on categories

We will focus on some issues that highlight the new mechanisms in Magento 2, compared to the usual procedures in Magento 1:

– Structure of folds and plugin files, different from Magento 1,
– Plugin registration, different from Magento 1,
– Use of dependency injection in M2,
– Core rewriting through ‘plugin’ in M2,
– Use of ‘RequireJS’ to load javascript in M2,
– Adding an ACL, different from Magento 1,
– Adding setting parameters and source models, similar to M1.

We will share technical choices, the problems we faced, the status of the documentation available online and the interaction with Magento community.

Michele Fantetti – Magento Developer will participate with Giorgio

Watch the speech.