I'm new to magento 2. Correct me If I'm wrong in the title I've made for this thread.
I have a problem in my condition about a specific attribute for a product. I want to show a content when product attribute promo_banner is set to yes.
Here's my code:
<?php if ( ($parent_category->getParentId() == 40 ) && ($_product->getAttributeText('promo_banner'))) :?>
<div class="container">
<div class="row">
<div class="col-md-6 container-of-text-banner">
<label class="promo-banner-here">
Save when ordering case quantities!! Extra 20% Savings
</label>
</div>
</div>
</div>
<?php endif;?>
Thanks, MazeStricks