Detail Page - check List needs to show image

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 2, 2014   (RSS)

By thenetgirl - April 1, 2014

Help Please

http://comfy.exedor.us/productDetail.php?3 - this shouldn't have a cool image

This is in my section editor

Type (values): <?php echo join(', ', $productsRecord['type:values']); ?><br/>
Type (labels): <?php echo join(', ', $productsRecord['type:labels']); ?><br/>

------------------------------------------------- This is what I put..it shows the images alright - all of them all the time no matter what I check -----------

<?php if (strpos($productsRecord['type'],"\tWarm\t") !== 1) : ?>

<img src="http://comfy.exedor.us/images/warm1.gif" border="0" width="47" height="47" ></a>
<?php endif; ?>

<?php if (strpos($productsRecord['type'],"\tSmell\t") !== 3) : ?>
<img src="http://comfy.exedor.us/images/smell1.gif" border="0" width="47" height="47" ></a>

<?php endif; ?>


<?php if (strpos($productsRecord['type'],"\tCool\t") !== 2) : ?>
<img src="http://comfy.exedor.us/images/cold1.gif" border="0" width="47" height="47" ></a>
<?php endif; ?>

thanks

Patricia

www.thenetgirl.com

By thenetgirl - April 2, 2014

Thanks so much Chris it works :-)

Patricia

www.thenetgirl.com