Category Archives: coding

File Permission in Magento 2, OSX MAMP

I was struggling with file permission of Magento 2 in Mac’s MAMP. Finally got the solution. If I use _www I need sudo command for magento CLI which I did not want. otherwise every time I had to set 777 when delete all the temp files. so I set permission for user and group. It […]

How to find customers with attributes and user defined attributes in Magento?

In Magento, Customer model has an option addAttributeToFilter which helps to filter customers by attributes. For example, If We would like to get customers collections with group_id(Customer group) 3, we can use as following for user defined attribute is also same. Here customer_number is user-defined attribute: Multiple attributes also can used with “AND” Condition Following […]