Zen Follower
- Join Date:
- Jun 2006
- Posts:
- 298
- Plugin Contributions:
- 0
Post #1 by abcisme
I'd like to append the product name with "ON SALE" if the product is on sale, or "SPECIAL PRICE" if the product is on special, or "NEW" if the product is new. Can anyone tell me what codes I would need to use if an item is on sale, on special or new?
What I want to do is this:
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?>
<?php IF PRODUCT IS SPECIAL { echo 'SPECIAL PRICE'; } ?>
<?php IF PRODUCT IS NEW { echo 'NEW'; } ?>
<?php IF PRODUCT IS ON SALE { echo 'ON SALE'; } ?>
</h1>
<!--eof Product Name-->