Our Blog

Create new order state and status programmatically in Magento 2

June 29, 2018 // by Dmytro Cheshun

All orders have an order status that is associated with a stage in the order processing workflow.
The state describes the position of an order in the workflow. By default, Magento store has a set of predefined order statuses and order state settings. All the available order statuses can be found in admin panel under Stores -> Settings -> Order Status. Sometimes we need to create a new order status and state. Let’s figure out how to create a new order state and status programmatically in Magento 2.

Comments (0)

Adding custom attribute to API response in Magento 2

May 29, 2018 // by Dmytro Cheshun

Magento 2 implements the service contracts design pattern – a set of PHP interfaces that are defined for a module. A service contract includes service and data interfaces, which hide business logic details from service requestors such as controllers, web services, and other modules.

Comments (0)

Refresh order grid table in Magento 1

September 19, 2016 // by Igor Furseev

Recently, we’ve faced a data inconsistency in the Magento sales_flat_order_grid db table. Some of the values in custom columns look like they were shifted. This issue may occur if the order grid has multiple custom fields and when a user archives orders in the Enterprise Edition.

Comments (6)

Adding SKU column to Magento orders grid

January 16, 2014 // by Volodymyr Vygovskyi

You can find several articles which are related to adding columns to Magento admin grids in Atwix blog. However, not everything is fully covered, and our readers keep asking how to add SKU, Products columns, etc. So, let’s take a closer look at this topic.

Comments (22)

PDF invoice in order confirmation email

December 20, 2013 // by Yaroslav Rogoza

As everyone who uses Magento knows, in most cases after each order, the customer receives an order confirmation email which contains some useful information about an order that has been just placed. However, sometimes, it would be great to provide some additional information alongside with an order confirmation – such as payment information. There are some ways in Magento for extending emails with custom info, but often they require a lot of time and deep technical knowledges. Let’s leave these ways for people who has an extra time and review the simple and fast way how to add an invoice information to the order confirmation email.

Comments (14)

Adding a column to Magento orders grid - alternative way using layout handles

January 28, 2013 // by Volodymyr Vygovskyi

In the previous articles (1, 2) you might find the way how to add custom column/attribute to adminhtml (orders, customers, ect) grid. But this is another example. In our article we will use the layout handles for inserting columns to the orders grid.

Comments (24)

Adding custom product attribute to quote and order items in Magento

January 3, 2013 // by Volodymyr Vygovskyi

If you are developer, adding custom product attribute to quote and order items in Magento is pretty common task. And if you face with the same issue we will be very glad when you find this article helpful.

Comments (33)

Grid filter for columns with complex values

December 10, 2012 // by Yaroslav Rogoza

In previous articles we told you how to operate with columns in adminhtml grids. Usually the process is quite fast, for example, if you want to add simple column from the database. But sometimes you need to add a column with complex value, processed by renderer. You say: “it’s not a big deal to use renderers…” Right, until you face with sort and filter..

Comments (30)

Adding sender's name to order comments in Magento admin

December 3, 2012 // by Volodymyr Vygovskyi

If there is more than one person who serves Magento orders you may want to be able to put sender’s name next to the comment. As you know, order’s comments are already implemented in Magento, so we are going to change it a little to have name of commentator inserted and display it automatically.

Comments (7)

Custom sort field for Magento products listing

July 11, 2012 // by Volodymyr Vygovskyi

Today we are going to change Magento default products displaying order. I mean “sort by” field and it’s direction. This article will show how to add a new sorting field, called “Date added” to the products list.

Comments (12)