You are here

README.txt in Commerce UPS 7

Same filename and directory in other branches
  1. 7.2 README.txt
- - - - - About this module

Commerce UPS module provides real-time shipping cost estimates for 
United Parcel Service (UPS).


- - - - - Dependencies

Obviously, this module depends on the Commerce module 
(http://www.drupal.org/project/commerce). In addition, the following modules 
are required:

* Commerce Physical - http://www.drupal.org/project/commerce_physical
This module is used to define the physical properties (weight and dimensions) 
of each product. This information is necessary to determine a shipping estimate.

* Commerce Shipping - http://www.drupal.org/project/commerce_shipping
This provides the infrastructure for Commerce UPS to fully integrate with the 
Commerce module.
You must use the commerce_shiping 2.x!


- - - - - Optional modules

* AES - http://www.drupal.org/project/aes
This module is strongly suggested in order to securely store the site's 
UPS credentials. 


- - - - - Installation

1. Install and enable the module and all dependencies (be sure to use the 
latest versions of everything). Add dimensions and weight fields (new field 
types via the Commerce Physical module) to all shippable product types. 
Populate dimensions AND weight fields for all products. IF YOUR PRODUCTS 
DON'T HAVE BOTH PHYSICAL WEIGHT AND DIMENSIONS, A SHIPPING QUOTE WILL NOT BE 
RETURNED - YOU HAVE BEEN WARNED, IF TEXT FILES HAD A <BLINK> TAG, I'D BE 
USING IT HERE TO MAKE SURE THAT THIS IS CRYSTAL CLEAR ;)

2. Configure the "Shipping service" checkout pane so that it is on the 
"Shipping" page. The "Shipping service" checkout pane MUST be on a later page 
than the "Shipping information" pane. (admin/commerce/config/checkout)

3. Configure the UPS settings (admin/commerce/config/shipping/methods/ups/edit). 
You'll need to create UPS account and obtain an access key 
via https://www.ups.com/upsdeveloperkit. 

4. Optionally install and configure the AES encryption module 
(http://www.drupal.org/project/aes). This will help keep your UPS 
credentials secure.


- - - - - Limitations

Eventually, all of these limitations may be addressed. For now, be warned.

1. Single "Ship from" address for all products.

2. "Customer supplied packaging" is the only allowed packaging type.

3. Doesn't ensure product dimensions are less than default package size 
dimensions. In other words, if you have a product that is 1x1x20 (volume=20) 
and your default package size is 5x5x5 (volume=125), even though the product 
won't physically fit in the box, these values will be used to calculate the 
shipping estimate.

4. Doesn't play Tetris. For example, if you have an order with 14 products with 
a combined volume of 50 and your default package size has a volume of 60, the 
shipping estimate will be for a single box regardless of if due to the 
packaging shape they don't actually fit in the box.

5. Doesn't limit the weight of packages. If you're trying to ship a box full of 
lead that weighs 600lbs, this module will let you (instead of breaking the 
order into more packages).

6. Doesn't account for packing material. If you need to account for packing 
material, then you may want to adjust product dimensions accordingly.


- - - - - Methodology

Calculating estimated shipping costs is a tricky business, and it can get 
really complicated really quickly. Knowing this, we purposely designed this 
module with simplicity in mind. Here's how it works:

1. Every order must contain at least one package.

2. The number of packages is determined by calculating the total volume of all 
products in the order, dividing by the volume of the default package size, 
and rounding up.

3. The weight of each package is determined by dividing the total weight of all 
products in the order by the number of packages.

If you need custom functionality, you have several options:

1. Determine if it is something that can be generalized to suit a number of 
users and submit it via the issue queue as a suggestion for inclusion in 
this module.

2. Hire one of the maintainers to create a custom module that interfaces with 
Commerce UPS to add your custom functionality.

3. Break open a text editor and start coding your own custom module.


- - - - - Authors/Maintainers/Contributors

Frank Lakatos - http://drupal.org/user/834502
Chris Calip - http://drupal.org/user/210499
Ryan Szrama - http://drupal.org/user/49344
Andrew Riley - http://drupal.org/user/98079
Michael Anello - http://drupal.org/user/51132

A good portion of this module was originally written during the 
DrupalCamp Atlanta 2011 code sprint. Thanks to all who participated 
including Brent Ratliff and Tom Geller. 

File

README.txt
View source
  1. - - - - - About this module
  2. Commerce UPS module provides real-time shipping cost estimates for
  3. United Parcel Service (UPS).
  4. - - - - - Dependencies
  5. Obviously, this module depends on the Commerce module
  6. (http://www.drupal.org/project/commerce). In addition, the following modules
  7. are required:
  8. * Commerce Physical - http://www.drupal.org/project/commerce_physical
  9. This module is used to define the physical properties (weight and dimensions)
  10. of each product. This information is necessary to determine a shipping estimate.
  11. * Commerce Shipping - http://www.drupal.org/project/commerce_shipping
  12. This provides the infrastructure for Commerce UPS to fully integrate with the
  13. Commerce module.
  14. You must use the commerce_shiping 2.x!
  15. - - - - - Optional modules
  16. * AES - http://www.drupal.org/project/aes
  17. This module is strongly suggested in order to securely store the site's
  18. UPS credentials.
  19. - - - - - Installation
  20. 1. Install and enable the module and all dependencies (be sure to use the
  21. latest versions of everything). Add dimensions and weight fields (new field
  22. types via the Commerce Physical module) to all shippable product types.
  23. Populate dimensions AND weight fields for all products. IF YOUR PRODUCTS
  24. DON'T HAVE BOTH PHYSICAL WEIGHT AND DIMENSIONS, A SHIPPING QUOTE WILL NOT BE
  25. RETURNED - YOU HAVE BEEN WARNED, IF TEXT FILES HAD A TAG, I'D BE
  26. USING IT HERE TO MAKE SURE THAT THIS IS CRYSTAL CLEAR ;)
  27. 2. Configure the "Shipping service" checkout pane so that it is on the
  28. "Shipping" page. The "Shipping service" checkout pane MUST be on a later page
  29. than the "Shipping information" pane. (admin/commerce/config/checkout)
  30. 3. Configure the UPS settings (admin/commerce/config/shipping/methods/ups/edit).
  31. You'll need to create UPS account and obtain an access key
  32. via https://www.ups.com/upsdeveloperkit.
  33. 4. Optionally install and configure the AES encryption module
  34. (http://www.drupal.org/project/aes). This will help keep your UPS
  35. credentials secure.
  36. - - - - - Limitations
  37. Eventually, all of these limitations may be addressed. For now, be warned.
  38. 1. Single "Ship from" address for all products.
  39. 2. "Customer supplied packaging" is the only allowed packaging type.
  40. 3. Doesn't ensure product dimensions are less than default package size
  41. dimensions. In other words, if you have a product that is 1x1x20 (volume=20)
  42. and your default package size is 5x5x5 (volume=125), even though the product
  43. won't physically fit in the box, these values will be used to calculate the
  44. shipping estimate.
  45. 4. Doesn't play Tetris. For example, if you have an order with 14 products with
  46. a combined volume of 50 and your default package size has a volume of 60, the
  47. shipping estimate will be for a single box regardless of if due to the
  48. packaging shape they don't actually fit in the box.
  49. 5. Doesn't limit the weight of packages. If you're trying to ship a box full of
  50. lead that weighs 600lbs, this module will let you (instead of breaking the
  51. order into more packages).
  52. 6. Doesn't account for packing material. If you need to account for packing
  53. material, then you may want to adjust product dimensions accordingly.
  54. - - - - - Methodology
  55. Calculating estimated shipping costs is a tricky business, and it can get
  56. really complicated really quickly. Knowing this, we purposely designed this
  57. module with simplicity in mind. Here's how it works:
  58. 1. Every order must contain at least one package.
  59. 2. The number of packages is determined by calculating the total volume of all
  60. products in the order, dividing by the volume of the default package size,
  61. and rounding up.
  62. 3. The weight of each package is determined by dividing the total weight of all
  63. products in the order by the number of packages.
  64. If you need custom functionality, you have several options:
  65. 1. Determine if it is something that can be generalized to suit a number of
  66. users and submit it via the issue queue as a suggestion for inclusion in
  67. this module.
  68. 2. Hire one of the maintainers to create a custom module that interfaces with
  69. Commerce UPS to add your custom functionality.
  70. 3. Break open a text editor and start coding your own custom module.
  71. - - - - - Authors/Maintainers/Contributors
  72. Frank Lakatos - http://drupal.org/user/834502
  73. Chris Calip - http://drupal.org/user/210499
  74. Ryan Szrama - http://drupal.org/user/49344
  75. Andrew Riley - http://drupal.org/user/98079
  76. Michael Anello - http://drupal.org/user/51132
  77. A good portion of this module was originally written during the
  78. DrupalCamp Atlanta 2011 code sprint. Thanks to all who participated
  79. including Brent Ratliff and Tom Geller.