Here, I will show you the code to get the most viewed products in Magento. The function addViewsCount() filters the…
Classic Blog List
There are some pages in Magento with no breadcrumbs enabled by default. In order to enable it, for example, on…
In order to create the menu a function need to be added. The function that will receive the ID of…
Magento Layered Navigation in Drop-Down It is very simple.We just need to replace the contents of file/app/design/frontend/default/your-magento-template/template/catalog/layer/filter.phtmlwith <select onchange=”setLocation(this.value)”> <option…
When reindexing “Category Flat Data ” gives error Cannot initialize the indexer process. I run the below query and the…
<?php$simpleProductId = 465;$parentIds = Mage::getResourceSingleton(‘catalog/product_type_configurable’) ->getParentIdsByChild($simpleProductId);$product = Mage::getModel(‘catalog/product’)->load($parentIds[0]);echo $product->getId(); // ID = 462 (aka, Parent of 465)?>
If you are building website in Magento, you may have noticed that there are two columns insales_flat_order table which are confusing….
//linked in like buttonhttp://developer.linkedin.com/plugins/share-button //twitter tweet button https://twitter.com/about/resources/buttons#tweethttps://dev.twitter.com/docs/tweet-button //facebook like button http://developers.facebook.com/docs/reference/plugins/like/ //google +1 button http://www.google.com/intl/en/webmasters/+1/button/index.html