javascript validation foxycart

Closed

Hi I need to validate 2 fields on Foxycart checkout in javascript with alert message if it's wrong

1. Phone number (eg 5246579787) 10 digits without space

2. Postal code canadian format (eg.: H7E1R3)

Canada's Postal Code rules: Letters and numbers alternate for exactly six characters (eg L0S1E0)

here you have the anwser from foxycart helpdesk but I need help to fixe it

Hey Dominic,

1. Checkout validation:

It is possible to add your own validations to the checkout. You'd just need to add some javascript to your checkout template to watch the desired fields, check the input on change, and alert the customer in some way to note if it is invalid.

2. Limited country/state fields

This is possible too, and you can replace the text input with a dropdown using javscript, but you'd need to take note of what happens behind the scenes when someone changes the text input as it stands now to ensure that you set the values properly. Another option would be to limit the text autocomplete to just be Canadian states and only Canada as the country. You should be able to get a good start from threads on the following page: [url removed, login to view]

Something worth noting is that we don't provide custom programming for stores, but if you're looking for a programmer to help you achieve these things, we can definately recommend some developers to you that can help you out.

Thanks for contacting FoxyCart. We try to give every question or comment the attention it deserves, but please do let us know if your question hasn't been answered. Also please feel free to post in our forum at http://forum.foxycart.com.

Skills: Javascript

See more: watch-it-now, programming wiki, programming javascript, programming in javascript, programmer javascript, fixe it, developers javascript, definately, c programming wiki, foxycart validation dropdown checkout, foxycart validation, what is javascript, javascript what is, good docs, canadian numbers, canada numbers, i need a good custom programmer, Validation, stands, javascript validation, javascript to c++, javascript developers, it helpdesk, helpdesk it, country state

Project ID: #779634

Awarded to:

prodezyners

Hi, Please have a look at PMB. -Thanks, prodeZyners

$30 USD in 0 days
(6 Reviews)
3.3

5 freelancers are bidding on average $46 for this job

Ajz

ready to do this for you.

$50 USD in 5 days
(23 Reviews)
6.1
JJFreelancer

Please see PMB..

$30 USD in 2 days
(3 Reviews)
3.3
CCDeveloper

Can help you. Please contact me.

$63 USD in 0 days
(2 Reviews)
2.9
ashrafulni

Hi, JavaScript guru here !! lets start immediately. Thanks

$55 USD in 1 day
(1 Review)
2.6