How To Create Customers Via Your Shopping Cart: Kiosks, Mailing Lists, Guest Books, Etc
Introduction
Did you know by using a simple HTTP post, you can send AMS customer data from almost anywhere? Why might you want to do this? What is this good for?
Examples include:
- Customer facing data collection devices, kiosks.
- Hosting a mailing list signup form on your website.
- Use a Captive Portal whereby Guests need to give their email address to connect to free WiFi.
Data can be collected with specific customer Source Code (PSC) to track setup channels.
New partial customer accounts will be created instantly.
Table of Contents
The only field that is required is the email address. Please ensure you have form validation in place for that field as well as any others you may require.
The page that is displayed after submitting data is often pre-configured with copy appropriate for a mailing list signup, as this is the most common use case. The results page need not be displayed to the customer or can be changed to suit your needs. You may wish to submit the form via Ajax to retain the most control over the experience.
Don't forget to set your SOURCE code field for setup channel tracking.
Sample HTML Form
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Customer Create Sample</title> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> </head> <body> <form autocomplete="off" action="https://shop.YOURWINERY.com/ADDEMAIL.AMS" method="post"> <!--AMS Source code to use for this customer. For signup channel tracking--> <input type="hidden" name="SOURCE" size="6" maxlength="6" value="KIOSK1"> <br> <input name="EMAILADDR" type="text" value="" placeholder="Email (required)" required> <br> <input type="text" name="FIRST" value="" placeholder="First Name"> <input type="text" name="LAST" value="" placeholder="Last Name"> <br> <input name="COMPNAME" type="text" value="" placeholder="Company"> <br> <input type="text" name="STREET" value="" placeholder="Street Address"> <br> <input name="SUITEAPT" type="text" value="" placeholder="Suite/Apt"> <br> <input type="text" name="CITY" placeholder="City"> <br> <select name="STATE"> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connecticut</option> <option value="DE">Delaware</option> <option value="DC">District Of Columbia</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="HI">Hawaii</option> <option value="ID">Idaho</option> <option value="IL">Illinois</option> <option value="IN">Indiana</option> <option value="IA">Iowa</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="ME">Maine</option> <option value="MD">Maryland</option> <option value="MA">Massachusetts</option> <option value="MI">Michigan</option> <option value="MN">Minnesota</option> <option value="MS">Mississippi</option> <option value="MO">Missouri</option> <option value="MT">Montana</option> <option value="NE">Nebraska</option> <option value="NV">Nevada</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NM">New Mexico</option> <option value="NY">New York</option> <option value="NC">North Carolina</option> <option value="ND">North Dakota</option> <option value="OH">Ohio</option> <option value="OK">Oklahoma</option> <option value="OR">Oregon</option> <option value="PA">Pennsylvania</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="SD">South Dakota</option> <option value="TN">Tennessee</option> <option value="TX">Texas</option> <option value="UT">Utah</option> <option value="VT">Vermont</option> <option value="VA">Virginia</option> <option value="WA">Washington</option> <option value="WV">West Virginia</option> <option value="WI">Wisconsin</option> <option value="WY">Wyoming</option> </select> <br> <input type="text" name="ZIP" id="ZIP" placeholder="Zip"> Phone <br> <input type="text" name="SPHONE_AREA" value="" size="3" maxlength="3" placeholder="123"> - <input type="text" name="SPHONE_NO3" value="" size="3" maxlength="3" placeholder="456"> - <input type="text" name="SPHONE_NO4" value="" size="4" maxlength="4" placeholder="7890"> <br><br> <input name="SUBMIT" type="Submit" value="Add Customer" class="border-button" > </form> </body> </html>