• I have created 2 custom page templates that enables visitors to my clinents website to request a carpet cleaning quote. The first template displays a form that asks for the users personal information. The second template processes the information from the first template and creates a contact, account and calendar item in Vtiger and displays a form asking for details about the areas to be cleaned which will be processed in a third page template that also interacts with vtiger to add a note and email all of the user data to the client. I have uploaded the page templates to the freshnews directory and selected the appropriate template from the list box in the edit page screen for each page. i.e. Quotes and scheduling page uses the first template and the Area to be cleaned page uses the second template.

    Currently the form in the second template does not display unless I comment out the code that interacts with Vtiger.
    I have used some echos to debug and the template has recieved the data from the fisrt template but the client object is not created in order to talk to Vtiger.

    I have tested the same Vtiger code in a separate file using the Apache Server and the code works.

    I looked at the action hook functions but did not find an appropriate one for what the script needs to do. Is there something else that I need in the script or something in WordPress I need to do to make the Vtiger code work ?

    This is the script:

    ‘<?php
    /*
    Template Name: Area Information Template
    */
    ?>

    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_url’); ?>” media=”screen” />
    <script type=’text/javascript’ src=’https://suedev.dyndns.org/suedev/wp-content/themes/freshnews/vtwsclib/third-party/js/jquery.js’></script&gt;
    <script type=’text/javascript’ src=’https://suedev.dyndns.org/suedev/wp-content/themes/freshnews/vtwsclib/third-party/js/md5.js’></script&gt;
    <script type=’text/javascript’ src=’https://suedev.dyndns.org/suedev/wp-content/themes/freshnews/vtwsclib/Vtiger/WSClient.js’></script&gt;

    <script type=”text/javascript”>

    function ClearFields(id)
    {
    id.value = “”;
    id.style.border = “black”;
    id.style.color = “black”;
    }

    </script>

    <?php
    $recordid;
    $firstName = ”;
    $lastName = ”;
    $phonenumber = ”;
    $alternateNumber = ”;
    $email = ”;
    $address = ”;
    $city = ”;
    $province = ”;
    $postalcode = ”;
    $busname = ”;
    $contactID;
    $accountID;
    $calendarID;
    $startDate;
    $startTime;
    $year;
    $month;
    $day;
    $hour;
    $minutes;
    $seconds;
    $busorres = ‘Residential’;

    session_start();

    if (isset($_POST[‘busorres’]))
    {
    $busorres = $_POST[‘busorres’];
    }

    if (isset($_POST[‘firstName’]))
    {
    $firstName = $_POST[“firstName”];
    // store session data
    $_SESSION[‘firstname’]=$firstName;
    }
    if (isset($_POST[“lastName”]))
    {
    $lastName = $_POST[“lastName”];
    $_SESSION[‘lastname’]=$lastName;
    }
    if (isset($_POST[“phoneNumber”]))
    {
    $phonenumber = $_POST[“phoneNumber”];
    $_SESSION[‘phone’]=$phonenumber;
    }
    if (isset($_POST[“alternateNumber”]))
    {
    $alternateNumber = $_POST[“alternateNumber”];
    $_SESSION[‘altphone’]=$alternateNumber;
    }
    if (isset($_POST[“email”]))
    {
    $email = $_POST[“email”];
    }
    if (isset($_POST[“address”]))
    {
    $address = $_POST[“address”];
    }
    if (isset($_POST[“city”]))
    {
    $city = $_POST[“city”];
    }
    if (isset($_POST[“province”]))
    {
    $province = $_POST[“province”];
    }
    if (isset($_POST[“postalCode”]))
    {
    $postalcode = $_POST[“postalCode”];
    }
    if (isset($_POST[“bussinessName”]))
    {
    $busname = $_POST[‘bussinessName’];
    $_SESSION[‘bussinessName’]=$busname;
    }

    if ($firstName != ” && $lastName != ” && $phonenumber != ” && $alternateNumber != ” && $email != ” && $address != ” && $postalcode != ”)
    {
    //include_once(‘https://suedev.dyndns.org/suedev/wp-content/themes/freshnews/vtwsclib/Vtiger/WSClient.php&#8217;);
    //$url = ‘https://bramptonnerd.dyndns.org:8888/&#8217;;
    $url = ‘https://nerdtown.ca:8888/&#8217;;
    //$client = new Vtiger_WSClient($url);
    //$login = $client->doLogin(‘username’, ‘password’);

    //if(!$login)
    //{
    //echo ‘Login Failed’;
    //}
    /*
    else
    {
    if ($busorres == ‘Bussiness’)
    {
    $module = ‘Accounts’;
    $record = $client->doCreate($module,
    Array(‘accountname’=>$busname,’phone’=>$phonenumber,’otherphone’=>$alternateNumber,’email1’=>$email,’assigned_user_id’=>’20×3′,’ownership’=>$firstName,’bill_street’=>$address,’bill_city’=>$city,’bill_state’=>$province,’bill_code’=>$postalcode));

    if($record)
    {
    $accountID = $client->getRecordId($record[‘account_id’]);

    $module = ‘Contacts’;
    $record = $client->doCreate($module,
    Array(‘firstname’=>$firstName, ‘phone’=>$phonenumber, ‘lastname’=>$lastName, ‘account_id’=>$accountID,’otherphone’=>$alternateNumber,’assigned_user_id’=>’20×3′,’email’=>$email,’mailingstreet’=>$address,’mailingcity’=>$city,’mailingstate’=>$province,’mailingzip’=>$postalcode));

    if($record)
    {
    $contactID = $client->getRecordId($record[‘id’]);

    $currentTime = localtime(time(), true);
    $year = $currentTime[tm_year];
    $month = $currentTime[tm_mon];
    $day = $currentTime[tm_mday];
    $seconds = $currentTime[tm_sec];
    $minutes = $currentTime[tm_min];
    $hour = $currentTime[tm_hour];

    if (hour < 12)
    {
    $startTime = gmmktime(1,0,0,$month,$day,$year);
    $startDate = date($year, $month, $day);
    }
    else if (hour > 12)
    {
    $day++;
    $startTime = gmmktime(9,0,0,$month,$day,$year);
    $startDate = date($year, $month, $day);
    }

    $module = ‘Calendar’;
    $record = $client->doCreate($module,
    Array(‘subject’=>’phone potential’, ‘assigned_user_id’=>’20×3’, ‘date_start’=>$startdate, ‘time_start’=>$startTime, ‘parent_id’=>$accountID,’activitytype’=>’Task’, ‘reminder_time’=>$startDate));
    if($record)
    {
    $calendarID = $client->getRecordId($record[‘id’]);

    }
    }
    }
    }
    else if ($busorres == ‘Residential’)
    {
    $module = ‘Contacts’;
    $record = $client->doCreate($module,
    Array(‘firstname’=>$firstName, ‘lastname’=>$lastName,’phone’=>$phonenumber,’otherphone’=>$alternateNumber,’assigned_user_id’=>’20×3′,’email’=>$email,’mailingstreet’=>$address,’mailingcity’=>$city,’mailingstate’=>$province,’mailingzip’=>$postalcode));
    if($record)
    {
    $recordid = $client->getRecordId($record[‘id’]);
    $module = ‘Calendar’;
    $record = $client->doCreate($module,
    Array(‘firstname’=>$firstName, ‘lastname’=>$lastName,’phone’=>$phonenumber,’otherphone’=>$alternateNumber,’assigned_user_id’=>’20×3’));
    }

    $_SESSION[‘calendarID’]=$calendarID;
    $_SESSION[‘contactid’]=$contactID;
    $_SESSION[‘accountid’]=$accountiD;
    }

    }
    */
    }

    ?>

    <!–redirect to the confirmation page if it is a business client–>
    <?php
    if ($busorres == ‘Bussiness’)
    {
    wp_redirect( get_page_link(225));
    //wp_redirect(‘https://suedev.dyndns.org/suedev/index.php/confimation/&#8217;);
    exit;
    }
    else
    {
    ?>
    <center>
    <?php get_header(); ?>
    </center>

    <div id=”main” class=”col-full fullwidth”>
    <div class=”box post”>

    <?php if ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘MSIE’) == false) { ?>
    <div style=”padding-left:15%; margin-right:auto;”>
    <?php } ?>

    <h1 class=”title”><?php the_title(); ?></h1>

    <div id=”contact-page” class=”post” >

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”entry”>
    <?php the_content(); ?>
    </div>

    <!–<//?php $path = ‘index.php/confimation/’; ?> –>

    <p><span style=”font-style:italic;” >Residential Pricing:</span>We reserve the right to measure and adjust the quote as necessary</p>
    <p><span style=”font-weight:bold” >Commercial Quotes are done on-site.</span></p>
    <p><span style=”font-weight:bold;” >Residential Tile and Grout Cleaning, Sealing and Re-colouring Quotes are done on-site.</span></p>
    <p>Enter the measurements of the rooms and/or items you want cleaned and click the Submit button.</p>
    <p>Please make sure the items marked with a <span style=”color:red;”>*</span> are selected.</p>

    <form action=”<?php get_page_link(225); ?>” id=”contactForm” method=”post” >

    <ol class=”forms”>
    <li class=”inline”><span style=”color:red;”>*</span>
    <input type=”radio” name=”measurement” id=”centimeters” value=”<?php _e(‘centimeters’,’woothemes’); ?>” /><?php _e(‘Centimeters’, ‘woothemes’); ?>
    <input type=”radio” name=”measurement” id=”inches” value=”<?php _e(‘inches’,’woothemes’);?>” checked=”checked” /><?php _e(‘Inches’, ‘woothemes’); ?>

    <li id=”tblResidential”>
    <table style=”border:solid #FFFFFF 1px;”>
    <tr width=”15px” style=”background:#2B42ED;”>
    <th style=”background:#2B42ED;”>Room</th>
    <th style=”background:#2B42ED;” width=”5px”></th>
    <th style=”background:#2B42ED;” width=”15px”>Quantity</th>
    <th style=”background:#2B42ED;” width=”15px”>Length</th>
    <th style=”background:#2B42ED;” width=”15px”>Width</th>
    </tr>

    <tr style=”background:#FFFFFF;”>
    <td style=”background:#FFFFFF;”><label><?php _e(‘Living Room’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF” width=”5px”><input type=”checkbox” id=”chbxLR” name=”chbxLR” width=”5px”/></td>
    <td style=”background:#FFFFFF”><input class=”table” type=”text” id=”txtQuantityLR” name=”QuantityLR” value=”X” width=”5px” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;”><input class=”table” type=”text” id=”txtLRlength” name=”LRlength” /></td>
    <td style=”background:#FFFFFF;”><input class=”table” type=”text” id=”txtLRWidth” name=”LRwidth” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Dining Room’, ‘woothemes’); ?></label></td>
    <td style=”background: #B7BFF9;” width=”5px”><input type=”checkbox” id=”chbxDR” name=”chbxDR”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityDR” name=”QuantityDR” width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtDRlength” name=”DRlength” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtDRWidth” name=”DRwidth” /></td>
    </tr>

    <tr style=”background:#FFFFFF;”>
    <td style=”background:#FFFFFF;”><label><?php _e(‘Hall 1’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF;” width=”5px”><input type=”checkbox” id=”chbxH1″ name=”chbxH1″/></td>
    <td style=”background:#FFFFFF;”><input class=”table” type=”text” id=”txtQuantityH1″ name=”QuantityH1″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;”><input class=”table” type=”text” id=”txtH1Length” name=”H1Length” /></td>
    <td style=”background:#FFFFFF;”><input class=”table” type=”text” id=”txtH1Width” name=”H1Width” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Hall 2’, ‘woothemes’); ?></label></td>
    <td width=”5px” style=”background: #B7BFF9;”><input type=”checkbox” id=”chbxH2″ name=”chbxH2″/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityH2″ name=”QuantityH2″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtH2Length” name=”H2Length” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtH2Width” name=”H2Width” /></td>
    </tr>

    <tr style=”background:#FFFFFF;” >
    <td style=”background:#FFFFFF;” ><label><?php _e(‘Kitchen’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF;” width=”5px”><input type=”checkbox” id=”chbxKitchen” name=”chbxKitchen”/></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtQuantityKIT” name=”QuantityKIT” width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtKitLength” name=”KitLength” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtKitWidth” name=”Kitwidth” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Bedroom 1’, ‘woothemes’); ?></label></td>
    <td width=”5px” style=”background: #B7BFF9;”><input type=”checkbox” id=”chbxBD1″ name=”chbxBD1″ width=”5px”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityBD1″ name=”QuantityBD1″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtB1Length” name=”B1Length” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtB1Width” name=”B1Width” /></td>
    </tr>

    <tr style=”background:#FFFFFF;” >
    <td style=”background:#FFFFFF;” ><label><?php _e(‘Bedroom 2’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF;” width=”5px”><input type=”checkbox” id=”chbxBD2″ name=”chbxBD2″ width=”5px”/></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtQuantityBD2″ name=”QuantityBD2″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtB2Length” name=”B2Length” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtB2Width” name=”B2Width” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Bedroom 3’, ‘woothemes’); ?></label></td>
    <td width=”5px” style=”background: #B7BFF9;”><input type=”checkbox” id=”chbxBD3″ name=”chbxBD3″ width=”5px”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityBD3″ name=”QuantityBD3″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtB3Length” name=”B3Length” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtB3Width” name=”B3Width” /></td>
    </tr>

    <tr style=”background:#FFFFFF;” >
    <td style=”background:#FFFFFF;” ><label><?php _e(‘Bedroom 4’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF;” width=”5px”><input type=”checkbox” id=”chbxBD4″ name=”chbxBD4″ width=”5px”/></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtQuantityBD4″ name=”QuantityBD4″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtB4Length” name=”B4Length” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtB4Width” name=”B4Width” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Den’, ‘woothemes’); ?></label></td>
    <td width=”5px” style=”background: #B7BFF9;”><input type=”checkbox” id=”chbxDEN” name=”chbxDEN” width=”5px”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityDEN” name=”QuantityDEN” width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtDenLength” name=”DenLength” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtDenWidth” name=”DenWidth” /></td>
    </tr>

    <tr style=”background:#FFFFFF;” >
    <td style=”background:#FFFFFF;” ><label><?php _e(‘Family Room’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF;” width=”5px”><input type=”checkbox” id=”chbxFR” name=”chbxFR” width=”5px”/></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtQuantityFR” name=”QuantityFR” width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtFRLength” name=”FRLength” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtFRwidth” name=”FRwidth” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Stairs’, ‘woothemes’); ?></label></td>
    <td width=”5px” style=”background: #B7BFF9;”><input type=”checkbox” id=”chbxStairs” name=”chbxStairs” width=”5px”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityStairs” name=”QuantityStairs” width=”5px” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtStairsLength” name=”StairsLength” value=”X” disabled=”disabled”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtStairsWidth” name=”StairsWidth” value=”X” disabled=”disabled”/></td>
    </tr>

    <tr style=”background:#FFFFFF;”>
    <td style=”background:#FFFFFF;” ><label><?php _e(‘Other’, ‘woothemes’); ?></label></td>
    <td style=”background:#FFFFFF;” width=”5px”><input type=”checkbox” id=”chbxOT1″ name=”chbxOT1″ width=”5px”/></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtQuantityOT1″ name=”QuantityOt1″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txtOT1Length” name=”OT1Length” /></td>
    <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”txOT1tWidth” name=”OT1width” /></td>
    </tr>

    <tr class=”alternate” style=”background: #B7BFF9;”>
    <td style=”background: #B7BFF9;”><label><?php _e(‘Other’, ‘woothemes’); ?></label></td>
    <td width=”5px” style=”background: #B7BFF9;”><input type=”checkbox” id=”chbxOT2″ name=”chbxOT2″ width=”5px”/></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtQuantityOT2″ name=”QuantityOT2″ width=”5px” value=”X” disabled=”disabled” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtOT2Length” name=”OT2Length” /></td>
    <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”txtOT2Width” name=”OT2width” /></td>
    </tr></table>

    <li id=”tblBussiness” style=”display:none;”>
    <table style=”border:solid #FFFFFF 1px;”>
    <tr width=”75px” style=”background:#2B42ED;”><th with=”15px” style=”background:#2B42ED;”></th><th width=”15px” style=”background:#2B42ED;”>Quantity</th><th width=”15px” style=”background:#2B42ED;”>Tile</th><th width=”15px” style=”background:#2B42ED;”>Grout</th><th width=”15px” style=”background:#2B42ED;”>Carpet</th></tr>
    <tr class=”whiterow”><td width=”10px”>Offices</td><td width=”20px”><input class=”table” type=”text” id=”NumOfOffices” name=”NumOfOffices” /></td>
    <td width=”15px”><input type=”checkbox” id=”chbxBusTile” name=”busTile” /></td>
    <td width=”15px” ><input type=”checkbox” id=”chbxBusGrout” name=”busGrout” /></td>
    <td width=”15px”><input type=”checkbox” id=”chbxBusCarpet” name=”busCarpet” /></td></tr>
    </table>

    • <img src=”https://suedev.dyndns.org/suedev/wp-content/themes/freshnews/pageSeperator.jpg&#8221; height=”2px” alt=”Page Seperator” width=”950px” />
    • <h2>Furniture</h2>
    • <p>Type Of Upholstery to be cleaned</p>
    • <li class=”inline”>
      <input type=”radio” name=”furniture” id=”nofurniture” value=”<?php _e(‘nofurniture’, ‘woothemes’); ?>”/><label for=”furniture”><?php _e(‘No furniture at this time’, ‘woothemes’); ?></label>
      <input type=”radio” name=”furniture” id=”yesfurniture” value=”<?php _e(‘yesfurniture’, ‘woothemes’); ?>”/><label for=”furniture”><?php _e(‘Furniture’, ‘woothemes’); ?></label>

    • <table style=”border:solid #FFFFFF 1px; margin-left:100px;”>
      <tr style=”background:#2B42ED;”>
      <th style=”background:#2B42ED;”></th>
      <th style=”background:#2B42ED;”>Quantity</th>
      </tr>
      <tr style=”background:#FFFFFF;” >
      <td style=”background:#FFFFFF;” ><label><?php _e(‘Sectionals’, ‘woothemes’); ?></label></td>
      <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”numOfSectionals” name=”numOfSectionals” /></td>
      </tr>
      <tr style=”background:#B7BFF9;”>
      <td style=”background:#B7BFF9;”><label><?php _e(‘Regular Sofa’, ‘woothemes’); ?></label></td>
      <td style=”background:#B7BFF9;”><input class=”table” type=”text” id=”numOfRegularsofas” name=”numOfRegularsofas” /></td>
      </tr>
      <tr style=”background:#FFFFFF;” >
      <td style=”background:#FFFFFF;” ><label><?php _e(‘Love Seat’, ‘woothemes’); ?></label></td>
      <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”numOfLoveseats” name=”numOfLoveseats” /></td>
      </tr>
      <tr style=”background: #B7BFF9;”>
      <td style=”background: #B7BFF9;”><label><?php _e(‘Ottoman’, ‘woothemes’); ?></label></td>
      <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”numOfOttomans” name=”numOfOttomans” /></td>
      </tr>
      <tr style=”background:#FFFFFF;” >
      <td style=”background:#FFFFFF;” ><label><?php _e(‘Recliner’, ‘woothemes’); ?></label></td>
      <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”numOfRecliners” name=”numOfRecliners” /></td>
      </tr>
      <tr style=”background: #B7BFF9;”>
      <td style=”background: #B7BFF9;”><label><?php _e(‘Small Chair’, ‘woothemes’); ?></label></td>
      <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”numOfSmallChairs” name=”numOfSmallChairs” /></td>
      </tr>
      <tr style=”background:#FFFFFF;” >
      <td style=”background:#FFFFFF;” ><label><?php _e(‘Dining Chair’, ‘woothemes’); ?></label></td>
      <td style=”background:#FFFFFF;” ><input class=”table” type=”text” id=”numOfDiningRoomChairs” name=”numOfDiningRoomChairs” /></td>
      </tr>
      <tr style=”background: #B7BFF9;”>
      <td style=”background: #B7BFF9;”><label><?php _e(‘Overstuffed Chair’, ‘woothemes’); ?></label></td>
      <td style=”background: #B7BFF9;”><input class=”table” type=”text” id=”numOfOverstuffedChairs” name=”numOfOverstuffedChairs” /></td>
      </tr>
      </table>
    • <img src=”https://suedev.dyndns.org/suedev/wp-content/themes/freshnews/pageSeperator.jpg&#8221; height=”2px” alt=”Page Seperator” width=”950px” />
    • <p>Additional Comments:</p>
    • <textarea id=”additionalComments” name=”additionalComments” rows=”20″ cols=”30″></textarea>
    • <li class=”screenReader”><label for=”checking” class=”screenReader”><?php _e(‘If you want to submit this form do not enter anything in this field’, ‘woothemes’) ?></label><input type=”text” name=”checking” id=”checking” class=”screenReader” />

      <li class=”mybutton”><input class=”mysubmit” type=”submit” value=”Submit” />

      </form>

      <span><?php print_r(“client: ” . $client); ?></span>

      <?php endwhile; ?>
      <?php endif; ?>

      </div><!– /#area-page –>

      <?php
      if ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘MSIE’) == false) { ?>
      </div>
      <?php } ?>

      </div>

      </div><!–#main–>

      <?php get_footer(); ?>
      <?php } ?><!– end of else redirect –>’

      The integration with Vtiger is crutial to my clients business and the main part of the website and needs to be working ASAP. Any help to get the integration with Vtiger working would be greatly appreciated.

  • The topic ‘Custom page template and integration with Vtiger’ is closed to new replies.