Я создаю свой собственный атрибут, но когда я показываю его своим методом, он не работает!
Смотрите, как сделать ... создайте мой атрибут ..
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
$config = array(
'position' => 1,
'required'=> 0,
'label' => 'Height',
'type' => 'int',
'input' => 'text',
'apply_to' => 'simple,bundle,grouped,configurable'
);
$setup->addAttribute('catalog_product', 'height' , $config);
и я получаю список предметов в кассе ...
$items = Mage::getModel('checkout/cart')->getQuote()->getAllVisibleItems();
foreach($items as $item){
echo $item->getSku() .'<br/>'; //just test... and all right!
echo $item->getHeight() .'<br/>'; //return empty! or....
echo $item->getData('height') .'<br/>';//return empty!
}
Я устанавливаю значения в полях этого атрибута в своем бэкэнде.
Спасибо за помощь!