Home > Uncategorized > If and else statement on Attributes.phtml

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.