Magento 2 – get category by url_key
In this short tutorial I show you how to get category by url_key for your Magento 2 shop. This is sometimes needed if your shop already has a category tree and you want to...
A Blog about Magento e-Commerce System
In this short tutorial I show you how to get category by url_key for your Magento 2 shop. This is sometimes needed if your shop already has a category tree and you want to...
I recently tried to use compound primary keys in Magento 2. I got different problems with this and ended up with a solution, that is not optimal. In case of Magento, the only possible...
In this tutorial I show you how you can manually or programmatically reindexing your shop. This is sometimes necessary if you run a full product import with all data (products, categories, customers). Especially if...
You may discovered a weird error message, that Magento 2 indexer returns with “No such entity“. This sometimes happens if you create a clone of your shop and some SQL indexers went wrong. The problem:...
In this post I show you a Magento 2 plugin example. Plugins are a new way to extend core functionality without modifying core files. If you are working on a new Magento 2 extension,...
An important, but less good documented feature of Magento 2 is how to write and get config values by scope. You will find tons of code samples on how do this globally. Sometime you...
This post is about log messages from your Magento 2 system. As a developer, you should use logging as often as possible and you also should know what they mean. You can only understand...
In Magento 2 you can use transaction to save objects. This is a less known feature that is helpful, if you want to guarantee a valid state in your database. You can combine many...
In this tutorial I show you how to get simple products of configurable product. You may need this on frontend pages, if you want to display product information that is only stored in simple...
In this tutorial I show you how to add sales_order column with a custom attribute. Sometimes it is necessary to save additional information for your order. A good and simple place for such data...