We developers often need to disable specific payment methods in certain scenarios. However, we cannot disable those payment methods from the configuration because our website needs them in a different scenario. We will check how […]
Category: Magento 2
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 […]
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 […]
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 […]
