close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error Checking for DirectPay Form ecart5

Thread began 6/23/2010 4:52 am by sharada408278 | Last modified 6/25/2010 5:09 pm by Jimmy Wu | 1952 views | 9 replies |

sharada408278

Error Checking for DirectPay Form ecart5

I searched for error checking code on the forums but did not find any. Hence this request.

Is there code that I can use to check the form fields (Name, credit card, expiry date .. etc)
during the checkout process ? At least a Not empty check ?
Usually how is this implemented in eCart 5 ? If there is a form that captures data, shouldn't there be error checking to go with it ? If a client enters a bad number or forgets to enter some field it is useful for them to be shown what needs to be filled with an asterisk or a list of what was left blank.

USing ecart 5 with Paypal Pro. Using both Express checkout and a local Do Direct Pay option.

Any help will be really appreciated since my knowledge of php is rudimentary.

Sign in to reply to this post

Jimmy Wu

If you have Validation toolkit or CSS Form Builder, you can apply client validation to check that the form fields are not blank or have valid characters entered into the fields. If you don't have either of these, since you said your understanding of PHP is rudimentary, I wouldn't recommend adding validation code using hand.

Sign in to reply to this post

sharada408278

Validation of user input on checkout.php (Direct pay)

I have Extension library and yearly membership subscription, do I get the toolkit and form builder ? Please point me to how I can use these on the existing live eCart 5 checkout page. I do not want to break anything that I just got up and running this morning.

Thankyou.

Sign in to reply to this post

Jimmy Wu

Well, first thing to do would be to make a backup of the files. Its always a good idea to make a lot of backups up working files.

You would get CSS Form Builder with the extension library membership. You would want to install that and go to Insert->WebAssist->CSS Form Builder->Client Validation. then you would choose the checkout form and then you would add the validations you want for each of the forms. It might be a good idea to go through the Form Builder documentation in the support pages before applying any validations:
css-form-builder/

Sign in to reply to this post

sharada408278

O.K,

I will try adding validation to the checkout.php created by ecart 5.

Can the existing checkout.php be replaced with the one that gets modified by css form builder ? I do not want to re-do the ecart 5 wizard the newly generated checkout.php to talk to the rest of the ecart 5 files in place (confirm, pp_confirm, checkout_success, etc.,)

That way if it does not work, I can simply revert to my old checkout page and keep the site running.

Thanks

Sign in to reply to this post

Jimmy Wu

I would recommend just adding client validation rather than using CSS Form Builder and inspecting and rewriting the form. Inspecting and rewriting the form may cause some of the form elements to be renamed so that it doesn't interact with the checkout process unless the names are modified back.

Sign in to reply to this post

sharada408278

CLient validation is done using the Validation toolkit ? The instructions also say, to uninstall validation toolkit if I am downloading CSS form builder. I signed up less than 30 days ago and I am presented with CSS forms as an extension. I will try to download Validation Tool Kit I hope it is included in my membership

Sign in to reply to this post

Jimmy Wu

CSS Form builder also has the client validation functionality of Validation Toolkit built in. To quote what I said previously:

  You would get CSS Form Builder with the extension library membership. You would want to install that and go to Insert->WebAssist->CSS Form Builder->Client Validation. then you would choose the checkout form and then you would add the validations you want for each of the forms. It might be a good idea to go through the Form Builder documentation in the support pages before applying any validations:
css-form-builder/  
Sign in to reply to this post

sharada408278

Ah, understand now. Will try as you have pointed out. Thanks

Sign in to reply to this post

Jimmy Wu

Great to hear it. If you have any questions on applying the validation process, please post back. If you run into any additional unrelated issues, feel free to open a new thread.

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