$categorymagento = Mage::getModel('catalog/category')->load(5);
echo $categorymagento->getName(); И так далееа вот получить польный список категорий в конкретном магазине??
25.03.2012 13:21
$categorymagento = Mage::getModel('catalog/category')->load(5);
echo $categorymagento->getName(); И так далее25.03.2012 14:29
$_main_categories=$this->getStoreCategories();
if($_main_categories)
{
foreach ($_main_categories as $_main_category)
{
if($_main_category->getIsActive())
{
....................................
}
}
}$_main_category->getName()??
25.03.2012 14:33
25.03.2012 14:42
Mage::getResourceModel('catalog/category_collection')->addAttributeToSelect('*')25.03.2012 15:04
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')
->addIsSearchableFilter()
->addStoreLabel(Mage::app()->getStore()->getId())
->setOrder('main_table.attribute_id', 'asc')
->load();
foreach ($attributes as $attributesSearchable)
{
$result[] = array(
'value' => $attributesSearchable["attribute_code"],
'label' => $attributesSearchable["frontend_label"]
);
}25.03.2012 15:14
25.03.2012 15:17
25.03.2012 16:38
$categ_atributs = Mage::getResourceModel('catalog/category_collection')
->addIsSearchableFilter()
->addStoreLabel(Mage::app()->getStore()->getId())
->setOrder('main_table.attribute_id', 'asc')
->load();
$temp = $categ_atributs.getData('Page Title');
или
$temp = $categ_atributs.getData('Description');25.03.2012 16:40
25.03.2012 16:50
public function toOptionArray()
{
$result = array();
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')
->addIsSearchableFilter()
->addStoreLabel(Mage::app()->getStore()->getId())
->setOrder('main_table.attribute_id', 'asc')
->load();
foreach ($attributes as $attributesSearchable)
{
$result[] = array(
'value' => $attributesSearchable["attribute_code"],
'label' => $attributesSearchable["frontend_label"]
);
}
$categ_atributs = Mage::getResourceModel('catalog/category_collection')
->addIsSearchableFilter()
->addStoreLabel(Mage::app()->getStore()->getId())
->setOrder('main_table.attribute_id', 'asc')
->load();
$temp = $categ_atributs.getData('Page Title');
return $result;
}Fatal error: Call to undefined method Mage_Catalog_Model_Resource_Category_Collection::addIsSearchableFilter() in /home/dev321/domains/dev321.kivi4us.com/public_html/app/code/local/TM/AjaxSearch/Adminhtml/Model/System/Config/Source/SearchAttributes.php on line 33
$categ_atributs = Mage::getResourceModel('catalog/category_collection')
->addIsSearchableFilter()
25.03.2012 16:52