This is a sandbox project, which contains experimental code for developer use only.
Allows you to prevent shoppers adding items to their cart if they live in a particular postcode.
Utilises taxonomy to enable you to define shipping zones. Associate a shipping zone with your product that includes a valid postcode range and the add to cart form will be altered to include a field to prompt the user for their postcode.
Once entered the postcode is stored in their session/user account (can be cleared via a link).
If they enter a valid postcode, they can continue with checkout.
If not, they are redirected to a prefilled contact form requesting a quote.
- Core Taxonomy module
- Core Contact module
- Configure your contact form as normal.
- Setup a new vocabulary to track your restrictions.
- Give this vocabulary some terms, entering the restricted postcode ranges when you create each one.
- Tag the appropriate products with the appropriate terms.
- That's it
Please report issues via the queue.
Developed by Lee Rowlands of Rowlands Group.