This is a pretty easy one, but it’s something that can come in very handy at times. Say you want…
Magento
In Magento, whenever you make changes to products, static blocks, etc, it recognizes that the data in the database is…
Somewhere around Magento 1.5, message from the title of this post begun to pop on every product save.Although quite anoying,…
Add the below code in the catalog.xml in the product view section <block type=”review/product_view_list” name=”product.info.product_additional_data” as=”reviews” template=”review/product/view/list.phtml”> <block type=”review/form” name=”product.review.form”…
Here is the code to get the cms block in magento front end. $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘blockidentifier’)->toHtml() In the editor you can simply…
below is the code to show magento pages in a drop down box <select name=”page”> <?php foreach (Mage::getResourceModel(‘cms/page_collection’) as $page){…
simply delete the files and folder from the var/cache folder and var/sessions folder and then try.It will work.
Get title <?=Mage::getSingleton(‘cms/page’)->getTitle()?> Get Identifier <? echo Mage::getBlockSingleton(‘cms/page’)->getPage()->getIdentifier()?> Get Page ID <? echo Mage::getBlockSingleton(‘cms/page’)->getPage()->getId()?>
Here is the code to add category filter on the product collection $productcollection = Mage::getModel(‘catalog/product’)->getCollection();$productcollection = $productcollection->addCategoryFilter(Mage::getModel(‘catalog/category’)->load($currcategory),true);$productcollection = $productcollection->addAttributeToFilter(‘special_price’, array(‘gt’…
Below are the 2 different way to display the product count in the category in magento. <?php $catObj = Mage::getModel(‘catalog/category’)->load($_category->getID()); $prodObj =…