Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Where The Core.js Library Is Included Rate Topic   - - - - -

 
  • anilkumar
  • Advanced Member
  • Members
  • Join Date: 26-Feb 14
  • 75 posts

Posted 28 April 2014 - 08:35 AM #1

i have a doubt in checkout procedure

In checkout procedure customer has entered the billing and shipping address in step_two.tpl after entered when he clicks on continue it checks the form fields are filling properly are not,if not displays error messages....

i wrote some additional code for checking the address where he entered the proper address or not.This functionality is working when the user clicks on the "continue" button.I wrote the code in document.ready function,i get the proper address from usps library and displays the suggested address if user entered any thing wrong...

my requirment is:
---------------
when user clicks on "continue" button my "address verification" validation is working first then the cscart default validations are performed...
I want to perform "cscart default validations" first then my "address verification" validations

i checked the core.js library in that "this.check = function()" performs the form fields validations and get the response(true/false) to "check_fields_result" variable.

if i can get that "check_fields_result" variable value in step_two.tpl. If possible i can run my "address verification" validations with the following response of that variable
(or)

how can i call manually (this.check = function()) this function in step_two.tpl

can you explain the steps how that core.js library is included when "continue" button is pressed in step_two.tpl..


please check this link:
http://forum.cs-cart...5&st=0#msg22232