Web Development / Change No Shipping Options Were Found for WooCommerce Message

Change No Shipping Options Were Found for WooCommerce Message

Daniel Hudson, Web Developer
What are the best tools for project management blog feature image

You may find yourself needing to amend the “no shipping options were found” message for WooCommerce.

Unfortunately there isn’t a setting for changing the “no shipping options were found” in WooCommerce.

We’ll show you how to improve your WooCommerce web design by changing this message.

How do you change the “no shipping options were found for WooCommerce” message?

No Shipping Options were found for WooCommerce Code

You can add the code within the functions.php file, or whatever way you would usually add new functions to your theme.

To change the “no shipping options were found for WooCommerce” message, you need to add the following function into your theme:

function fp_update_no_shipping_message() {

return __( '<span class="c-cart__no-shipping-message">No shipping options were found</span>' );
}

add_filter( 'woocommerce_no_shipping_available_html', 'fp_update_no_shipping_message' );

add_filter( 'woocommerce_cart_no_shipping_available_html', 'fp_update_no_shipping_message' );

This can be done within the functions.php file, or however you choose to add new functions to your theme.

The function amends the message to whatever is inside the quotes within the “return” part of the function.

The great thing about this, is that you can amend this to whatever message you require.

You can also integrate it within a custom field so that it can be amended from within the WordPress admin area.

You’ll notice that we have added a <span> element around the text – this allows us to target it with CSS or JavaScript properly.

Another thing to note is that the message is displayed in 2 places, hence the 2 filters being added to amend it in different places.

Why would you want to change the “no shipping options were found for WooCommerce” message?

The default “no shipping options were found” message isn’t very clear to a site user.

As a result, we are often asked by our clients to amend this message to make it clearer, offer context and give the user some instructions on how to resolve the issue.

By giving the user some instruction on what to do, they are less likely to abandon their order.

Styling the message

One reason you might need to change the no shipping options message is to add some additional classes to the html. This gives you some more flexibility with the content and you’ll be able to target it with styles.

Out of the box, there isn’t a class around the content so you can’t directly target it with CSS or JavaScript, meaning you can’t style it.

That’s why we included a <span> element in the function we shared above, so you can style the message using CSS or JavaScript.

Heavy products

Whilst you can use a table rate plugin such as Flexible Shipping to show shipping prices, there will be a weight limit where you can’t offer standard shipping options.

Instead, you can change the “no shipping options were found” message to let customers know they should get in touch with you for shipping costs and options.

Minimum purchase requirements

If your online store requires a certain minimum order quantity or cost, you can amend the “no shipping options found” message to let your customers know they need to increase their order size.

By using a message like, “A minimum of 5 products is required for shipping”, you can both inform your customers on how to quickly resolve the issue, and help to boost your sales and AOV (average order value).

Individual shipping of products

If you sell unusual products that don’t come directly from your site, or require special delivery methods, you might need to inform your customers that they need to get in touch with you directly in order to arrange special shipping.

Adding a simple message to replace the “no shipping options were found” message, and some contact details for customers to get in touch is a great way to achieve this.

Changing the no shipping options were found message in WooCommerce

Now we’ve armed you with the why, the how and some examples for use, you can go ahead and change the “no shipping options were found” message on your WooCommerce site to give your customers more useful and contextual information.

You might be interested in other ways to customise WooCommerce, like how to delete all products in WooCommerce.