close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout Page validation error (UK Counties)

Thread began 6/13/2009 5:36 am by mousework50137 | Last modified 6/17/2009 2:06 pm by Ray Borduin | 5530 views | 11 replies |

mousework50137

Checkout Page validation error (UK Counties)

Hi,
I have edited the dropdown menu that was US States to UK Counties.
I am now having a problem when a user tries to checkout.
The page is submitted and returns to the Counties dropdown as if it wont except a selection from the list.
I presume this is to do with validation.
it happent in both the billing and shipping information areas.
It happens whether you are logged in or just entering data.

My site is at www.blueknightlearning.com

I posted a support ticket and forwarded my checkout.php and confirm.php files as requested.

The reply was
It appears there is a bug in the code for the function WAValidateRQ in the most recent version of validation toolkit when doing client validation on a select list.
The code:
if (formElement.length) formElement=formElement[0];should be:
if (formElement.length && inputType.toLowerCase()!="select") formElement=formElement[0];

However I have trawled through all the code in dreamweavers code view in both these files, but can't locate where I make this alteration.

Can someone please point me in the right direction,

Thank
Mark

Sign in to reply to this post

Ray BorduinWebAssist

I can't seem to get to that web site to try to view the problem. The answer was incorrect since that code isn't used in the powerstore. They probably mis-diagnosed your problem.

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

mousework50137

Originally Said By: Ray Borduin
  I can't seem to get to that web site to try to view the problem. The answer was incorrect since that code isn't used in the powerstore. They probably mis-diagnosed your problem.  


Hello Ray,
thanks for taking a look, site seems ok at www.blueknightlearning.com/
does take a second to load on a shared platform with Fasthosts.
Best Mark

Sign in to reply to this post

Ray BorduinWebAssist

It looks like it may be an issue with the field names.

You have "UserState" and "UserState2" as the form elements.

I believe they should be: ''state_province" and "shipping_state_province"

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

mousework50137

Thanks Ray,
I presume I need to change these just in the Dreamweaver properties Inspector or do I need to alter in the Server behaviors also.

ie In server behaviors, Dynamic list/menu (state_Province), it says

select value equal to
<?php (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState']) ?>

best
mark

Sign in to reply to this post

Ray BorduinWebAssist

It should be something like:

<?php (isset($_GET['valid'])?ValidatedField("confirm","state_province"):$row_ WAATKusers['UserState']) ?>

Remember it is case sensitive.

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

mousework50137

Hello Ray,
Seems to be better now, in that the counties remain after the checkout button is pressed but it just returns to the checkout.php page and does not process the transaction.
I have changed the globals file by adding in my API details and set it to take transactions but it just seems to loop back to checkout.php.

After hitting the checkout button I see at the top of the browser window..

checkout.php?valid=false

Thanks for anticipated help
mark

Sign in to reply to this post

Ray BorduinWebAssist

That means that one of the fields being validated is still not named correctly... You should see a red error message next to the incorrect field.

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

mousework50137

I have gone all through the files and still cannot see the error.
Nothing is indicated in red on the web page.

Sign in to reply to this post

Ray BorduinWebAssist

If you write the error session variable to the page it will show you the error number.. then you can look up which error it is in the validaiton code. If you posted some sample code I could give you the syntax.

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

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