wpsc_product_on_special

Located in: Located in: product-template.php
Version Introduced: 3.8
Return: Boolean

Description: This condition is used to determine if the product is on special.

[php]
<?php if(wpsc_product_on_special()) : ?>
<p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e(‘Old Price’, ‘wpsc’); ?>: <span class="oldprice" id="old_product_price_<?php echo wpsc_the_product_id(); ?>"><?php echo wpsc_product_normal_price(); ?></span></p>
<?php endif; ?>
[/php]