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 […]
Tag: Custom Module
1 min read
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 […]
2 min read
Magento 2: Add default Qty while editing product from admin
Very often, we need to reduce the work of the admin. This post shows the code to add the default QTY while creating or editing products on the admin side. We can see the default […]
1 min read
Magento 2: Create Custom Attribute Set Using Data-Patch
We often need to create a custom attribute set using the data-patch. Since Install Data & Upgrade Data have been deprecated and the Data patch has been introduced. We need data patches to create EAV attributes as […]
