Place holder using javascript

Posted by on Jan 13, 2013 in HTML, Javascript | No comments yet

By using javascript we can create placeholder which is compatible with the older browsers which didn’t support the new placeholder and here is the code on how we can do this

Get subcategories of a categories with images in magento

Posted by on Dec 14, 2012 in Magento | 4 Comments

Here is the code to show all the subcategories inside an category in magento Here 10 is the id of the parent category and to get the url for that category use You can also get the image of an …

How to add static blocks inside the phtml file

Posted by on Dec 10, 2012 in Magento | No comments yet

We can insert the static blocks inside an phtml file by using the identifier of the static block we created in the admin panel of magento Here is the code to do so, In this case identifier must be replaced …

How to find the difference between two dates using php

Posted by on Dec 2, 2012 in Php | No comments yet

Here’s the code snippet to find the difference between two dates

Load More