Subscribe: Indianic Orange
Added By: Feedage Forager Feedage Grade B rated
Language: English
adapter  app code  app  array  attribute code  attribute  code  core mage  core  indianic orange  log  mage  magento  model  orange 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Indianic Orange

Indianic Orange

Just another weblog

Last Build Date: Sat, 10 Mar 2018 00:20:10 +0000


How to Create Custom Magento Module LogIndianic Orange

Sat, 01 Dec 2012 07:46:04 +0000

Wrapping it up in a class: class Nick_Module_Model_Log { protected $_adapter; public __construct() { $this->_adapter = Mage::getModel('core/log_adapter', 'my_module.log'); } // It's public incase we want to use ->debug(), ->info(), and friends public function getAdapter() { return $this->_adapter; } public function log($message) { $this->getAdapter()->log($message); } } Set up your own log adapter with: $my_log = Mage::getModel('core/log_adapter', […]

Media Files:

How to add custom field/attribute in magento category?Indianic Orange

Thu, 19 Jul 2012 10:11:33 +0000

Add custom Field/attribute to category using script in magento $setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’); // below code will add text attribute $setup->addAttribute(‘catalog_category’, ‘attribute_code’, array( ‘group’         => ‘General’, ‘input’         => ‘text’, ‘type’          => ‘varchar’, ‘label’         => ‘Attribute label’, ‘backend’       => ”, ‘visible’       => 1, ‘required’      => 0, ‘user_defined’ => 1, ‘global’        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, )); // below code […]

Media Files:

client denied by server configuration: app/etc/local.xmlIndianic Orange

Tue, 15 May 2012 06:45:20 +0000

client denied by server configuration: PROJECT_DIR/app/etc/local.xml It seems that magento is testing to see if the file can be accessed each time a page is loaded and alerts you to the fact that this file contains your MySQL database password is readable. So it is correct but seems odd that every page should check this […]

Media Files:

how to get order object by increment id?Indianic Orange

Tue, 15 May 2012 06:38:37 +0000

Hello,   We can get order object by increment id using following code: $orders = Mage::getModel('sales/order')   ->getCollection()   ->addAttributeToFilter('increment_id', 100000001)   ->getFirstItem();   Thanks, Bijal Bhavsar 🙂

Media Files:

How to do Mass Deletion of Coupon and Date ChangedIndianic Orange

Tue, 27 Mar 2012 12:57:08 +0000

Hello For Mass deletion of Coupon and change the “from” and “to” date in mass For that we have to copy the app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php into app/code/local/Mage/Adminhtml/Block/Promo/Quote/grid.php and following functions protected function _prepareMassaction() { $dateFormatIso = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT); $this->setMassactionIdField(‘rule_id’); $this->getMassactionBlock()->setFormFieldName(‘rule’); $this->getMassactionBlock()->addItem(‘delete’, array( ‘label’ => Mage::helper(‘rule’)->__(‘Delete’), ‘url’ => $this->getUrl(‘*/*/massDelete’), ‘confirm’ => Mage::helper(‘rule’)->__(‘Are you sure?’) )); array_unshift($da, array(‘label’=>”, ‘value’=>”)); $this->getMassactionBlock()->addItem(‘date’, […]

Media Files:

How to show the Exact searh result in MagentoIndianic Orange

Mon, 26 Mar 2012 05:43:26 +0000

Hello If you want to show the exact search reuslt for your products Two things need to be changed 1) In admin system->configuration->catalog->catlogsearch->Search Type Make it as Like 2)Just copy the fulltext.php file in local folder as given app/code/local/Mage/CatalogSearch/Model/Resource/Fulltext.php and just replace the above code foreach ($words as $word) { $like[] = $helper->getCILike(‘s.data_index’, $word, array(‘position’ […]

Media Files:

‘Mage not defined’ error in magentoIndianic Orange

Fri, 09 Mar 2012 05:22:38 +0000

js error Mage.Cookies.path var Mage not defined To resolve this issues you need to be sure that in head.phtml (app/design/frontend/default/default/template/page/html/head.phtml ) you have getChildHtml() ?> after getCssJsHtml() ?>. So it should look like: getCssJsHtml() ?> getChildHtml() ?>

Media Files:

To resolve ” Maximum length of attribute code must be less then 30 symbols” error in magento 1.6 above versionIndianic Orange

Thu, 23 Feb 2012 05:51:00 +0000

Hello, I found error ” Maximum length of attribute code must be less then 30 symbols” in magento 1.6 above version. To resolve this error, you simply change the constant value from 30 to 60. your-project/app/code/core/Mage/Eav/Model/Entity/Attribute.php CONST ATTRIBUTE_CODE_MAX_LENGTH = 30; I put the CONST ATTRIBUTE_CODE_MAX_LENGTH = 30; to 60, it resolved my problem. Hope this […]

Media Files:

How to add different toolbar template for bottom toolbar in listing page?Indianic Orange

Tue, 03 Jan 2012 04:37:57 +0000

Hello Everyone, getToolbarBlock()-> setTemplate('catalog/product/list/toolbar_bottom.phtml')->toHtml(); ?> The above code will display bottom toolbar from toolbar_bottom.phtml file. Thanks, Bijal Bhavsar 🙂

Media Files:

Product Export errors out Product.php on line 657Indianic Orange

Fri, 04 Nov 2011 05:30:54 +0000

Fatal error: Unsupported operand types in /public_html/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 657 Goto app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php Find, $dataRow += $stockItemRows[$productId]; Replace with, $dataRow = array_merge($dataRow,$stockItemRows[$productId]); Hope this helps anyone… vishal surani

Media Files: