Created
October 1, 2013 11:58
-
-
Save cfaria/6777358 to your computer and use it in GitHub Desktop.
Breadcrumbs in product always have category Magento
app/code/core/Mage/Page/Block/Html/Breadcrumbs.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL | E_STRICT); | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
$setup = new Mage_Eav_Model_Entity_Setup('core_setup'); | |
// below code will add text attribute | |
$setup->addAttribute('catalog_category', 'principal', array( | |
'type' => 'int', | |
'backend' => '', | |
'frontend' => '', | |
'label' => 'Principal', | |
'input' => 'select', | |
'class' => '', | |
'source' => 'eav/entity_attribute_source_boolean', | |
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, | |
'visible' => true, | |
'required' => false, | |
'user_defined' => false, | |
'default' => '', | |
'searchable' => false, | |
'filterable' => false, | |
'comparable' => false, | |
'visible_on_front' => false, | |
'unique' => false, | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment