Place holder using javascript
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
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
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
Here’s the code snippet to find the difference between two dates
