• Anna
    June 12, 2014 at 1:48 pm #41898

    Here is the flow

    on this

    is pressed on agentcontact form

    the event click is triggerd on control js

    $('#agent_submit').click(function(){ - at line 1124

    in the function the ajax call the php function ajax_agent_contact_form that is on functions.php on line 800

    the function reply when email is sent with
    echo json_encode(array('sent'=>true, 'response'=>__('The message was sent !','wpestate') ) );

    and in control.js on success : the sent message is displayed and form is cleared

You must be logged in to reply to this topic.