![](https://static.goldenline.pl/user_photo_basic.jpg)
konto usunięte
konto usunięte
Kamil
Borkowski
smartmage.pl -
Magento! sprytnie...
$id_bloku_statycznego = 2;
$categories = Mage::getModel('catalog/category')->getCollection();
foreach($categories as $category) {
$category->setData('display_mode','PAGE')
->setData('landing_page',$id_bloku_statycznego)
;
$cat->save();
}
UPDATE `catalog_category_entity_varchar` SET `value` = 'PAGE' WHERE `catalog_category_entity_varchar`.`attribute_id` = 43;
UPDATE `catalog_category_entity_int` SET `value` = '2' WHERE `catalog_category_entity_int`.`attribute_id` = 44;
konto usunięte
Następna dyskusja: