close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

remove validation on checkout page for testing purposes

Thread began 5/27/2009 7:00 am by email377288 | Last modified 5/27/2009 11:21 am by Ray Borduin | 4532 views | 8 replies |

email377288

remove validation on checkout page for testing purposes

i am trying to test my configuration with the eWay payment gateway in australia, for this i need to enter credit card number 4444333322221111 along with other test details.

is there an easy way to remove validation so i can process the transaction with the invalid card number?

by simply deleting the validation code the checkout page no longer advances.

also eWay has a max 2 digit credit card year expiry field whereas the validation requires 4 digits and in australia, postal/zip codes are 4 digits whereas the validation requires 5.

is there any easy way to edit these figures, they appear to be referring to complex functions in the WAVT_Scripts_PHP.php file?

Sign in to reply to this post

Ray BorduinWebAssist

You don't need to edit any of the scripts files. All of the code to change validations is on the page.

It uses a combination of Spry and WebAssist Server Validation. If you own Dreamweaver you can update the spry validation using the DW properties inspector. If you own Validation Toolkit you can update the server validation using the server behaviors panel.

If you need to do it by hand all of the server validation code is on top of the page and can be commented out. All of the spry validation is on the bottom of the page and can also be commented out. The digit length of the validated field should be clearly visible as a "4" in both the spry and webassist server code associated with that form element. You should be able to simply update it to a "2".

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

email377288

updating the spry validation digits at the bottom of the page gets me past the client validation however i can't find the code to change the server validation digits.

i have tried opening the "!Validation Show If (confirm.php)" server behaviour but cannot see how to edit this data.

could you please point me in the right direction...

Sign in to reply to this post

Ray BorduinWebAssist

There is a server validation server behavior applied on the confirm page. That is where you would have to update the server validation since it has to appear on the page specified as the form action.

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

email377288

thanks for helping me track it down...

only problem is under Zip Code Validation there is no option for a 4 digit postal code! the validations are:

5 digit U.S.
9 digit U.S.
6 digit Canadian
UK postal code
or
allow blank entry

Sign in to reply to this post

Ray BorduinWebAssist

I think UK postal code will allow 4 digits.

You could also do number validation and/or entry length validation to get the exact validation you need if the zip code option doesn't match your needs. There is even a regular expression validation that would allow you to be very specific.

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

email377288

all boxes except allow blank entry were ticked so UK postal code must refer to something else.

i think i'll go with number validation and set min and max values.

cheers

Sign in to reply to this post

tom250037Beta Tester

Originally Said By: Ray Borduin
  There is a server validation server behavior applied on the confirm page. That is where you would have to update the server validation since it has to appear on the page specified as the form action.  



Ray,
You mentioned a server validation applied to the confirm page. Is this supposed to be done automatically in the checkout wizard?
If so, its not doing it for me, and it has been one of the feature requests for ecart that I have requested several times.

It would be great if the checkout wizard did this, and also on the checkout page, put something like <span class="required">Required</span> after each required element on the checkout page, wrapped in a show if not validated SB for that element.

Does that make sense?

Thanks!
Tom

Sign in to reply to this post

Ray BorduinWebAssist

The checkout wizard does not apply validation. You would have to add it with validation toolkit after applying the wizard. We are currently revamping how we work with forms to allow us to add this feature in the future. Thank you for the suggestion.

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

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