Originally Posted by
molywerks
Gillian -
My custom data is now running through Tabbed Products Pro, but from an old tpl_product_info_display.php file I found this line of code which shows the title in bold and the data in plain via my CSS file:
[FONT="Courier New"]
<?php if (!empty($product_info->fields['init_upc'])) echo '<tr><td class="detail-head">UPC » </td><td class="detail-copy">' . $product_info->fields['init_upc'] . '</td></tr>'; ?>[/FONT]
where init_upc is my custom data field, and I am 99% positive this did not show UPC » when there was no data value.
FWIW, in TPP, I have the following bit of PHP, which definitely does not show the title when there is no data value:
[FONT="Courier New"]
$fmtDOT .= (($flag_show_product_info_init_upc == 1 and !empty($init_upc)) ? '<li style="list-style:none;margin-left:-2.25em"><strong>upc</strong> ' . $init_upc . '</li>' : '') . "\n";[/FONT]
In the above example, like too many bits of hard-coded style values on my site, I have not yet converted it into CSS.
Bookmarks