Remove Decimals from Grid UI Component Columns

When displaying data within the grid UI component in the Magento 2 admin, there might be some data that is stored by Magento as a decimal and contains trailing zeros. You might want to remove decimals from grid UI component columns to display your data more neatly.
A classic example of this occurring is within …

Join Two Tables Using a UI Grid Component in Magento 2

Creating a fully functional grid using the data from your database table in the Magento admin is no easy task. In fact, it can become more complicated when you need to join two tables using a UI grid component in Magento 2.
If you added a grid component using the step by step guide, you’ve …

Magento 2 – Change Admin User Password Validation

In Magento, there exists a section within the Stores -> Configuration -> Customers -> Customer Configuration to control the minimum password length required when customers register an account on the Magento store. There is however no option to change the minimum password length for an admin user. To change admin user password validation in Magento …

Add a Form in Magento 2 (Step-by-Step Guide)

This post will provide a simple, easy to follow step-by-step guide on how to add a form in Magento 2, using the UI component functionality. This will also follow on from the Step by Step Guide to Adding a Grid.

The Magento application is in developer mode.
If you pause to view changes, …

Add a Grid in Magento 2 (Step-by-Step Guide)

This post will provide a simple, easy to follow step-by-step guide on how to add a grid in Magento 2, using the UI component functionality. To view further information about the file structure and why the functionality works as it does, view the UI Grid Component in Magento 2 article.

The Magento application …

Changing Grid Column Sort Order in Magento 2

When you add a UI component based grid, Magento will remember the positions of the columns when you next log in, even if you don’t specify a sort order. When you want to go about changing grid column sort order in Magento 2, it may not be as simple as you think.
Imagine that within …

Admin Changes in Magento 2

The admin area in Magento has always been extensive and the system configuration remains highly customisable. In recent versions of Magento, some of the information in the admin area has moved around! Here we show some of the admin changes in Magento 2.
One of the most notable changes when logging into the Magento 2 …

Magento 2 Admin Form

Continuing on from adding a UI Grid Component in Magento 2, here’s how to add a Magento 2 admin form.
To start with, add a controller for the ‘add’ post action. This will simply forward to the ‘edit’ controller action, as we can use the same functionality for both actions.
// app/code/Siphor/News/Controller/Adminhtml/Post/Add.php
namespace Siphor\News\Controller\Adminhtml\Post;

UI Grid Component in Magento 2

A new concept in Magento is the usage of UIComponents, which enables us to manipulate UI components using XML files. This article will provide a walkthrough involving the UI Grid Component in Magento 2.
To start with, set up your module by adding the module’s module.xml file.
// app/code/Siphor/News/etc/module.xml
<?xml version=”1.0″?>
<config xmlns:xsi=”” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”>

Add System Configuration in Magento 2

Many Magento modules require the ability to have configuration settings within the admin area so that the merchant can edit them to suit their needs. This article will show you how to add System Configuration in Magento 2.
If you’re familiar with Magento 1.x versions, you could add custom configuration by creating a system.xml and …