0

I need to know how to validate if certain region is selected and prevent placing orders.

The thing is that the carrier told us that certain regions are out of their services so if the customer select one of these regions, then the checkout will throw a validation error like "The carrier is out of service for your region".

I took this guide but I can't make it work: https://devdocs.magento.com/guides/v2.4/howdoi/checkout/checkout_order.html?itm_source=devdocs&itm_medium=search_page&itm_campaign=federated_search&itm_term=validation%20checkout

Appreciate your help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.