Sunday, October 2, 2016

Magento 2.0 - Display custom attribute on product listing page

In product list page you can display like this.
$attribute = $_product->getResource()->getAttribute('attribute identifier'); if ($attribute) { $brick_value = $attribute ->getFrontend()->getValue($_product); }