close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adjusting/Removing Validations from checkout.php, as located in confirm.cart.php

Thread began 7/09/2022 1:09 pm by yogastudents362523 | Last modified 7/18/2022 6:26 am by Ray Borduin | 359 views | 7 replies |

yogastudents362523

Adjusting/Removing Validations from checkout.php, as located in confirm.cart.php

Hello,

I have participants from potentially all around the world, and the validations in the fields Phone, State, and Postal Code are far too restructive (presently designed for USA criteria.

Should I simply comment those three lines out in "$WAFV_Errors" in confirm_cart.php (I tried that but must in that case have made some error).

Or may I plrease know where the function definition is located, so I can try to decipher the syntax and make the adjustments?

E.g. I am not sure to what the parameters in:

$WAFV_Errors .= WAValidatePN((isset($_POST["Phone_Number"])?$_POST["Phone_Number"]:"") . "",false,true,true,4)

are referring.

I also tried using

$WAFV_Errors .= WAValidateRQ((isset($_POST["First_Name"])?$_POST["First_Name"]:"") . "",true,1);

as a template for a "required" field, but that also did not seem to work for me.

Thank you,
KB

Sign in to reply to this post

Ray BorduinWebAssist

You should be using the Server Behavior to edit the validation. That has the options in the User Interface and will prevent typos.

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

yogastudents362523

I used the interface to alter the validations on phone number in confirm_cart.php to:

$WAFV_Errors .= WAValidateAN((isset($_POST["Phone_Number"])?$_POST["Phone_Number"]:"") . "",false,false,true,true,"+,.()",false,4);

so it was alphanumeric and would accept blanks, '+', and a couple of others.

I also adjusted the pattern statement to ""; but that did not work. I also tried deleting it altogethe which also did not work.

I currently have the situation that when I click submit the page refuses to advance so I can insert credit card information.

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

Give me a call when you have a chance and we can go through it over the phone to make sure everything works properly.

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

yogastudents362523

Thank you.
Teaching rest of today, & tomorrow AM.
Will try some time tomorrow PM
Thanks again
KAB

Sign in to reply to this post

yogastudents362523

Hello,

I got held up quite badly by a pupil of mine and could not try until Tues 5:05 pm.

I will try again Wed 10:00 am unless you send me a message otherwise.
Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

We were able to correct the phone number validation in a brief screen share. Let me know if you need help with anything else.

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

yogastudents362523

Thank you very much indeed.
I am sincerely grateful for both your products and all your assistance.

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