If and else statement on Attributes.phtml
<?php if ($_product->getData(‘title_info’)): ?>
<?php $_title_info= $_product->getResource()->getAttribute(‘title_info’)->getFrontend()->getValue($_product); ?>
<?php if ($_title_info==”upac-videos”): ?>
<p>Videos shown below also may also show operation with the optional <a href=”/pac-hdrt-hd-radio-tuner.html” title=”optional HDRT HD Radio Tuner”>HD Radio</a> or <a href=”/scc1-sirius-connect-tuner.html” title=”optional SCC1 Sirius Connect Radio Tuner”>Sirius Radio Tuner</a>. If you do not want the HD/Sirius Tuner, you can use the included aux input instead.</p>
<?php else:?>
<?php echo $_product->getVideoTitleText() ?>
<?php endif;?>
<?php endif; ?>
Advertisement
Categories: Uncategorized