Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

UPS XML Rates v0.9 for Zen Cart 1.3.9h 2011/04/04

Original Copyright of osCommerce (c) 2003 Torin Walker,
Original Copyright of Zencart

Update for Packaging Support by Joe McFrederick

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.
If not, you may obtain one by writing to and requesting one from

	The Free Software Foundation, Inc.,
	59 Temple Place, Suite 330,
	Boston, MA 02111-1307 USA
Version 0.9.1 Instructions

This module requires the SimpleXML PHP extension to be enabled.

Follow the instructions below this section for a complete fresh install.

1. Upload files included in zip file.
2. In Admin, goto Tools->Packaging. This automatically check and install necessary queries.
3. In Admin, goto Modules->Shipping->USPS XML. Then click Install button.
4. Goto Admin->Tools->Packing Options. Add your necessary boxes sizes. Make sure packages are ordered by shortest side by entering package cost. (ie lowest package cost = shortest product side)
5. Now go edit your products, and add product sizes to items. Please use length as longest side. There is also a database field in the products table added products_ready_to_ship. Set this
to 1, to always have those items shipped/packaged on their own.
6. Goto Admin->Tools->Store Manger. At bottom click on [Optimize] database button.

The only original ZenCart file overwritten is:
/includes/classes/shopping_cart.php in the get_products() method. 

This was to add the products dimensions for the items in someones cart. 2 sections of this file were updated to include
those product attributes.

When testing it locally (ie. http://localhost/), or your ip address is detected as, the packing output will be shown.

	Release Notes for Zen Cart USPS XML Version
Version 0.9.1 (pickupman)
Fixed freight calculation for multiple shipments

Version 0.9 (pickupman)
This is the initial release for using  USPS Webtools with multiple package support.
Ported packing algorithm from my UPS XML module to try first fit algorithm - tries rotating package to fit
Compares volumetric compartments remaining after each product is packaged
Thanks to Mike Kalavitz for testing and giving me the idea.
Added timeout check in case packing algo gets stuck. Thanks to Kaz Wittig.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.