Category: Magento 2

Magento 2 get current category 1

Magento 2 get current category

This is about how to get current category in Magento 2. Products are organized in Magento 2 and sometimes you need to know from of for which category you are executing PHP code. It...

magento 2 customize price displayment 1

Magento 2 customize price displayment

I show you how to customize price displayment for Magento 2. This is easier than in Magento 1, but you need to know  a few things before you are changing only part of price...

magento 2 change product status programmatically 2

Magento 2 change product status programmatically

This shows how to change product status programmatically in Magento 2. Sometimes you need to create scripts that mass activate or deactivate products by cron, so you need to know how to change a product...

magento 2 order payment method 0

Magento 2 order get payment method

This time I show you how to get your orders payment method. Sometime this is needed if you want to do different processes for orders payed with different methods. It is also useful for...

magento 2 get and set session values 0

Magento 2 get and set session values

In my last post I showed you how to get session objects, now it is time to get and set session values. For this we programmatically set some values to session objects and get...

magento 2 get session 1

Magento 2 get session

This time I show you how to get session programmatically from your Magento 2 shop. But before this can be done, we need to take a closer look on Magento 2 sessions . Magento...

magento gdpr save 0

Magento 2 GDPR save

How to make Magento 2 GDPR save? There is lot confusion about this topic and GDPR is highly discussed this days. Here are some hints about it and useful tips. Magento 2 GDPR save...

magento 2 get quote by id 0

Magento 2 – get quote by id

In this short tutorial I show you how to get quote by id in Magento 2. Sometimes this is needed to get all information related to a quote such as shipping or billing address,...