I’m making Magento event observer, but Magento site doesn’t have very good documentation how events work or I jsut haven’t found those documents. How can I get customer details in event checkout_cart_product_add_after?
I’m making Magento event observer, but Magento site doesn’t have very good documentation how
Share
You can use the following code to get the current customers information:
If you want to know which methods you can then invoke on the object, you can use the
Example getting the name of the customer:
PS: Always make sure you check whether the customer is logged in: