Skip to content

Instantly share code, notes, and snippets.

@ksnider
ksnider / infusionsoft-datepicker-snippet
Last active December 11, 2015 08:58
The code to put in an html snippet in an InfusionSoft web form to add a jQuery UI datepicker to a date field, in this case, inf_custom_Date.
<style>
#inf_custom_Date {
width:160px !important;
float:left !important;
display:inline !important;
}
#inf_custom_ApptHour {
width:100px;
float:right;
@ksnider
ksnider / parse-names.php
Last active December 29, 2015 12:39
Parse a Name field and add results to Infusionsoft
<?php
// Connect to the Infusionsoft API
require("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
// Connect the required file from HumanNameParser
@ksnider
ksnider / Time Diff Form
Last active December 30, 2015 09:28
This is a script which demonstrates the use of PHP script to find the difference between two dates and/or times.
<html>
<head>
<title>TimeDiff Calculator</title>
</head>
<body>
<!-- this tells the browser where and how to send the data from the form -->
<form action='timesheet-calc.php' method='post' enctype="multipart/form-data">
Start : <input type='text' name='start'><br />
@ksnider
ksnider / video-viewed.php
Created December 5, 2013 18:38
This script adds today's date and increments a counter in an Infusionsoft contact record
<?php
/* **************
FUTURE- if $counter = 5, for example, add a tag for Videos Viewed = 5 and then have tag get picked up in CB to send email.
******************* */
require("isdk.php");
$myApp = new iSDK;
@ksnider
ksnider / purchase-total.php
Created December 5, 2013 18:45
This script adds up the total of all orders for an Infusionsoft contact and puts it in a custom field
<?php
// Connect to the Infusionsoft API
require("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
<?php
// Connect to Infusionsoft
require_once("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
// Get ContactID and email from POST variable
<?php
// Connect to Infusionsoft
require_once("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
// Get Contact info from POST variable
<?php
// Connect to Infusionsoft
require_once("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
// Get Contact info from POST variable
<?php
// Connect to Infusionsoft
require_once("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
<?php
// Connect to Infusionsoft
require_once("isdk.php");
$app = new iSDK;
if ($app->cfgCon("connectionName")) {
// Connect to database