Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created November 16, 2012 17:16
Show Gist options
  • Select an option

  • Save objectivehtml/4089111 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/4089111 to your computer and use it in GitHub Desktop.
UPS Live Rates w/EE plugin
<!-- height, width, and length are optional -->
{exp:live_rates:ups
access_key=""
username=""
password=""
account_number=""
origin_postal_code=""
destination_postal_code=""
cartthrob_session="true|false"
height="1"
width="2"
length="3"
weight="4"
}
{rate}
{formatted_rate}
{currency}
{origin}
{name}
{company}
{phone}
{address}
{street_1}
{street_2}
{street_3}
{city}
{state}
{postal_code}
{/address}
{/origin}
{destination}
{name}
{company}
{phone}
{address}
{street_1}
{street_2}
{street_3}
{city}
{state}
{postal_code}
{/address}
{/destination}
{shipper}
{street_1}
{street_2}
{street_3}
{city}
{state}
{postal_code}
{/shipper}
{shipping_type}
{package_type}
{service_type}
{is_residential}
{ship_date}
{formatted_ship_date}
{total_packages}
{packages}
{height}
{width}
{length}
{weight}
{/packages}
{total_errors}
{errors}
{error}
{error:count
{/errors}
{total_warnings}
{warnings}
{warning}
{warning:count}
{/warnings}
{timestamp}
{status}
{/exp:live_rates:ups}
{exp:live_rates:ups_form
cartthrob_session="true"
access_key=""
username=""
password=""
account_number=""
length="5"
height="4"
width="3"
weight="3"
}
<p>
<label for="name">Name</label>
<input type="text" name="name" value="" id="name" />
</p>
<p>
<label for="address">Address 1</label>
<input type="text" name="street_1" value="" id="address" />
</p>
<p>
<label for="address_2">Address 2</label>
<input type="text" name="street_2" value="" id="address_2" />
</p>
<p>
<label for="address_3">Address 3</label>
<input type="text" name="street_3" value="" id="address_3" />
</p>
<p>
<label for="city">City</label>
<input type="text" name="city" value="" id="city" />
</p>
<p>
<label for="sate">State</label>
<input type="text" name="state" value="" id="state" />
</p>
<p>
<label for="postal_code">Postal Code</label>
<input type="text" name="postal_code" value="" id="postal_code" />
</p>
<button type="submit">Submit</button>
{/exp:live_rates:ups_form}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment