My client's store has two types of products - A and B. Products of type A are eligible only for delivery within a certain distance of their facility, and products of type B are eligible for both that same delivery and also UPS shipping. Both types of products are marked as shippable.
I've set this up easily with UPS and flat rate quotes with a conditional action based on zip code.
But I'd like some sort of error message in the shipping quotes box like "No valid shipping methods available" when a customer adds products of type A to their cart (products that cannot be shipped by UPS) and enters a zip code that is outside of their delivery distance (thus not matching any of the conditions set for either shipping method). Right now if a user proceeds to "review order" without any valid shipping options being displayed, uc_quote ends up calling form_set_error() and 'You must select a shipping option before continuing.' is shown in messages. This of course seems counterintuitive because there are no options to select for shipping.
Basically I'm just looking for a default error message to display perhaps somewhere in the quote box itself when no conditions are met for shipping.
Am I missing something obvious? I'd imagine this has been discussed at some point before, but I could not find anything.
Thanks!
Comments
Comment #1
tr commentedJust set up another flat rate titled "No valid shipping methods available", and configure a rule to show this method when type A products are in the cart and the ZIP code is outside your delivery zone.
Comment #2
end user commentedWon't that still allow the customer to check out since that flat rare is still a valid shipping quote. You can't trust a user to obey the message so this would require a custom solution to work properly to disable the checkout and or tell the customer to remove the item that is not shippable before they can proceeded with checkout.