Magento 2 Cache Types Explained: Clean, Flush, Custom
What each Magento 2 cache type stores, the real difference between cache:clean and cache:flush, invalidated caches, and how to add your own cache type.
14 articles
What each Magento 2 cache type stores, the real difference between cache:clean and cache:flush, invalidated caches, and how to add your own cache type.
Add a custom condition to Magento 2 cart price rules: the combine event, a condition model with validate, promo rule attributes and performance traps to avoid.
Create a custom bin/magento command in Magento 2.4.8: registration in di.xml, arguments and options, area code, proxies, progress bars, locks and exit codes.
Create and send custom email templates in Magento 2.4: email_templates.xml, template syntax in strict mode, TransportBuilder, admin overrides and theme files.
Add a custom fee to Magento 2 with a quote totals collector: sales.xml, collect and fetch, cart and checkout display, copying it to orders, invoices and PDFs.
Build a custom payment method in Magento 2.4 using the Payment Gateway API: facade virtual type, config, commands and the checkout JS renderer, step by step.
When a custom Magento 2 product type is worth it, and how to build one: product_types.xml, type and price models, apply_to, inventory, indexing and GraphQL.
How to build a custom shipping method in Magento 2.4: config.xml, system.xml, a carrier model with collectRates, free shipping rules and external rate APIs.
Build a custom CMS widget in Magento 2: widget.xml parameters, block class, template, the widget directive, choosers, source models and caching the output.
Build a Magento 2.4.8 module from scratch: registration.php, module.xml, declarative schema, data patches, routes, view models and plugins, with working code.
Customize the Magento 2 invoice PDF: pdf.xml totals and item renderers, a preference for layout changes, fonts, logos and when to replace the PDF engine.
How plugins, observers and preferences work in Magento 2.4.8, what each cannot do, and a checklist for choosing the one that survives upgrades and extensions.
Add a custom filter to Magento 2 layered navigation: when an attribute is enough, how FilterList works, and a custom filter class backed by OpenSearch facets.
Step by step custom Page Builder content type for Magento 2.4: content type XML, edit form, preview and master templates, storefront output and pitfalls.