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 …

Get country name from country code in magento

Posted by on May 22, 2015 in Magento | No comments yet
Get country name from country code in magento

When dealing with magento customization sometimes we need to get country name from country code. Its pretty easy to do so with a single line of code Magento has a model to manage the countries which is directory/country So first …

Import CSV File Into MySQL using LOAD DATA INFILE

Posted by on Feb 27, 2015 in General, MySQL, Php | 2 Comments

In this post we are discussing on how to use LOAD DATA INFILE statement to import CSV file into MySQL table. The following statement imports data from c:\tmp\data.csv file into the discounts table. The field of the file is terminated …

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 …

Load More