- Beranda
- Komunitas
- Tech
- Website, Webmaster, Webdeveloper
How to Get Customer ID Without Using Session in Magento 2


TS
meetanshi
How to Get Customer ID Without Using Session in Magento 2
Customer ID in Magento 2 is used to implement features that are assigned for specific customer groups.
Even the admin may require a customer ID to hide the signup button or display a discount offer that is only valid exclusively for logged in customers.
However, a Magento developer is required to get customer ID. But, here I’m going to provide you with an alternate solution to get customer ID without using session in Magento 2. Using these method helps avoid issues which are:
1. To return a null value for logged in customers.
2. Disable cache and thus reducing the page speed.
To get more information, you need to refer the article at: https://meetanshi.com/blog/get-customer-id-without-using-session-in-magento-2/
Even the admin may require a customer ID to hide the signup button or display a discount offer that is only valid exclusively for logged in customers.
However, a Magento developer is required to get customer ID. But, here I’m going to provide you with an alternate solution to get customer ID without using session in Magento 2. Using these method helps avoid issues which are:
1. To return a null value for logged in customers.
2. Disable cache and thus reducing the page speed.
To get more information, you need to refer the article at: https://meetanshi.com/blog/get-customer-id-without-using-session-in-magento-2/
Diubah oleh meetanshi 20-06-2022 10:55
0
125
0


Komentar yang asik ya


Komentar yang asik ya
Komunitas Pilihan