User Tools

Site Tools


mattel:address_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mattel:address_file [2012/07/09 20:36] – created davemattel:address_file [2025/05/22 21:53] (current) – external edit 127.0.0.1
Line 7: Line 7:
 Here is an example .addr file with only a single entry: Here is an example .addr file with only a single entry:
  
 +<code>
  
 +<?xml version="1.0" encoding="UTF-8"?>
 +<Addresses>
 +   <Address CompanyID="LC_APPTASTIC" CompanyName="Apptastic Software Inc." CompanyType="VendorLC">
 +      
 +      <CompanyAddr01>1010 Polytek Street</CompanyAddr01>
 +      <CompanyAddr02>Unit 21</CompanyAddr02>
 +      <CompanyCity>Ottawa</CompanyCity>
 +      <CompanyState>Ontario</CompanyState>
 +      <CompanyCountry>Canada</CompanyCountry>
 +      <CompanyZip>K1J 9J1</CompanyZip>
 +      <CompanyWebPage>www.apptastic.com</CompanyWebPage>
 +
 +      <Contact ContactID="LC_APPTASTIC_DAVE" ContactName="Dave Stephenson">
 +          <ContactPhone>(613) 748-7066</ContactPhone>
 +          <ContactFax>(613) 749-6910</ContactFax>
 +          <ContactEmail>[email protected]</ContactEmail>
 +      </Contact>
 +
 +   </Address>
 +</Addresses>
 +
 +</code>
 +
 +==== Address tags ====
  
 The .addr file is an xml file with a <Addresses> root tag and multiple child <Address> tags.  An <Address> tag would have the following attributes: The .addr file is an xml file with a <Addresses> root tag and multiple child <Address> tags.  An <Address> tag would have the following attributes:
  
-  * companyid (required) - the id attribute is the connection between this address and an address for a product in the main xml file. +  * CompanyID   (required) - the id attribute is the connection between this address and an address for a product in the main xml file. 
-  * companytype (required) - what type of address is this? +  * CompanyType (required) - what type of address is this? 
-  * companyname (required) - the name of the company as it should appear in Speed-Quote.+  * CompanyName (required) - the name of the company as it should appear in Speed-Quote.
  
-The following values are valid for companytype attribute:+The following values are valid for CompanyType attribute:
  
   * VendorDomestic   * VendorDomestic
Line 26: Line 51:
   * Bank   * Bank
  
 +Please see the Addresses worksheet in the {{:mattel:mattelspeedquotefields.xls|}} excel file for a list of <CompanyXXXX> tag fields and associated information.
 +
 +==== Contact tags ====
 +
 +An <Address> node can have multiple <Contact> tags which define the contacts within that company.  A <Contact> tag has the following attributes:
 +
 +  * ContactID   (required) - the ContactID attribute is the connection between this contact and a contact for a product in the main xml file.
 +  * ContactName (required) - the name of the contact as it should appear in Speed-Quote.
 +
 +==== Connection to main xml file ====
 +
 +In the main xml file an address linking tag is used to link to a specific address or contact.  The tag name for a company link is <Addr//COMPANYTYPE//Company> and the tag name for a contact link is <Addr//COMPANYTYPE//Contact>.  Where //COMPANYTYPE// is one of the above CompanyType attribute values.  
 +
 +The connection tags in the main xml file to link to the above example address would show as:
 +
 +<code>
 +<AddrVendorLCCompany>LC_APPTASTIC</AddrVendorLCCompany>
 +<AddrVendorLCContact>LC_APPTASTIC_DAVE</AddrVendorLCContact>
 +</code>
mattel/address_file.1341866207.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki