Magento从filter.phtml获取属性代码

Cha*_*had 4 php magento

我试图从filter.phtml模板文件中获取属性代码.有没有人有任何想法如何做到这一点?

Dar*_*ren 17

$_item->getFilter()->getAttributeModel()->getAttributeCode()

上面的代码行可用于在循环中获取属性代码.