List.phtml:
<?php
$_productNameStripped = $block->stripTags($_product->getSecondName(), null, true);
?>
<h2 class="product name product-item-name">
<div class="brand-name"> <?php
$optionText = '';
$attr = $_product->getResource()->getAttribute('manufacturer');
if ($attr->usesSource()) {
$optionText = $attr->getSource()->getOptionText($_product->getManufacturer());
}
?>
<?php if($optionText){ ?>
<?php echo "" . $optionText . "<br>"; ?>
<?php } ?></div>
<a class="product-item-link"
href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>"
title="<?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_product->getSecondName(), 'second_name'); ?>">
<?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_product->getSecondName(), 'second_name'); ?>
</a>
Currently name is Empty in category product list. Any solution?
