Viranga's Blog
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); }
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)