close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

International Shipping - checkout form is validating state field for an entry

Thread began 4/27/2017 11:52 am by cal114936 | Last modified 4/28/2017 11:39 am by Ray Borduin | 149 views | 9 replies |

cal114936Beta Tester

International Shipping - checkout form is validating state field for an entry

To ship international, the checkout form is validating if there is a value for a state even if the country doesn't have states. How can this validation be changed to allow a blank entry for countries without states? It is already hiding the US States drop down and replacing it with a text field.

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the confirm_cart.php page and I can instruct you on what code needs to be changed.

Sign in to reply to this post

cal114936Beta Tester

The file is attached

Sign in to reply to this post

Ray BorduinWebAssist

You could replace line 32 with:

$WAFV_Errors .= WAValidateRQ((($_POST["Country"] == "US")?$_POST["State"]:"n/a") . "",true,7);

and line 42 with:
$WAFV_Errors .= WAValidateRQ((($_POST["Country_2"] == "US")?$_POST["State_2"]:"n/a") . "",true,16);

Then it would only validate the State if the country was set to "US"

Sign in to reply to this post

cal114936Beta Tester

It works.. sorta. The changes allowed the blank entry in the state field. But if you have to make a change to the address and go back to the form it won't take the input any input unless you enter a state.

Also if I choose PalPay in Payment Options it won't open the window.

Sign in to reply to this post

Ray BorduinWebAssist

I'll need the url to the page to debug that.

Sign in to reply to this post

cal114936Beta Tester

See PM

Sign in to reply to this post

Ray BorduinWebAssist

I'll need FTP access to debug it. It appears to be an issue with the validation script that isn't running, but I'm not sure what might have caused it.

It may be a conflict with the multiple jquery versions you have on the page.

Sign in to reply to this post

cal114936Beta Tester

See PM

Sign in to reply to this post

Ray BorduinWebAssist

The error is in the custom code you have on lines 95-114... If I remove that the page works properly.

It looks like the referenced objects: smallAd2, and fixedAd2 don't exist on this page. So you probably just have to delete lines 99-108

Sign in to reply to this post
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...