Display icon if product is virtual or downloadable
-
So I’m trying to display an icon on the product page that will let customers know if a product is downloadable or virtual. At first I thought a simple php ‘if’ statement like the one below would suffice, but it doesn’t work lol
<?php if ($_product->is_downloadable('yes')) { echo "<img src='downloadable.png'>"; }else{ echo ""; } ?>
Any advice on this would be greatly appreciated 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display icon if product is virtual or downloadable’ is closed to new replies.