Получить код атрибута в фильтре лаер навигации Magento.
В файле template/catalog/layer/filter.phtml добавим следующий код
$attributeModel = $this->getAttributeModel();
if($attributeModel) {
$attCode = $attributeModel->getAttributeCode();
}
$attCode — вернет код атрибута для фильтра