jQuery validation on create account page in oscommerce 31Dec, 2010

Jquery validation contribution for create account page validations in oscommerce.You can download contribution from oscommerce website.

JQuery Validation On Create Account Page

IF oscommerce-2.2rc2a Freash installation then copy all files otherwise follow follwing instructions.

********************
*** INSTALLATION ***
********************

1. backup your create_account.php file

********************

2. Add Following Files:-

css/jquery.validate.css
js/jquery-1.3.2.js
js/jquery.validate.js
js/jquery.validation.functions.js

**************************

2. Modified create_account.php :-

Add folowing code in head tag->


3. Find

tep_draw_radio_field(‘gender’, ‘m’)

changes to

tep_draw_radio_field(‘gender’, ‘m’,”,’id=”genderm”‘)

4. Find

tep_draw_radio_field(‘gender’, ‘f’)

changes to

tep_draw_radio_field(‘gender’, ‘f’, ”,’id=”genderf”‘)

5. Find

tep_draw_input_field(‘firstname’)

changes to

tep_draw_input_field(‘firstname’,”,’id=”firstname”‘)

6. Find

tep_draw_input_field(‘lastname’)

changes to

tep_draw_input_field(‘lastname’,”,’id=”lastname”‘)

7. Find

tep_draw_input_field(‘dob’)

changes to

tep_draw_input_field(‘dob’,”,’id=”dob”‘)

8. Find

tep_draw_input_field(’email_address’)

changes to

tep_draw_input_field(’email_address’,”,’id=”email_address”‘)

9. Find

tep_draw_input_field(‘street_address’)

changes to

tep_draw_input_field(‘street_address’,”,’id=”street_address”‘)

10. Find

tep_draw_input_field(‘postcode’)

changes to

tep_draw_input_field(‘postcode’,”,’id=”postcode”‘)

11. Find

tep_draw_input_field(‘city’)

changes to

tep_draw_input_field(‘city’,”,’id=”city”‘)

12. Find

tep_draw_pull_down_menu(‘state’, $zones_array)

tep_draw_input_field(‘state’)

changes to

tep_draw_pull_down_menu(‘state’, $zones_array,’id=”state1″‘)

tep_draw_input_field(‘state’,”,’id=”state”‘)

13. Find

tep_get_country_list(‘country”)

changes to

tep_get_country_list(‘country’,”,’id=”country”‘)

14. Find

tep_draw_input_field(‘telephone’)

changes to

tep_draw_input_field(‘telephone’,”,’id=”telephone”‘)

15. Find

tep_draw_password_field(‘password’)

changes to

tep_draw_password_field(‘password’,”,’id=”password”‘)

16. Find

tep_draw_password_field(‘confirmation’)

changes to

tep_draw_password_field(‘confirmation’,”,’id=”confirmation”‘)

********************
Download Here :- http://addons.oscommerce.com/info/7535

Installtion Done… :)

that’s all!

Posted by: Admin / In: OsCommerce
Cam