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
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
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
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 …