woocommerce/templates/single-product/sale-flash.php

12 lines
264 B
PHP
Raw Normal View History

<?php
/**
* Single Product Sale Flash
*/
global $post, $product;
?>
<?php if ($product->is_on_sale()) : ?>
2012-01-05 11:31:22 +00:00
<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__('Sale!', 'woocommerce').'</span>', $post, $product); ?>
<?php endif; ?>