M

Suivez nous

Magento 2: Mastering Type and VirtualType in di.xml

Magento 2: Mastering Type and VirtualType in di.xml

One of the key pillars of Magento 2 is its Dependency Injection (DI) system.Thanks to it, the platform remains flexible and scalable. However, this system relies on a set of sometimes mysterious files — the famous di.xml files. These files contain the configuration...
Integrating reCAPTCHA into a custom form in Magento 2

Integrating reCAPTCHA into a custom form in Magento 2

For several years now, CAPTCHAs have become common on forms found across websites. The system has evolved significantly over time, up to the current version 3. Whereas in the past it was necessary to solve a visual test, reCAPTCHA V3 now works invisibly by analyzing...
Magento 2: Mastering Type and VirtualType in di.xml

Repository or Collection in Magento 2: when should you use them?

When handling entities in Magento 2, there are two main approaches available: using a Repository or interacting with a Collection. These two methods have very distinct uses. It is therefore essential to understand their respective objectives in order to avoid bad...