Geniet van onze blogs
Onze nieuwste artikelen over Magento, Shopware, Vue, React en nog veel meer
Block Magento 2 sales per geographical region
March 25, 2022
I'm selling extensions (well, as of yet, only EmailTester2) and trainings (a lot). Once in a while, I find myself seeing an incoming sales order, for which I can't or don't want to provide support because of reasons: Spam, cancel-anything-behaviour, political incorrectness, whatever. In the past, I built the Yireo_SalesBlock2 for this. And in these times, I felt it would be good to mention its ability to block by geographical region.
Business as usual?
March 19, 2022
The war in Ukraine is lasting already more than 3 weeks. Russia invaded Ukraine because of reasons that seem far from realistic, they violate human rights on a daily basis and the number of reported war crimes climbs rapidly. Every day I turn on the news, the Ukraine tragedy dominates. So what happens on our side?
Inject dependencies into a Magento class ... without using a constructor
March 13, 2022
I found myself at a difficult position: There is this Magento class X that I would like to extend. But the constructor was huge: 20+ arguments. Therefore, creating an extend of the parent constructor would create a mess. I found a more innovative way to extend the class instead.
SearchCriteriaBuilder or SearchCriteriaBuilderFactory?
February 28, 2022
As soon as you're working with Magento 2 repository classes, you will bump into the SearchCriteriaBuilder
class. But should you just inject this class or should you inject a SearchCriteriaBuilderFactory
instead? Let's find out.
We, Magento, are Ukraine
February 24, 2022
Thursday, February 24th, 2022. Russia invaded Ukraine. The world news is focused on this crisis that already developed in the last weeks (or perhaps even years or decades). But now that war is upon Ukrainians, I felt it would be good to underline the Ukrainian connection with Magento.
A Magento 2 integration testing helper
February 16, 2022
In the past, I worked with Integration Tests frequently. In the past few months, my work on Magento modules fell behind a little bit. And instead of just working on new features (and fixing bugs) without tests, I decided to get my tests straight first. And instead of repeating myself, I found it useful to extract common scenarios in a separate module: Yireo_IntegrationTestHelper
.
Why create manual factories in Magento 2?
February 8, 2022
It is a question I saw somewhere on Slack: Why create a manual factory, if Magento 2 is generating one for you anyway? Well ... there's various reasons why this could be something you need to do. Let's go through a couple of those reasons in this blog writing.
My favorite browser extensions
January 28, 2022
I'm a Magento guy. And I'm a Shopware guy. And with that, both backend development and frontend development involve the browser on a regular basis. A proper development environment therefore not only involves a IDE, but browser extensions as well. Here is my favorite list:
Magento 2 Backend Development I on-demand training
January 16, 2022
To get started with Magento 2 backend development, you need to know a lot: Ranging from the setup of a development environment to working with DI configurations. For years, I've been training devs already through live training. But all of that material is now available to anyone, through a new Yireo On-Demand training: The Magento 2 Backend Development I on-demand training has gone live.