Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • As anyone found a solution to this or another option? I’m looking to do the same.

    Thread Starter kkmarch7

    (@kkmarch7)

    Thank you I just submitted the request via your personal website.

    Thread Starter kkmarch7

    (@kkmarch7)

    Thread Starter kkmarch7

    (@kkmarch7)

    Thread Starter kkmarch7

    (@kkmarch7)

    Hi thank you for your response I added the following to the set equation and the number is still incorrect.

    PREC(fieldname3-fieldname3*fieldname6-4,500-0.025*fieldname3,2)

    Fieldname3 = 200,000
    Fieldname6 = .533

    200,000 – 200,000 x .533 – 4,500 – 0.025 x 200,000 = 102,900

    For some reason I keep getting 93,396. Am I supposed to put additional parentheses somewhere?

    Thread Starter kkmarch7

    (@kkmarch7)

    Hi and thank you for this information. I added the username to the post as a custom field. Then using the Contact Form 7 – Dynamic Text Extension plugin I was able to add the username via form tag with hidden CF7_get_post_var key=’se_username’

    The third party CRM I am working with provided me with the following code as an example: Originally User ID was going to be used but it has been changed to username.

    Would the submission URL be $host?

    <?php
    
    // BEGIN FORM HANDLER
    
    function createSELead($params=array()){
    	$host = 'https://salesengine.se/WebServices/Post/?user_id='.(int)$params['user_id'].'&rec_type_id='.(int)$params['rec_type_id'].'&rec_status_id='.(int)$params['rec_status_id'];
    	$post = http_build_query($params);
    	$c = curl_init($host);
    	curl_setopt($c, CURLOPT_HEADER, 0);
    	curl_setopt($c, CURLOPT_USERPWD, "se:webservices");
    	curl_setopt($c, CURLOPT_TIMEOUT, 30);
    	curl_setopt($c, CURLOPT_POST, 1);
    	curl_setopt($c, CURLOPT_POSTFIELDS, $post);
    	curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
    	$return = curl_exec($c);
    	curl_close($c);
    	return $return;
    }
    
    $action = '';
    if (isset($_POST['action'])) $action = $_POST['action'];
    
    if ($action == 'process') {
    
    	$params = array(
    		'user_id'=>31060, // SE User ID
    		'rec_type_id'=>558, // Lead
    		'rec_status_id'=>177549, // New Lead
    		'source'=>'Website form - whatever you want here',
    		'person_first_name'=>$_POST['person_first_name'],
    		'person_middle_name'=>$_POST['person_middle_name'],
    		'person_last_name'=>$_POST['person_last_name'],
    		'person_birthdate'=>$_POST['person_birthdate_day']."-".$_POST['person_birthdate_month']."-".$_POST['person_birthdate_year'],
    		'person_spouse_first_name'=>$_POST['person_spouse_first_name'],
    		'person_spouse_last_name'=>$_POST['person_spouse_last_name'],
    		'person_birthdate'=>$_POST['person_birthdate_spouse_day']."-".$_POST['person_birthdate_spouse_month']."-".$_POST['person_birthdate_spouse_year'],
    		'person_company_name'=>$_POST['person_company_name'],
    		'person_primary_phone'=>$_POST['person_primary_phone'],
    		'person_primary_email'=>$_POST['person_primary_email'],
    		'person_address1'=>$_POST['person_address1'],
    		'person_address2'=>$_POST['person_address2'],
    		'person_city'=>$_POST['person_city'],
    		'person_state'=>$_POST['person_state'],
    		'person_zip'=>$_POST['person_city'],
    		'person_country'=>$_POST['person_country']
    	);
    
    	$response = createSELead($params);
    
    	echo '<textarea style="height:300px; width:100%">';
    	print_r($response);
    	echo '</textarea>';
    
    	echo "<p>Do what you wish with the above response, and URL forward to the Calculator.</p>";
    
    	exit;
    }
    
    // END FORM HANDLER

    I have created the appropriate mapping utilizing the info above. I have also clicked the debugging option but I am not receiving the debug email, any idea what this could be?

    Thank you for your time.

    Thread Starter kkmarch7

    (@kkmarch7)

    Hi and thank you for your response. The user would not be logged in so that is where I am having trouble. Our website has a listing of Real Estate gaents. Each Agent has a profile which is a post. The contact form would be on each post. When someone visiting the website wants to contact the real estate agent they located via the website they would fill in the contact form. The third party I am pushing to would need to identify whom to push it to based on which profile/post it came from. Can I attach the username to the post? Or is this still something I can do with a hook? Thank you again.

    Thread Starter kkmarch7

    (@kkmarch7)

    Thank you this worked once I added it to “/wp-content/plugins/calculated-fields-form/templates/02/style.css”

    How can I increase the size of the Reset, Calculate and Send Button?

    Is there a way to change the font weight and color only in a particular box? I would like to change it in the box titled “Your Estimated Cash Value.” You can see it here https://rfslends.com/calculator/

    Thank You!

Viewing 8 replies - 1 through 8 (of 8 total)