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