Category: Magento 2

magento 2 get category by url_key 0

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

magento 2 compound primary keys 0

Magento 2 compound primary keys

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

Magento 2 programmatically reindex 0

Magento 2 – programmatically reindexing

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

magento 2 indexer error 0

Magento 2 indexer returns “No such entity”

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

Magento 2 plugin example 0

Magento 2 – Plugin example

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

magento 2 log messages 0

Magento 2 – Log messages

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

magento 2 use transaction to save objects 0

Magento 2 – use transaction to save objects

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

magento 2 add sales_order column 0

Magento 2 – add sales_order column

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