Hi,
I have some products that can only be purchased online, not in store. As such I wanted to display an "Online Only" image on those product pages. Now, I have managed to add a (radio button) field to the database, get it to display in admin on the edit product page, get it to update the product and post it to the database, but I just can't get it to show on the product info page? It is a radio button selection, and you choose either yes or no for whether it is online only, it then posts 1 or 0 to the database. The code I have for the product_info template to display it is:
<!--bof Product is Online -->
<?php
if ($product_is_online != '1') {
?>
<div id="productOnlineOnly" class="productGeneral"><?php echo OTHER_IMAGE_ONLINE_ONLY; ?></div>
<?php
}
?>
<!--eof Product is Online -->
This displays the text OTHER_IMAGE_ONLINE_ONLY on all product pages regardless of the yes or no choice.
What am I doing wrong? I don't know too much about coding, I sort of copied the Call for Price function in Zen Cart and adapted it.
Any help would be greatly appreciated.


Reply With Quote

