Get customer by custom attribute in Magento

Posted by on May 27, 2015 in General, Magento, Php | No comments yet
Get customer by custom attribute in Magento

We can get customer by custom attribute in magento with a single line of code as shown below, Just pass the attribute name and the desired value In the above code username is the desired custom attribute and yourusernamehere is …

Send Email with Attachment in PHP

Posted by on Oct 5, 2014 in Php | No comments yet
Send Email with Attachment in PHP

In this post i am showing you how you can send email with attachment in php. For time being we are using a pdf file as attachment that created using FPDF. so first we need to create and sample pdf …

Check if file is an image in php

Posted by on Feb 20, 2014 in Php | 2 Comments

We can use the php’s inbuilt function getimagesize to get the informations about an file, including its type. While checking for the type we can can also check the file is image or not. So by using getimagesize we can …

Load product by attribute in magento

Posted by on Jan 23, 2014 in Magento | No comments yet

While generally we load a product in Magento by its id, it is also possible to load product by attribute in magento. To do that use the following code – Just replace ‘attribute_name’ with the name of the attribute and …

Load More