Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Как вывести значения атрибутов? 
 
NeoMurderer
Jr. Member
 
Total Posts:  6
Joined:  2011-04-15
 

Есть несколько атрибутов,как их вывести на страницу.
Выводил новости на главную так:

CMS > Страници> Home page и там вписал
{{block type="catalog/product_list" category_id="2" template="catalog/product/list.phtml"}}

Что в файл list.phtml вставлять?Пробывал

<?php echo $_product->getAttributeText('width'); ?>
показывает ошибку

Fatal error: Call to a member function getSource() on a non-object in /var/www/neo/data/www/svitok.pp.ua/shop/magento/app/code/core/Mage/Catalog/Model/Product.php on line 1258

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top