We have created a custom field in the quote table and saved the value. This post will create a field in the sales_order table to save a custom. We are often required to save additional […]
Category: Customer
Magento2: How to Add Customer Address Attribute Using Data Patch
Let’s see how we can add customer address attributes programmatically using the data patch in this post. We have seen how we can add product attributes programmatically using the data patch in a the post […]
Magento 2: How to check customer is Logged in Knockout JS?
We have got logged-in customer id. We also have got logged-in customer id while Full Page Cache (FPC) is enabled. Now, we will explore how to check whether a customer is Logged in using JavaScript. […]
Magento 2: How to get current customer id while FPC is enabled?
We have tried to get customer id in post https://sbdevblog.com/magento-2-how-to-get-the-current-customer-id/ . However, we are not able to get customer details like customer id, Log-in Status of visitor because we are getting NULL value each time we […]
Magento 2: How to get logged in customer’s id?
We will check How to get logged in customer’s id? in this post. We need to read the customer sessions in order to get the current logged-in customer-id. This post shows you by reading customer […]