Monthly Archive: March 2012

magento display attribute in dropdown 1

magento display attribute in dropdown

magento display attribute in dropdown Create a attribute and then edit app/code/core/Mage/Catalog/Block/Navigation.php public function getAllManu() { $product = Mage::getModel(‘catalog/product’); $attributes = Mage::getResourceModel(‘eav/entity_attribute_collection’) ->setEntityTypeFilter($product->getResource()->getTypeId()) ->addFieldToFilter(‘attribute_code’, ‘manufacturer’); //can be changed to any attribute $attribute = $attributes->getFirstItem()->setEntity($product->getResource());...

captcha alpha numeric in php 6

captcha alpha numeric in php

captcha alpha numeric in php <?php $RandomStr = md5(microtime());// md5 to generate the random string $ResultStr = substr($RandomStr,0,8); $im = @imagecreate(110, 20) or die(“Cannot Initialize new GD image stream”); $background_color = imagecolorallocate($im, 0, 0,...