"No valid shipping rates found for your order, and we require shipping service selection to complete checkout.
Please verify you have supplied all required information or contact us to resolve the issue."

This mesage always showing on checkout. I have testet different flatrates, ups and example services so if guess its an issue of this module. i tried beta1 and dev with no luck in combination with all flatrate versions.
I never ever saw any shipping opion on the checkout/xx/shipping page.

no luck since 2weeks

Comments

googletorp’s picture

Status: Active » Closed (cannot reproduce)

On a side note you should use 2.0.

This error you receive is because there is no matching shipping service found, either you didn't configure your shipping service correctly or didn't do it at all. A problem could be conditions in the rules not met, like requiring the user to ship to EU, but having entered an address in the USA.

guy_schneerson’s picture

This behavior is controlled by a variable that by default is set to FALSE but you for some reason have it set to TRUE see No user Interface (UI) for global shipping configuration

to turn it off you can add the following to your code i use hook_init()

 variable_set('commerce_shipping_pane_require_service', FALSE);
guy_schneerson’s picture

as @googletorp kindly pointed out this configuration is available on the checkout pane: admin/commerce/config/checkout/form/pane/commerce_shipping

summit’s picture

Hi, thanks for this valuable information!
Greetings, Martijn

lidia_ua 🇺🇦’s picture

Issue summary: View changes

I had this error because I added field_demensions and field_weight to Product display. It should be added instead in Variation types.

a.d2000’s picture

I am also getting the same issue. I enabled checkbox of "Require a shipping service at all times, preventing checkout if none are available.".

Configured Flat Rate but it is not displaying on frontend. If city is Colarado then apply Free shipping but it is not working. I can't see any shipping method.

Showing me error :"No valid shipping rates found for your order, and we require shipping service selection to complete checkout. Please verify you have supplied all required information or contact us to resolve the issue."

Please help me What can I do to resolve this.

theodorosploumis’s picture

For me the error was caused by a faulty code on a custom Shipping module.
The loop to get line items from current order was wrong (probably used an outdated code for commerce 1.x and not 2.x). The correct loop to get line items from an order is this:

foreach ($order_wrapper->commerce_line_items as $delta => $line_item_wrapper) {
  $line_item = $line_item_wrapper->value();
}

I suggest checking at any custom or contributed module that uses code to get line items from order inside a function.

defra_touch’s picture

Thanks @guy_schneerson, your solution worked for me!