·

Long reads

Sit back, grab a coffee and enjoy some of my more in-depth articles about stuff that moves me.

Responsible Templating in Magento 2

Just because you can do anything in a template doesn’t mean you should. Some of you might already know the S.O.L.I.D way of programming. If you haven’t, it’s really interesting stuff if you want to be a better programmer. And besides that, the S.O.L.I.D principles can be found throughout Magento 2. The S in S.O.L.I.D read further ...

Customer Tax and Discount Rules

Even though I’ve been working with Magento for some years now, the combination of discount rules and tax rules has always been some kind of mathematical mystery. In basic, there are 2 parameters: Apply customer tax before or after the discount. Apply discount rules on prices on prices including or excluding tax. The combination of read further ...

Magento 2 Pools

Magento 2 is packed with a lot of cool design patterns. Most of them you might already know, like dependency injection or interceptors, because they are well-known and well- documented. There are however much more design patterns in Magento 2 that are also worth using. One of these patterns that I use regulary in my read further ...

How to properly calculate FPT/WEEE on configurable products in Magento 2

Recently I stumbled on another nice ‘feature’ of Magento 2. When applying Fixed Product Taxes (FPT) in Magento 2, the functionality seemed a bit … broken. I was trying to apply different FPT’s on the simple children of a configurable product. A client of ours sells refrigerators and their models come in various sizes. We’ve read further ...

How my online identity got stolen

I’ve been blogging for a while now, so sometimes I get questions in my mailbox from people looking for some help. I never mind helping someone, and if the question is good, I even write an article about it. So when I got an e-mail a couple of weeks ago of someone looking for some help, I wasn’t read further ...

How I run unit tests in Vagrant, in Jenkins

As some of you might know, I use Vagrant to setup my local environment, and Jenkins for my continuous integration. One major part of this setup is to automatically run tests after Jenkins is done building – and before it deploys the website to the production server. In this article I am going to share with read further ...

Best practices when it comes to importing CSV files

I often have situations where I – as a web developer – have to link together two different applications. In many cases, this link is created by simply exchanging CSV-documents with an third party. Now when it comes to importing and exporting in PHP (or any other language for that matter) it’s important that you have read further ...

Ten days of Test Driven Development

  This is a story a of 2 developers who love their job. John is a passionate developer who likes to work punctual and precise. He loves test driven development because it gives him stability and guarantee in his work. He knows that it takes a bit more time and effort to setup, but he read further ...