close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart - "invalid Zip code"

Thread began 3/12/2011 2:51 pm by thetypehouse | Last modified 3/14/2011 9:02 am by thetypehouse | 1882 views | 4 replies |

thetypehouse

eCart - "invalid Zip code"

Hello

Not sure if this is in the right forum - if not, apologies!

On submitting the checkout page for this site
kelpiejewellery.co.uk/
I'm getting a Zip Code validation problem. I've tested both UK and USA addresses.

This is a little worrying as the site has just gone live.
I did extensive testing before the site went live, and everything was working fine. I launched it this evening (this simply involved moving the domain to the new hosting package where the files had been uploaded for testing purposes), and processed another order (just to make sure!) and discovered the error.

I'd be grateful if you could help me find out what's wrong, before someone tries to place an order and fails at this hurdle.

I've attached the checkout.php page for info.

The page no longer appears to validate, although I'm sure it did previously. Maybe the W3.org validator is still looking at the old file location...

Many thanks in advance!
Alistair

Attached Files
checkout.zip
Sign in to reply to this post

thetypehouse

Update: The page now validates XHTML 1.0 Transitional, as I knew it should.

But still no joy with the OP issue, i.e. why the Zip Code entry doesn't pass server validation.

Sign in to reply to this post

thetypehouse

I've removed the section "WAValidateZC(document.getElementById('ecart_checkout_form').firstname,'- Invalid zip code',true,true,true,true,'',document.getElementById('ecart_checkout_form').firstname,0,true);" from the form, in order to allow the checkout form to function.

I'd still like to get this working properly though.

Any ideas?
Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

this code:
WAValidateZC(document.getElementById('ecart_check out_form').firstname,'- Invalid zip code',true,true,true,true,'',document.getElementBy Id('ecart_checkout_form').firstname,0,true);


is applying zip code validation to the firstname form field, not the zip code form field.

Sign in to reply to this post

thetypehouse

Thanks, Jason.

I'd seen that the code referred to firstname, but wasn't sure about what to do, and didn't want to break it any more :-)

It now works fine. And I've learned some more too!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...