On magento 1.9, I could achieve this with this code
<a href="<?php echo strtolower ($manufacturerName = $_product->getAttributeText('manufacturer')) ?>.html"><?php echo $_product->getAttributeText('manufacturer') ?></a>
but don't know how to do for Magento2.
Can anybody help me?
Best Answer
Please make sure that you have assigned "manufacture" attribute to appropriate Attribute Set.
Also, select manufacture for the product as well.
You can get attribute text by using below code.
if
$_product
doesn't work for you then try below code to get product data.OR
Accept if this answer is helpful to you.