ElectroMonkey Posted August 24, 2006 Share Posted August 24, 2006 Hello, This is my first post, although I frequent these forums for information often. I have some problems. I'm using the UPSXML contribution along with the 0 weight free shipping. Works great except for a few issues. My problems are as follows: 1. When I have 1 item with free shipping it displays the shipping method as overnight delivery. How can I set this to either show blank or say something else, such as "Free Freight", when this method is selected. 2. If I have a shopping cart with 1 free freight item and 1 paid freight item it is increasing the cost of my freight. I have tare weight and all of that other stuff set correctly. 3. Very similar to the last question, maybe the same fix, If I order 15 of 1 item the shipping cost is way off. It sis displaying $1000.00 when it should only be like $600.00. Let me know if you need to see a certain piece of code. Thanx in advance, I really appreciate all the work people have done putting this together. Great contributions! :thumbsup: Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted August 24, 2006 Share Posted August 24, 2006 My problems are as follows:1. When I have 1 item with free shipping it displays the shipping method as overnight delivery. How can I set this to either show blank or say something else, such as "Free Freight", when this method is selected. I suppose the cause of the overnight delivery is the fact that if the weight is zero, it indicates to UPS that the shipment is a letter (see developers information RSS-WW-XML.pdf, page 44): Shipment/Package/PackageWeight/Weight : The value of the package weight. 0.0 if PackagingType = Letter Otherwise 0.1 - 150.0 I don't know how this free shipping thing works, so I have no idea about how to fix it.2. If I have a shopping cart with 1 free freight item and 1 paid freight item it is increasing the cost of my freight. I have tare weight and all of that other stuff set correctly. 3. Very similar to the last question, maybe the same fix, If I order 15 of 1 item the shipping cost is way off. It sis displaying $1000.00 when it should only be like $600.00. Enable logging (check upsxml.php not far from the top for instructions), use a full path to the log file (check configure.php to know what that should be) and see what is sent to UPS and what is returned. Now you are in the dark so you can only guess what goes wrong. Quote Link to comment Share on other sites More sharing options...
ElectroMonkey Posted August 25, 2006 Author Share Posted August 25, 2006 Enable logging (check upsxml.php not far from the top for instructions), use a full path to the log file (check configure.php to know what that should be) and see what is sent to UPS and what is returned. Now you are in the dark so you can only guess what goes wrong. First, thank you for your quick response! Where do I download that pdf? Ok, I enabled logging and I see what is happening. For parts 2 and 3 of my question it is submitting the total order cost for each package, therefore it is over insuring my order. Example: You purchase 5 items at $100.00 ea. that weigh 25 lbs each. When it submits to UPS it is sending 5 packages weighing 25 lbs ea. (correct) but each cost is $500.00. So total it is insuring $2,500.00 worth of product boosting my shipping cost through the roof. Any ideas on how to correct this? Or has this been answered before on a thread someone can point me to? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
ElectroMonkey Posted August 25, 2006 Author Share Posted August 25, 2006 First, thank you for your quick response! Where do I download that pdf? Ok, I enabled logging and I see what is happening. For parts 2 and 3 of my question it is submitting the total order cost for each package, therefore it is over insuring my order. Example: You purchase 5 items at $100.00 ea. that weigh 25 lbs each. When it submits to UPS it is sending 5 packages weighing 25 lbs ea. (correct) but each cost is $500.00. So total it is insuring $2,500.00 worth of product boosting my shipping cost through the roof. Any ideas on how to correct this? Or has this been answered before on a thread someone can point me to? Thanks in advance! Well, I think I might have found my next clue. In upsxml.php around line 86 { $this->pkgvalue = ceil($order->info['subtotal']); } How can I change this to pull the actual item weight, instead of the subtotal? Thanks! Quote Link to comment Share on other sites More sharing options...
ElectroMonkey Posted August 25, 2006 Author Share Posted August 25, 2006 Well, I think I might have found my next clue. In upsxml.php around line 86 { $this->pkgvalue = ceil($order->info['subtotal']); } How can I change this to pull the actual item weight, instead of the subtotal? Thanks! I answered my own question, which I guess is a good thing. One way you could do this is: upsxml.php line 707. <MonetaryValue>". number_format(($this->pkgvalue/$this->items_qty), 2, '.', '')."</MonetaryValue>\n". This fixes most of my problems, however, If I have a product with free shipping (0 weight) how would I go about telling ups not to include the 0 weight items' cost in my shipping quote? Any takers? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.