Re: Help with UPC/ISBN Product Fields

Originally Posted by
Boatersplanet
I have to insert the following two lines:
<?php if (!empty($product_info->fields['products_upc'])) echo '<p>UPC: ' . $product_info->fields['products_upc'] . '</p>'; ?>
<?php if (!empty($product_info->fields['products_isbn'])) echo '<p>ISBN: ' . $product_info->fields['products_isbn'] . '</p>'; ?>
I have tried a few times and have been unsuccessful... so if there is any input I would appreciate it!
The code on the default template use a unordered list.. replace the <p> and </p> with <li> and </li> and place the code above the </ul> tag..
Code:
<?php if (!empty($product_info->fields['products_upc'])) echo '<li>UPC: ' . $product_info->fields['products_upc'] . '</li>'; ?>
<?php if (!empty($product_info->fields['products_isbn'])) echo '<li>ISBN: ' . $product_info->fields['products_isbn'] . '</li>'; ?>
Also, if the product field UPC or ISBN is empty, they wont show at all...
Dave
Always forward thinking... Lost my mind!