Customers

Customers with an empty Date of Birth cannot be saved

A core Magento bug that developers are stumbling across recently is the issue involving records involving customers with an empty Date of Birth cannot be saved in the admin.
When attempting to save a customer within the admin, and having not filled out the optional Date of Birth field may result in the following error …

Add a Login Popup in Magento 2

Rather than redirecting customers to a login page, many merchants favour showing a login popup enabling the user to login without having to navigate away from the current page. To add a login popup in Magento 2 requires knowledge of JavaScript and layout usage in Magento.
Magento already contains a vendor/magento/module-customer/view/frontend/web/js/model/authentication-popup.js file, which is used …

Add Customer Layout Handles in Magento 2

Magento 1 provided the useful ability to add layout updates depending on whether the customer was logged in or out of their account. For some reason, Magento 2 does not contain these layout handles by default. Below will describe the steps needed to add customer layout handles in Magento 2.
To start with, add a …

Link Magento 2 Guest Orders to Customer Accounts

In newer Magento versions, there is the ability for customers to create an account after they have placed an order as a guest. This allows the customer the ability to track their order. There might be times where customers have placed orders in the past as guests and have only recently registered an account with …

Add Customer and Customer Address Attributes in Magento 2

Sometimes the default attributes provided by Magento might not be enough. Here we explain how to add customer and customer address attributes in Magento 2.
If you have followed the post on how to add category attributes, you will know that Magento 2 uses the InstallData class.
This is no different to adding customer-related attributes, …