close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

jquery validation on form submit

Thread began 6/08/2016 10:24 am by bpitcher32 | Last modified 6/10/2016 10:39 am by Ray Borduin | 1788 views | 8 replies |

bpitcher32

jquery validation on form submit

Changed from spry to jquery validation for my checkout.php page. When an error is found an error popup appears to inform the user of an error. For example: zipcode is entered as xxxxx-xxxx. The 9 digit zip code does not compute a USPS shipping cost, only a 5 digit zipcode does.This problem usually occurs when the autofill is used on the form
Even though the error message is visible, when the submit button is clicked the the page is submitted and confirm2.php is added for customer to complete their credit card information - but - there are no shipping costs calculated. I am sure the problem lies in the form submit button but I have not been able to figure out the correct configuration. I have attached the checkout.php page for you. I would appreciate your guidance.

Thanks - Brian

Sign in to reply to this post

Ray BorduinWebAssist

Try dumping the session on a test page like:

<?php
@session_start();
var_dump($_SESSION);
?>

View source on the page to make it readable. Go through the process until the point where you would expect to see the shipping costs (confirm page) and then visit the test page in another window.

That should include any communication with your shipping service and any errors that might lead you to the solution. If you post FTP details and a URL to reproduce the problem I could take a look for you.

Sign in to reply to this post
Did this help? Tips are appreciated...

bpitcher32

Thank you for you prompt response.

Sign in to reply to this post

Ray BorduinWebAssist

I updated the paymentoptions.js file to better handle jquery validation changes. It should work for you now.

Sign in to reply to this post
Did this help? Tips are appreciated...

bpitcher32

Ray thank you. The error we were having is gone. The validation works correctly. Pressing the submit button does not override the error. The error must be fixed before the submit button works. BUT there is now a new error. After the form has been validated and the credit card information has been entered I get an error message from authorize.net. Code 270 - Line item 1 is invalid. Would appreciate you thoughts - Brian

Sign in to reply to this post

Ray BorduinWebAssist

What items did you have in the cart? This is usually an error with an invalid character in the item name. It worked in my test, but most likely because I had a different item in the cart. If you reproduce the error and tell me what item I need to add I can look into it further.

Sign in to reply to this post
Did this help? Tips are appreciated...

bpitcher32

I received the error when I tried to buy https://www.the-christening-corner.com/Product/Accessory/Catholic-Bible/?ID=345 which has an ampersand in the title. The purchase went through correctly when I tried to buy https://www.the-christening-corner.com/Product/Accessory/Catholic-Bible/?ID=343. Is an ampersand one of the invalid characters. What are the others and I will remove them from the titles of each item?

Sign in to reply to this post

Ray BorduinWebAssist

I think just ampersands... that was going to be my guess and it is the only one I know of offhand.

Sign in to reply to this post
Did this help? Tips are appreciated...

bpitcher32

Ray,
Thank you for all of your help. I will download the new paymentoptions.js file into my Dreamweaver local files and we will live "happily every after" hopefully.

Again thank you very much! Brian

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...