ADF (XML) Auto Dealer Format

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • 1alvinnewton
    Sergeant

    • Nov 2007
    • 29

    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
    Alvin Newton
    President
    Newton Digital Marketing
    MTBAlvin******.com

    OneShopAuto.com
    TahoeHybrid.com
    TheChevyMalibu.com
    SimpleGirlz.com
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    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!

    Comment

    • 1alvinnewton
      Sergeant

      • Nov 2007
      • 29

      #3
      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
      Alvin Newton
      President
      Newton Digital Marketing
      MTBAlvin******.com

      OneShopAuto.com
      TahoeHybrid.com
      TheChevyMalibu.com
      SimpleGirlz.com

      Comment

      • 1alvinnewton
        Sergeant

        • Nov 2007
        • 29

        #4
        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.
        Alvin Newton
        President
        Newton Digital Marketing
        MTBAlvin******.com

        OneShopAuto.com
        TahoeHybrid.com
        TheChevyMalibu.com
        SimpleGirlz.com

        Comment

        • 1alvinnewton
          Sergeant

          • Nov 2007
          • 29

          #5
          Re: ADF (XML) Auto Dealer Format

          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.
          Alvin Newton
          President
          Newton Digital Marketing
          MTBAlvin******.com

          OneShopAuto.com
          TahoeHybrid.com
          TheChevyMalibu.com
          SimpleGirlz.com

          Comment

          Working...
          X