# "Free Shipping Over X" Note on Product Pages

> Shows a small free-shipping reminder under the price on product pages, with the threshold taken from your settings, to nudge bigger orders.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, shipping, product-page, conversion
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-free-shipping-product-note/

## Code

```php
$wpide_ship_note = array(
    'threshold' => 50,                                        // Free shipping threshold.
    'text'      => 'Free shipping on orders over %s',          // %s = threshold.
);

add_action( 'woocommerce_single_product_summary', function () use ( $wpide_ship_note ) {
    global $product;

    if ( ! $product instanceof WC_Product || ! $product->needs_shipping() ) {
        return;
    }

    printf( '<p class="wpide-ship-note">%s</p>', wp_kses_post( sprintf( esc_html( $wpide_ship_note['text'] ), wc_price( $wpide_ship_note['threshold'] ) ) ) );
}, 11 );
```

## Notes

Hidden on virtual and downloadable products; change the wording in $wpide_ship_note.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find ""Free Shipping Over X" Note on Product Pages" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
