Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter MTD

    (@espider)

    Hi Mike,

    Thanks a lot for your hint. I end up with this code which works great:

    add_action( 'woocommerce_before_shop_loop_item_title', 'show_free_shipping_badge' );
    function show_free_shipping_badge() {
            global $product;
            if ( $product->price > 30 ) {
                    echo '<span class="free-shipping">Free Shipping</span>';
            }
    }

    Also, I’ve been trying to show products based on price filter using short-code [products_by_price min=”100″ max=”300″]. This plugin works great except per_page limitation. Is there any simple solution to it? Thanks

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    You’d have to adapt that snippet since we don’t have products_by_price shortcode in core. You could add limit to the query it uses.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Free shipping label for all products from $100’ is closed to new replies.