·

Magento 2

It’s one of the most used e-commerce solutions out there today. Here’s my 2 cents about it.

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 ...

Have a minute for the cron?

So here’s something you might already have stumbled into: Ever had the situation where you wanted a cronjob to run every minute, but it turned out it only ran every 15 minutes? Turns out this isn’t a bug, but rather a feature!read further ...

My visit to the Dutch Magento Unconference 2017

So last weekend I visited the Dutch Magento Unconference 2017. For those of you who don’t know what an unconference is: it’s like a conference, only the topics are not pre-determined; the topics are determined by the audience that attends an unconference. For example, if you want to talk about something, want to learn more read further ...

How to get the product price including and excluding tax in Magento 2

It seems like a simple task: get the price of a product in Magento including and/or excluding tax in Magento 2. I mean, how hard can it be? Well, to answer this question you must know that there are certain parameters in Magento 2 that determine the tax rate of a product: The configuration setting read further ...

Customer Sessions, the Depersonalizer and caching in Magento 2

So recently I had this task… To make a long story short: In Magento you can do every thing in ten different ways. One of the ways of solving my task was by adding a CSS class to the body-tag, but only when the customer is logged in. Now one of the cool things about read further ...

Add a Custom Renderer to the Webapi of Magento 2

So I recently asked an interesting question on Magento Stack Exchange, because I was running in a problem: I was given the task to export a plain TXT list with SKU’s and a status of some sort. I wanted to be cool and learn something new so I decided to utilize Magentos’ web API functionality read further ...

Source Models in Magento 2 and their configuration path

Hi there! Got Magento 2 open in your IDE? Good! Take a look at the <section id="sales_email">-node in the etc/adminhtml/system.xml of the Sales module. Notice anything… weird? Look at all the source models responsible for rendering e-mail templates. They all use the same source model: Magento\Config\Model\Config\Source\Email\Template. This might look weird at first. After all: when 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 ...

How to get the categories linked to a product in Magento 2

This might seem like a no-brainer at first. I mean, come on! We all know we can just do $product->getCategoryIds() and move on from there right? You know, create a collection and stuff… But beware! This is not ‘The Magento Way’ on how to do this. I’ve recently posted an interesting question on Stack Exchange, read further ...

1 2 3 4