Author Topic: UPS v2.0 (multiple functionality additions)  (Read 193317 times)

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
UPS v2.0 (multiple functionality additions)
« on: October 21, 2008, 23:25:34 pm »
Hi all,
My father's online shop needed more functionality than the UPS v1.0 module provides, so I rewrote the module and called it UPSv2.0.  I've added numerous features as requested by other users, and have posted the updates here for the community to use.  There are several version of the code, for different reasons.  Below is a list of the features and requirements for each.

PLEASE NOTE! This module does far more than the specifications for a shipping module state it should do.  It is NOT a simple drop-in module.  I have re-written some of the specifications in order to add enhanced functionality.  This means that future VirtueMart updates may break this code! Proceed with caution when updating VM!

Here's a good post on how to get your developer access key

Thank you,
Reggie


Want to show your shipping rates before checkout? Download my plugin now!



Versions


vm11x-upsv2.2011.07.20-BASIC.zip
Requires VirtueMart 1.1.x
REQUIRES PHP v5.0 or higher!

Features:
- Simple rate shopping module with no core hacks
- Safe to install alongside any of my other modules


vm117-upsv2.2011.02.11.zip
Requires VirtueMart 1.1.7
REQUIRES PHP v5.0 or higher!

Features:
- allows for bundled and unbundled items.
- allows for shipments greater than 70lbs (fixed original XML)
- split package types into international and domestic
- customized shipping price discounts per product
- shipping insurance per product
- option to skip handling fees on free shipping items
- option to allow only certain number of a product in any package
- allows for optional "Free Shipping" image to be displayed on product flypage for products who have a shipping modifier of zero.
- allows for restriction of "Free Shipping" to only basic ground services
- allows for restricting products from being shipped to any location using country/state associations
- added option to have free shipping on orders over a certain amount
- added option to skip Pickup Type declaration (workaround for UPS Error Code: 111370, Error Description: Unsupported Pickup Type)
- very basic support for declaring L/W/H for large packages
- option to flag products as HAZMAT, add additional shipping charges, and show a HAZMAT image on the product flypage
- additional handling fee options. 2 handling fees allowed.
- freight shipping option. ignore freight items during shipping calculations, show notices and images in various locations.
- option to query shipping rates using manufacturer's address
- option to offer an "additional service" when displaying shipping rate choices
- added option to charge flat fee per product, ignoring actual UPS rate
- added option to skip handling fees on packages with only flat-fee items
- option to give free shipping per product type based on quantity
- option to charge tax only to in-state users
- option to charge different tax for products which ship from manufacturer (drop shipper)
- option to restrict products to ground shipping services
- mod_virtuemart_currencies support
- shipping tax system mirroring product tax.  You may now charge shipping tax based on vendor address, shipping address, or EU mode
- basic 'after the fact' tracking number support
- per-product shipping service restriction mechanism
- UPS Negotiated Rates support
- Option to use "Declared Value" for rate queries
- Option to override default declared value (product price) with user-defined price
- Option to trigger free shipping per product, based on other products in the cart


vm118-upsv2.2011.04.19.zip
Requires VirtueMart 1.1.8
REQUIRES PHP v5.0 or higher!

Features:
- All the features of the previous version, ported to VM1.1.8


vm119-lowmips.2011.08.22
Requires VirtueMart 1.1.9
REQUIRES PHP v5.0 or higher!

- includes vm118-upsv2.2011.04.19
- ported to VirtueMart 1.1.9
- download from my website
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #1 on: November 03, 2008, 23:18:51 pm »
Updated to add debug notice for zero weight orders.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #2 on: November 06, 2008, 21:07:59 pm »
Updated to fix typo introduced in last update...
Updated ps_product to validate ship_alone variable
Updated upsv2.php to check each shipment individually against the 150lb max weight limit, instead of the combined weight of all shipments (the original way)
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

opwdecks

  • Jr. Member
  • **
  • Posts: 54
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #3 on: November 07, 2008, 18:15:36 pm »
I downloaded today and installed all the files. What do you mean in the installation:

"add a new field called 'ship_alone' to the 'jos_vm_product' table.  See upsv2.sql for SQL query."
   
How would I do this?

Thanks
Scott Paul

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #4 on: November 07, 2008, 18:38:21 pm »
Hi opwdecks,
You'll need to either manually create that new field in your MySQL database under the table jos_vm_product(easy to do from phpMyAdmin), or run the SQL script I supplied to automate it a bit (also in phpMyAdmin).


-Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

opwdecks

  • Jr. Member
  • **
  • Posts: 54
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #5 on: November 07, 2008, 19:35:08 pm »
Thank you very much!
Scott Paul

rinny

  • Beginner
  • *
  • Posts: 17
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #6 on: November 07, 2008, 20:20:42 pm »
Ok Reggie, Mike and I gave it a good run-through.

Good note:  It is now calculating shipping +150 LBS (breaking my large "ships separately" boxes down into individual queries to the UPS server) which is definitely what this module needs to be useful whatsoever. (Thanks again for even thinking of and creating this!)

Bad note:  Shipping was thrown off again, even for orders less than 150 lbs.  A 52 lb. case should be 17.36, but is showing as 13.01.  Going to revert back to how we had it previously until we can create a fix.

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #7 on: November 07, 2008, 20:34:39 pm »
That's odd. Did you try it with recent values? I know our shipping costs have come down greatly due to oil prices lowering.  Do you get the correct amount if you go to UPS.com and manually enter it?

-Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

rinny

  • Beginner
  • *
  • Posts: 17
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #8 on: November 07, 2008, 20:51:36 pm »
Actually, I was looking at the 2008 rate chart, which is wrong.  A 44 lb. box according to the rate chart is 15.96, but according to Calculate Time & Cost it's 17.28.  The module is outputting 13.01. :(

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #9 on: November 07, 2008, 21:11:33 pm »
I'll need more info to help.
Real world shipping weights, dimensions, source+dest zipcodes, service types, and prices would be good.

thanks,
Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #10 on: November 10, 2008, 03:31:55 am »
Updates: 2008/11/09:
-Split package type into domestic and international options.
-Updated UPS XML Rate return parsing code to support packages larger than 70lbs. 

KNOWN BUG: I have uploaded this version as UPSv2.0_2008-11-09.zip because of a bug I have not worked out yet. On the configuration page, the "UPS Worldwide Expedited SM" option will toggle off and on for no apparent reason, and the config file remains unchanged reguardless of the setting.  If you depend on this service please do not use this version! All other services seem to function correctly.  If anyone has an idea as to why this is happening, please let me know! It's driving me bananas!
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

quickturn

  • Jr. Member
  • **
  • Posts: 60
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #11 on: November 11, 2008, 06:34:37 am »
Hi there - I can't seem to make changes to my product after installing this. Do I need to change permissions somehow? I try to change the weight, units in box, etc. and it keeps reverting back.

Also, I'm getting the following error:

Error: UPS was not able to process the Shipping Rate Request.. Error Code: 110003, Error Description: Maximum number of packages exceeded (50)

But the total weight in the cart is only 30lbs.

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #12 on: November 11, 2008, 13:39:50 pm »
Hi quickturn,
Which version of the UPS2.0 module are you using? How about Joomla/VM? Also,
did you really have more than 50 items in the cart?

-Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

quickturn

  • Jr. Member
  • **
  • Posts: 60
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #13 on: November 11, 2008, 14:48:45 pm »
Hello - Joomla 1.5, VM 1.1, vm_ups_v2.0_2008-11-09

Also, we are selling bulk flash drives so the average order should have more than 50 pieces. But a box of 10 only weighs a couple pounds.
Thanks!

www.quickturnflash.com

lowmips

  • Global Moderator
  • Hero Member
  • *
  • Posts: 1462
    • lowmips.com
Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #14 on: November 11, 2008, 15:07:56 pm »
The inability to change product details is very odd. I just checked again on my site to be sure, and I'm having no problems.  Do you have any other custom code running?

As for the 50 seperate packages, that is a UPS XML request restriction and is not supported in any current UPS shipping module that I know of.  I can add it to my list of things to do, but it will be some time before I get to it as I am currently working on 2 other modifications.

-Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

VirtueMart Forum

Re: UPS v2.0 Bundled and Unbundled Shipping
« Reply #14 on: November 11, 2008, 15:07:56 pm »