Is there a module available to restrict the shipping of the particular product for particular shipping zone(country)? so that the message would appear and cancel the checkout.
- Add a field in variant for shipping restriction countries
- Add a rule in with event Collecting shipping rates for an order
- Add a php condition to get the line items details from $commerce_order
- Check shipping restricted countries with shipping address countries in your php function
- Remove the product by commerce_cart_order_product_line_item_delete()
- Add an action to show the msg on site
I'm fairly certain there isn't a module that does this. You can build this with rules, but the effect will be very rudimentary.
Create a rule reacting to
- Checks for a particular product included in the order.
- Checks to see if a shipping address condition is met.
- For your action, display a system message.
- Set the status of the order to
That way you wouldn't be able to advance past the shipping status without having it fulfilled.
Not knowing your situation, cancelling an order is a bit extreme, but you could forward the user to a webform, change the status of the order to some new, internal value for review, or even just remove the product from the cart so that the customer can continue.