Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart 1.1.xShippingUPSUPS v2.0 (multiple functionality additions)
Pages: [1] 2 3 ... 44   Go Down
Print
Author Topic: UPS v2.0 (multiple functionality additions)  (Read 122518 times)
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« on: October 21, 2008, 16: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


vm_upsv2.0.zip
This is the basic v2.0 module.
Use with VirtueMart 1.1.x

Features:
- allows for bundled and unbundled items.


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

* vm_ups_v2.0.zip (53.18 KB - downloaded 953 times.)
* vm117-UPSv2.2011.02.11.zip (300.84 KB - downloaded 71 times.)
* vm118-upsv2.2011.04.19.zip (276.62 KB - downloaded 58 times.)
« Last Edit: May 05, 2010, 08:30:17 AM by lowmips » Logged

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: 1134


WWW
« Reply #1 on: November 03, 2008, 16:18:51 PM »

Updated to add debug notice for zero weight orders.
Logged

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: 1134


WWW
« Reply #2 on: November 06, 2008, 14: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)
« Last Edit: November 06, 2008, 19:17:57 PM by lowmips » Logged

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: 50


WWW
« Reply #3 on: November 07, 2008, 11:15:36 AM »

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
Logged

lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #4 on: November 07, 2008, 11:38:21 AM »

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
Logged

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: 50


WWW
« Reply #5 on: November 07, 2008, 12:35:08 PM »

Thank you very much!
Logged

rinny
Newbie
*
Posts: 17


« Reply #6 on: November 07, 2008, 13: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.
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #7 on: November 07, 2008, 13: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
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
rinny
Newbie
*
Posts: 17


« Reply #8 on: November 07, 2008, 13: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. Sad
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #9 on: November 07, 2008, 14: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
Logged

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: 1134


WWW
« Reply #10 on: November 09, 2008, 20:31:55 PM »

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!
Logged

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


« Reply #11 on: November 10, 2008, 23:34:37 PM »

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.
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #12 on: November 11, 2008, 06:39:50 AM »

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
Logged

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


« Reply #13 on: November 11, 2008, 07:48:45 AM »

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
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #14 on: November 11, 2008, 08:07:56 AM »

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
« Last Edit: November 11, 2008, 08:21:54 AM by lowmips » Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
Pages: [1] 2 3 ... 44   Go Up
Print
Jump to: