News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Zip code validation on registration.

Started by tega, July 20, 2019, 03:32:14 AM

Previous topic - Next topic

tega

Hello,

I've looked everywhere and didn't find anything like this. I would like to force the users that register using vm registration page, to introduce the zip code on the exact format used on my country which is I xxxx-xxx (4 numbers a dash and 3 numbers). I know the regexp is \d{4}-\d{3} but I don't know where to put it. Ive found a similar post but was for VM2 to edit a file that doesn't exist anymore on VM3. Also found a lot of plugins and extensions but all of them what they do is check the zip code on the shipping methods.

Any suggestions?

Studio 42

Put a javascript in the cart view and you enable/disable the confirm button depending the validity of the ZIP code