How can I restrict woocommerce products by state and city?

Question

I am building an eCommerce website where certain products should only be available in certain states in Nigeria. I am using WCFM Marketplace Plugin so it’s a multi-vendor system. But as an Administrator/Vendor I want to be able to restrict products from being bought by customers where it isn’t available.

For example, if I upload a bottle of wine and I restrict it to Lagos, only customers in Lagos should be able to order it. They may be able to see it but upon checkout, the system should prevent them from checking out once it detects that their shipping address isn’t Lagos.

Any ideas?

0
Patrick Aziken 2 months 0 Answers 18 views 0

Leave an answer