Plugin Directory

Changeset 1424769


Ignore:
Timestamp:
05/26/2016 01:30:38 PM (10 years ago)
Author:
leadfox
Message:

Checkout fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • leadfox/trunk/leadfox.php

    r1418969 r1424769  
    22/***
    33 * Plugin Name: leadfox
    4  * Plugin Version: 1.0.1
     4 * Plugin Version: 1.0
    55 * Author: Leadfox(Leadfox)
    66 * Description: Leadfox converts visitors into ripe leads and paying customers : From creating convincing landing pages that capture more leads to running smarter email campaigns that better nurture new customers LeadFox makes deploying your online strategy easy and automatic. The plugin will integrate all the Leadfox tracking code on your website and will sync all your contacts with your Leadfox contact lists.
     
    341341    $contactlist;
    342342   
    343     $fname = isset($_POST['first_name']) ? $_POST['first_name'] : '';
     343    /*$fname = isset($_POST['first_name']) ? $_POST['first_name'] : '';
    344344    $lname = isset($_POST['last_name']) ? $_POST['last_name'] : '';
    345345    $email = isset($_POST['email']) ? $_POST['email'] : '';
    346346    $user_id = $user_id;
    347     $user_role = isset($_POST['role']) ? $_POST['role'] : '';
    348    
     347    $user_role = isset($_POST['role']) ? $_POST['role'] : '';*/
     348   
     349       
     350        $fname = '';
     351    $lname = '';
     352    $email = '';
     353    $user_role = '';
     354       
     355        $user_id = $user_id;
     356        $user_info = get_userdata($user_id);
     357        $user_role = implode(', ', $user_info->roles);
     358       
     359        if((isset($_REQUEST['first_name']) && $_REQUEST['first_name']!='') && (isset($_REQUEST['last_name']) && $_REQUEST['last_name']!='') && (isset($_REQUEST['email']) && $_REQUEST['email']!=''))
     360        {
     361            $fname = $_REQUEST['first_name'];
     362            $lname = $_REQUEST['last_name'];
     363            $email = $_REQUEST['email'];
     364        }
     365       
     366        if((isset($_REQUEST['billing_first_name']) && $_REQUEST['billing_first_name']!='') && (isset($_REQUEST['billing_last_name']) && $_REQUEST['billing_last_name']!='') && (isset($_REQUEST['billing_email']) && $_REQUEST['billing_email']!=''))
     367        {
     368            $fname = $_REQUEST['billing_first_name'];
     369            $lname = $_REQUEST['billing_last_name'];
     370            $email = $_REQUEST['billing_email'];
     371        }
     372       
    349373    $admins = array(array('id'=>$user_id, 'fname'=>$fname, 'lname'=>$lname, 'email'=>$email));
    350374   
Note: See TracChangeset for help on using the changeset viewer.