Magento 2 Plugins: before, after and around Methods With Examples
How Magento 2 plugins work, with working before, after and around plugin examples, di.xml configuration, sortOrder rules...
Practical, tested-in-the-field articles from our Magento engineers: module development, Hyvä themes, Magento 2.4.9 upgrades, performance and technical SEO. Code follows current Magento and Hyvä standards.
Fix Magento 2 Content Security Policy violations with csp_whitelist.xml, understand report-only vs restrict mode on checkout in 2.4.7+, SRI hashes, inline scripts with $secureRenderer and Hyvä CSP.
Read articleHow Magento 2 plugins work, with working before, after and around plugin examples, di.xml configuration, sortOrder rules...
Create text and dropdown product attributes in Magento 2 with a data patch. Covers EavSetup options, attribute sets and ...
Add a custom GraphQL query to Magento 2: schema.graphqls, a resolver class, pagination arguments, input validation and f...
Create a custom REST API in Magento 2 with service contracts, data interfaces, webapi.xml routes, ACL resources and toke...
Create and change database tables in Magento 2 with db_schema.xml. Columns, indexes, foreign keys, whitelist generation,...
Build a Magento 2 admin grid with UI components: menu, admin route and controller, layout, listing XML, data provider vi...
Write secure, maintainable Magento 2 templates with ViewModels and $escaper. When to use escapeHtml, escapeHtmlAttr, esc...
Listen to Magento 2 events with observers: events.xml, ObserverInterface, area-specific events, dispatching custom event...
Build a custom bin/magento command in Magento 2 with Symfony Console: arguments, options, table output, proxies, area em...
Create a custom cron job in Magento 2 with crontab.xml, configurable schedules, custom cron groups, and learn how to ins...
Add store configuration fields in Magento 2 with system.xml: sections, groups, fields, source models, encrypted API keys...
Send custom transactional emails in Magento 2 with email_templates.xml, an HTML template, TransportBuilder, inline trans...
Add a custom customer attribute in Magento 2 with a data patch, show it in the admin customer grid and form, and on the ...
Create a custom Magento 2 module from scratch: registration.php, module.xml, composer.json, enabling the module, and a w...
Create frontend and admin controllers in Magento 2.4.9 with HttpGetActionInterface and HttpPostActionInterface. Includes...
Set up a Magento 2 multi-store: websites vs stores vs store views, creating them in the admin or CLI, Nginx routing with...
Install Magento 2.4.9 locally with Docker using DDEV or Warden: PHP 8.4, OpenSearch, MariaDB, Redis/Valkey and sample da...
Add a product or banner slider in Magento 2: Slick Carousel with RequireJS on Luma, and a lightweight, accessible Alpine...
Create a custom Magento 2 admin theme: registration, theme.xml with Magento/backend as parent, LESS overrides, applying ...
Our Magento 2 and Hyvä specialists are ready to help with your project.
Check on-page SEO, generate schema markup and estimate what a faster store is worth. Instant results, no registration.