| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
The issue is actually against Ubercart-2.x-beta5, but it's not in the dropdown list of versions.
There are a few posts about UPS quotes, custom packaging and dimensions. Basically UPS does *not* require the dimensions of a package to provide a quote. BUT, if dimensions are available, the quote is more accurate (by anywhere from 10-40 cents in my rough tests).
In the current version, there is no way to optionally disable the dimensions requirement for UPS shipping. The attached patch allows you to do so.
The patch creates as new set of checkboxes in the UPS settings page (admin/store/settings/quotes/methods/ups). The checkboxes are for different Errors and Warnings. The only one defined by this patch is for the above issue, and the option is called ERR_CUSTOM_PKG_NO_DIMENSIONS. When set, Ubercart will raise an error if a product does not have dimensions and custom packaging is selected. If it is not set, it will raise a warning message.
The patch affects the uc_ups.module and uc_ups.admin.inc files.
I'm not sure if this is the best way to address this issue, but it made it very convenient for my client to not have to add dimensions to all products.
The patch is applied against ubercart-2.x-beta5's uc_ups module.
| Preview | Attachment | Size |
|---|---|---|
| uc_ups.patch | 1.47 KB |
