Support » Plugins » [Plugin: Woocommerce] Sale Bage Showing on Every Product Page

  • Resolved invot


    I was hoping someone can tell me why every product in my store suddenly claims to be on sale, regardless of weather or not the price is discounted. Where in the template files would this line of code be so I can test it? Anyone have the same problem? Anyone know what could cause this issue?

Viewing 5 replies - 1 through 5 (of 5 total)
  • So I discovered that the file is located at woocommerce/templates/single-product/sale-flash.php and everything there seems to be untouched and working fine… not sure if the function itself needs some adjusting. I’m off to figure that one out.

    <?php if ($product->is_on_sale()) : ?>
    	<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__('Sale!', 'woocommerce').'</span>', $post, $product); ?>
    <?php endif; ?>

    Well, there doesn’t seem to be a conflict with any other plugins. The function itself it also untouched. *sigh*

    Anyone willing to shed some light on this situation?

    Alright, figured it out. I’m unsure what caused the problem, but the solution seemed to be to remove all the sales from my store. Re-inserting them later seemed to have resolved this bug. Yay?

    This didn’t work for me. Every product still says sale. BUG.

    @stacy – posting in an old, already marked “resolved” thread is not a good way to get assistance on these forums. Please start a NEW thread if you want help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Woocommerce] Sale Bage Showing on Every Product Page’ is closed to new replies.