I'm trying to display some text IF
Product Type =
General. This edit is being made within a phtml file.
How'd I'd normally do it for a
Product Attribute called
<?php $_product = $block->getProduct(); ?> <?php if ($_product->getExample()): ?> <div> <p>Example</p> </div> <?php endif; ?>
I'd also like to know how that could be achieved by checking for an