Results 1 to 5 of 5

Thread: ADF (XML) Auto Dealer Format
      
   

  1. #1
    1alvinnewton is offline Sergeant
    Join Date
    Nov 2007
    Location
    San Diego Ca.
    Posts
    29

    Question ADF (XML) Auto Dealer Format

    I need help creating my forms with the ADF format (Auto Dealer Format). It is a type of XML format that dealers receive there inbound leads from websites into there ISM (Internet Sales Management tool). The coding that I need I believe is for my php page. Any help with this would be much appreciated! Please let me know if you need any examples of my form or examples of code that I have that I just do not know how to implement.

    Thank you,
    Alvin Newton

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: ADF (XML) Auto Dealer Format

    Alvin,

    this is a very specific request, i doubt anyone has any experience with this.

    try finding some instructions and examples and we might be able to help.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    1alvinnewton is offline Sergeant
    Join Date
    Nov 2007
    Location
    San Diego Ca.
    Posts
    29

    Default Re: ADF (XML) Auto Dealer Format

    I hope someone can understand this code an put it in lamemens terms for me!



    <%
    rfirst = request("first")
    rlast = request("last")
    rfull = rfirst & " " & rlast
    ramphone = request("phone")
    remail = request("email")
    rmodel = request("model")
    rdate = dconv(now)
    rcomments = request("comments")
    rsource = request("source")
    rvin = request("vin")
    rstreet = ""
    rcity = ""
    rstate = ""
    rzip = ""
    rpmphone = ""
    rmake = request("make")
    ryear = request("year")
    mb = ""

    'connect to the master adfxml file
    set fso = server.createobject("scripting.filesystemobject")
    mypath = server.mappath("adffile.txt")
    set mfile = fso.opentextfile(mypath)
    while not mfile.atendofstream
    cntr = cntr + 1
    lval = mfile.readline
    if instr(lval,"rdate") then lval = replace(lval,"rdate",rdate)
    if instr(lval,"rlast") then lval = replace(lval,"rlast",rlast)
    if instr(lval,"rfirst") then lval = replace(lval,"rfirst",rfirst)
    if instr(lval,"rfull") then lval = replace(lval,"rfull",rfull)
    if instr(lval,"rstreet") then lval = replace(lval,"rstreet",rstreet)
    if instr(lval,"rcity") then lval = replace(lval,"rcity",rcity)
    if instr(lval,"rstate") then lval = replace(lval,"rstate",rstate)
    if instr(lval,"rzip") then lval = replace(lval,"rzip",rzip)
    if instr(lval,"ramphone") then lval = replace(lval,"ramphone",ramphone)
    if instr(lval,"rpmphone") then lval = replace(lval,"rpmphone",rpmphone)
    if instr(lval,"remail") then lval = replace(lval,"remail",remail)
    if instr(lval,"ryear") then lval = replace(lval,"ryear",ryear)
    if instr(lval,"rmake") then lval = replace(lval,"rmake",rmake)
    if instr(lval,"rvin") then lval = replace(lval,"rvin",rvin)
    if instr(lval,"rmodel") then lval = replace(lval,"rmodel",rmodel)
    if instr(lval,"rcomments") then lval = replace(lval,"rcomments",rcomments)
    if instr(lval,"rsource") then lval = replace(lval,"rsource",rsource)
    if cntr = 1 then mb = chr(10)
    mb = mb & lval & chr(10)
    if cntr = 1 then
    mb = "<?xml version=""1.0""?>" & chr(10)
    end if
    wend

    Alvin, the next thing to do is generate an email with the body of the message equal to the variable mb (as seen 6-7 lines above this)
    %>





    <?xml version="1.0"?>
    <?ADF version="1.0"?>
    <adf>
    <prospect>
    <id source="SanDiego-Subaru-Outback.com"></id>
    <vehicle interest="buy" status="new">
    <year>ryear</year>
    <make>rmake</make>
    <model>rmodel</model>
    </vehicle>
    <customer>
    <contact>
    <name part="first">rfirst</name>
    <name part="last">rlast</name>
    <email>remail</email>
    <phone type="voice" time="day">ramphone</phone>
    <phone type="voice" time="evening">rpmphone</phone>
    </contact>
    <comments></comments>
    </customer>
    <vendor>
    <vendorname></vendorname>
    <contact primarycontact="1">
    <name part="full">SanDiego-Subaru-Outback.com</name>
    <phone type="voice" time="morning"></phone>
    <address>
    <street line="1"></street>
    <city></city>
    <regioncode></regioncode>
    <postalcode></postalcode>
    <country>US</country>
    <url></url>
    </address>
    </contact>
    </vendor>
    <provider>
    <name part="full">PC Connection</name>
    <service>Dealer Web Services</service>
    <url>http://www.pcconnectiononline.com/</url>
    <email>chris@pcconnectiononline.com</email>
    <phone>858-231-3590</phone>
    <contact primary="1">
    <name part="full">PC Connection</name>
    <email>chris@pcconnectiononline.com</email>
    <phone type="voice" time="day">858-231-3590</phone>
    <address>
    <street line="1">13818 Tam O Shanter Ct</street>
    <city>Poway</city>
    <regioncode>CA</regioncode>
    <postalcode>92064</postalcode>
    <country>US</country>
    </address>
    </contact>
    </provider>
    </prospect>
    </adf>




    Here is some more code!

    <?ADF VERSION="1.0"?>
    - <adf>
    - <prospect>
    <requestdate>2006-03-30T15:30:20-08:00</requestdate>

    - <vehicle interest="buy" status="used">
    <id sequence="1" source="Apps Auto Group">12345</id>

    <year>1999</year>

    <make>Chevrolet</make>

    <model>Blazer</model>

    <vin>2GTEK19R7V1511644</vin>

    <stock>P7286</stock>

    <trim>LT</trim>

    <doors>4</doors>

    <bodystyle>SUV</bodystyle>

    <transmission>A</transmission>

    <odometer status="replaced" units="miles">90000</odometer>

    <condition>excellent</condition>

    - <colorcombination>
    <interiorcolor>lush brown</interiorcolor>

    <exteriorcolor>emerald green</exteriorcolor>

    <preference>2</preference>

    </colorcombination>


    - <colorcombination>
    <interiorcolor>gray</interiorcolor>

    <exteriorcolor>cobalt blue</exteriorcolor>

    <preference>1</preference>

    </colorcombination>


    <imagetag width="100" height="100" alttext="This is alternative text.">http://marksarich.com/images/mark2.jpg</imagetag>

    <price type="quote" currency="USD" delta="absolute" relativeto="msrp" source="Apps Auto Group">26995</price>

    <pricecomments>This is such a great deal.</pricecomments>

    - <option>
    <optionname>Sport</optionname>

    <manufacturercode>p394</manufacturercode>

    <stock>ST123</stock>

    <weighting>65</weighting>

    <price type="quote" currency="USD" delta="absolute" relativeto="msrp" source="Apps Auto Group">100</price>

    </option>


    - <option>
    <optionname>Keyless Entry</optionname>

    <manufacturercode>p395</manufacturercode>

    <stock>ST395</stock>

    <weighting>100</weighting>

    <price type="quote" currency="USD" delta="absolute" relativeto="msrp" source="Apps Auto Group">100</price>

    </option>


    - <finance>
    <method>Finance</method>

    <amount type="downpayment" limit="exact" currency="USD">5000</amount>

    <amount type="monthly" limit="maximum" currency="USD">1000</amount>

    <amount type="total" limit="exact" currency="USD">50000</amount>

    <balance type="residual" currency="USD">2000</balance>

    </finance>


    <comments>keyless entry essential</comments>

    </vehicle>


    - <vehicle interest="trade-in" status="used">
    <id sequence="1" source="Apps Auto Group">12345</id>

    <year>1999</year>

    <make>Chevrolet</make>

    <model>Blazer</model>

    <vin>2GTEK19R7V1511644</vin>

    <stock>P7286</stock>

    <trim>LT</trim>

    <doors>4</doors>

    <bodystyle>SUV</bodystyle>

    <transmission>A</transmission>

    <odometer status="replaced" units="miles">90000</odometer>

    <condition>excellent</condition>

    - <colorcombination>
    <interiorcolor>lush brown</interiorcolor>

    <exteriorcolor>emerald green</exteriorcolor>

    <preference>2</preference>

    </colorcombination>


    - <colorcombination>
    <interiorcolor>gray</interiorcolor>

    <exteriorcolor>cobalt blue</exteriorcolor>

    <preference>1</preference>

    </colorcombination>


    <imagetag width="100" height="100" alttext="This is alternative text.">http://marksarich.com/images/mark2.jpg</imagetag>

    <price type="quote" currency="USD" delta="absolute" relativeto="msrp" source="Apps Auto Group">26995</price>

    <pricecomments>This is such a great deal.</pricecomments>

    - <option>
    <optionname>Sport</optionname>

    <manufacturercode>p394</manufacturercode>

    <stock>ST123</stock>

    <weighting>65</weighting>

    <price type="quote" currency="USD" delta="absolute" relativeto="msrp" source="Apps Auto Group">100</price>

    </option>


    - <option>
    <optionname>Keyless Entry</optionname>

    <manufacturercode>p395</manufacturercode>

    <stock>ST395</stock>

    <weighting>100</weighting>

    <price type="quote" currency="USD" delta="absolute" relativeto="msrp" source="Apps Auto Group">100</price>

    </option>


    - <finance>
    <method>Finance</method>

    <amount type="downpayment" limit="exact" currency="USD">5000</amount>

    <amount type="monthly" limit="maximum" currency="USD">1000</amount>

    <amount type="total" limit="exact" currency="USD">50000</amount>

    <balance type="residual" currency="USD">2000</balance>

    </finance>


    <comments>keyless entry essential</comments>

    </vehicle>


    - <customer>
    - <contact>
    <name part="first">John</name>

    <name part="last">Doe</name>

    <email>jdoe********.com</email>

    <phone type="voice" time="morning">393-999-3922</phone>

    <phone type="voice" time="evening" besttime="1">393-991-2999</phone>

    <phone type="fax" time="evening">393-991-2999</phone>

    - <address type="home">
    <street line="1">10 first avenue</street>

    <apartment>G-17</apartment>

    <city>Spokane</city>

    <regioncode>WA</regioncode>

    <postalcode>98002-3903</postalcode>

    <country>US</country>

    </address>


    </contact>


    - <timeframe>
    <description>Within 1 month</description>

    </timeframe>


    <comments>Can you deliver my new car by next Thursday?</comments>

    </customer>


    - <vendor>
    - <contact>
    <name part="full">Acura of Bellevue</name>

    </contact>


    </vendor>


    </prospect>


    </adf>
    Attached Files Attached Files

  4. #4
    1alvinnewton is offline Sergeant
    Join Date
    Nov 2007
    Location
    San Diego Ca.
    Posts
    29

    Default Re: ADF (XML) Auto Dealer Format

    This is how I would want my form to be on my websites.


    First Name

    Last Name

    e-mail

    Phone #

    Comments box

    submit


    The info I would want parsed into the dealers ISM tool would be

    First Name

    Last Name

    E-mail

    Phone Number

    Comments or notes

    Source(what site the lead came from for tracking and ROI reasons)

    Name of provider. (Example Newton Digital Marketing San Diego Ca.)


    Your help is much appreciated

    Alvin!


    Look at www.tahoe-hybrid.com the form there is a 3rd party form framed into my site, to generate affiliate income, I want to generate my own leads directly to my customers and generate my own income.

  5. #5
    1alvinnewton is offline Sergeant
    Join Date
    Nov 2007
    Location
    San Diego Ca.
    Posts
    29

    Default Re: ADF (XML) Auto Dealer Format

    Quote Originally Posted by navaldesign View Post
    Alvin,

    this is a very specific request, i doubt anyone has any experience with this.

    try finding some instructions and examples and we might be able to help.
    I submitted some examples and an instruction manual, any help would be appreciated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49