Jump to content

Different address post code validation for billing and delivery address.


lpfernandes

Recommended Posts

I was wondering if anyone knows a solution in order to have a function that only allows certain post codes for the delivery address but allows all post codes for the billing address.
The reason for this is that I only deliver products to certain post codes but the customer should be allowed to have any billing address. I have managed to change the code of the file /classes/Validate.php in order to only allow a specif postcodes but I have no idea of how to restrict this validation only to the delivery address.

Thanks

Link to comment
Share on other sites

  • 4 months later...

Hi,

I've made an addon for that.
This module is linked to a transporter and limit deliveries for some post codes, this verification is only done on delivery address and not on billing address.
You can also prohibit subscription with the same method.

take a look at myowndeliveries.labulle.net for further explainations

38698_UTv3cMPcCCHgk4Uqderl_t

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...