<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Functions%3AuserGetAddresses</id>
		<title>Functions:userGetAddresses - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Functions%3AuserGetAddresses"/>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:userGetAddresses&amp;action=history"/>
		<updated>2026-05-01T03:18:45Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:userGetAddresses&amp;diff=611&amp;oldid=prev</id>
		<title>71.163.185.8 at 03:29, 25 February 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:userGetAddresses&amp;diff=611&amp;oldid=prev"/>
				<updated>2009-02-25T03:29:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 03:29, 25 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Creating an address book management form:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Creating an address book management form: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Page Templates:Creating a Address Book Management Template]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:*&lt;/ins&gt;[[Page Templates:Creating a Address Book Management Template]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Creating a billing address checkout form using stored addresses:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Creating a billing address checkout form using stored addresses: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Page Templates:Creating a Billing Address Template]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:*&lt;/ins&gt;[[Page Templates:Creating a Billing Address Template]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>71.163.185.8</name></author>	</entry>

	<entry>
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:userGetAddresses&amp;diff=610&amp;oldid=prev</id>
		<title>71.163.185.8: New page: == Description == eV::userGetAddresses($fieldList,$userId) retrieves an array of stored address data for a particular user. This is useful for building an address book management form, als...</title>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:userGetAddresses&amp;diff=610&amp;oldid=prev"/>
				<updated>2009-02-25T03:28:27Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == Description == eV::userGetAddresses($fieldList,$userId) retrieves an array of stored address data for a particular user. This is useful for building an address book management form, als...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Description ==&lt;br /&gt;
eV::userGetAddresses($fieldList,$userId) retrieves an array of stored address data for a particular user. This is useful for building an address book management form, also for presenting address options in a checkout address form page (billing / shipping address entry)&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
$array = eV::userGetAddresses($fieldList[,$userId]);&lt;br /&gt;
&lt;br /&gt;
== Paramaters ==&lt;br /&gt;
*$fieldList STRING REQUIRED&lt;br /&gt;
:: Comma separated list of fields to be returned in the array.&lt;br /&gt;
:: Available fields to place in $fieldList:&lt;br /&gt;
:::*addressName&lt;br /&gt;
:::*firstName&lt;br /&gt;
:::*lastName&lt;br /&gt;
:::*company&lt;br /&gt;
:::*street1&lt;br /&gt;
:::*street2&lt;br /&gt;
:::*city&lt;br /&gt;
:::*state&lt;br /&gt;
:::*state_alt&lt;br /&gt;
:::*zipCode&lt;br /&gt;
:::*country&lt;br /&gt;
:::*phone1&lt;br /&gt;
:::*phone2&lt;br /&gt;
:::*phone3&lt;br /&gt;
:::*fax&lt;br /&gt;
*$userId INT OPTIONAL&lt;br /&gt;
:: userId for which addresses will be retrieved. Defaults to the current logged in user ($_SESSION['user']['userId']) if not provided.&lt;br /&gt;
&lt;br /&gt;
== Return Values ==&lt;br /&gt;
Returns a multidimensional array of address data. The first dimension is the index of the address. The second dimension contains the fields that are returned for the address.&lt;br /&gt;
&lt;br /&gt;
Return array is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; Array&lt;br /&gt;
        (&lt;br /&gt;
            [addressId] =&amp;gt; INT&lt;br /&gt;
            // POSSIBLE fields returned (as dictated by the $fieldList attribute)&lt;br /&gt;
            [addressName] =&amp;gt; String&lt;br /&gt;
            [firstName] =&amp;gt; String&lt;br /&gt;
            [lastName] =&amp;gt; String&lt;br /&gt;
            [company] =&amp;gt; String&lt;br /&gt;
            [street1] =&amp;gt; String&lt;br /&gt;
            [street2] =&amp;gt; String&lt;br /&gt;
            [city] =&amp;gt; String&lt;br /&gt;
            [state] =&amp;gt; String&lt;br /&gt;
            [zipCode] =&amp;gt; String&lt;br /&gt;
            [country] =&amp;gt; String&lt;br /&gt;
            [phone1] =&amp;gt; String&lt;br /&gt;
            [phone2] =&amp;gt; String&lt;br /&gt;
            [phone3] =&amp;gt; String&lt;br /&gt;
            [fax] =&amp;gt; String&lt;br /&gt;
         )&lt;br /&gt;
    [1] =&amp;gt; Array...&lt;br /&gt;
&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
;Simple retrieval and display of addresses&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// get addresses&lt;br /&gt;
$addressArr = eV::userGetAddresses('firstName,lastName,city,state,zipCode');&lt;br /&gt;
&lt;br /&gt;
// display addresses&lt;br /&gt;
foreach($addressArr as $address) {&lt;br /&gt;
echo &amp;quot;&amp;lt;hr&amp;gt;&amp;quot; . $address['firstName'] . &amp;quot; &amp;quot; . $address['lastName'];&lt;br /&gt;
echo &amp;quot;&amp;lt;br&amp;gt;&amp;quot; . $address['city'] . &amp;quot; &amp;quot; . $address['state'] . &amp;quot;, &amp;quot; . $address['zipCode'];&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Creating an address book management form:&lt;br /&gt;
[[Page Templates:Creating a Address Book Management Template]]&lt;br /&gt;
&lt;br /&gt;
;Creating a billing address checkout form using stored addresses:&lt;br /&gt;
[[Page Templates:Creating a Billing Address Template]]&lt;/div&gt;</summary>
		<author><name>71.163.185.8</name></author>	</entry>

	</feed>