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

Atributos personalizados no list.phtml e no view.phtml
 
diegoborba
Jr. Member
 
Total Posts:  7
Joined:  2011-04-22
 

Olá!

Estou com dificuldades em chamar novos atributos na página list.phtml.

Alguém já conseguiu fazer isso com a versão 1.5?

Para chamar no view.phtml funciona muito bem o : $_product->getResource()->getAttribute(’NOMEDOATRIBUTO’)->getFrontend()->getValue($_product).

obrigado pela ajuda.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sergio_suporte
Jr. Member
 
Total Posts:  23
Joined:  2011-07-22
 

Tente isto:

< ?php echo $_product->getData(\\\’nome_atributo\\\’); ?>

ou

< ?php echo $_product->geNomeAtributo(); ? >

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