mivox Posted August 9, 2004 Share Posted August 9, 2004 Is there any way to stop the UPS Choice module from splitting large items into multiple packages? If possible, I would like it to return the error message on any order over 70lbs... Our store sells a number of over-size and/or over-weight items, and I'm afraid it's just not possible to split a large solar panel or a laundry machine into multiple boxes. Not to mention, having a customer receive an (incorrect) $600 shipping quote on a 24 box shipment, when they're actually supposed to be paying (much less) for ground freight on a single large item tends to scare them away during checkout. Basically, I just need to know how to add a quick check at the beginning of the module that says, if weight >70, show the error, if weight <70, proceed with normal function... I'm going to try to tinker with it myself, but I'm afraid I've not got much idea how to do it. Quote Link to comment Share on other sites More sharing options...
mugitty Posted August 10, 2004 Share Posted August 10, 2004 I'm looking for an answer to this also... It seems that the place to start would be in catalog/includes/classes/shipping.php and amend the code there so that any given item in the cart cannot be split into multiple parts - this before it reaches the part of that file where the multiple boxes are determined. Then in the shipping module itself, some instruction that if any one of the "boxes" in the shipment is over the max weight determined in the Admin setup, the shipping method not be enabled. An alternative to this is what a couple of the guys are working on in re-writing the Multi Vendor Shipping module: To be able to select shipping method(s) and origin on a per-product basis when initially adding items to the catalog I'm really sorry that I'm not up to being able to code this - perhaps someone a bit more capable than I will come forward! Quote ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
mugitty Posted August 11, 2004 Share Posted August 11, 2004 OK, I've had a chance to look at this a little further... If you go to Admin->Configuration->Shipping/Packaging->"Enter the Maximum Package Weight you will ship" and set your weight to something like 500 lbs., the shipping modules which are getting quotes through an API (I checked UPS and USPS) will not appear as shipping options when the order total is over their maximum package weight. (I believe it's 70 lb. for USPS and 150 lbs. for UPS). This does not solve the problem that might occur when several items are in a given shopping cart which could be split into multiple packages - I'll get back a bit later with some more thoughts on this scenario... I just heard the dinner bell ;) Quote ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
mugitty Posted August 11, 2004 Share Posted August 11, 2004 Since the "Maximum Package Weight you will ship" is a single common Admin setting for all shipping modules and (from what I can see) is dealt with only once in catalog/includes/classes/shipping.php if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT); $shipping_weight = $shipping_weight/$shipping_num_boxes; what I suspected is the case: If you set a large maximum weight (say 500 lbs.) and have, for example, a shopping cart that has 2 - 40 lb. items in it, USPS will disappear because the shipping class is not splitting packages until you reach 500 lb., and the maximum single package weight that the API will return a quote for is 70 lbs. Likewise, if you put 4 of these 40 lb. items in the cart, the UPS module disappears beacause the cart total exceeds 150 lbs., the UPS maximum single package weight. A possible way to avoid this might be through use of the original Multi-Vendor shipping contribution (or some variation of it). If it can be installed so that leaving the shipping method set at "none" will just allow all normal shipping modules to appear and then selecting a Multi-Vendor shipping option (FREIGHT for example) for a given item will cause those same normal shipping options to not appear and, in their place, your custom table rate (FREIGHT) module for heavier packages, that might be sufficient to deal with most scenarios. If that is achievable, then your customer who has 2 - 40 lb. items in their cart would still see the USPS and/or UPS modules with multiple packages split based on whatever "Maximum Package Weight" value you set. The customer who has the 80 lb. item in their cart for which you had set the shipping method to "FREIGHT" will only see the FREIGHT module. For mixed carts (ie 2- 40 lb. items and 1 - 80 lb. item), I would think that just having the FREIGHT module appear, reflecting the freight charge for the total weight of the cart would be acceptable. You could then write something that would appear only if there is more than 1 item in the cart to the effect of "Your shopping cart contains one or more items which can only be shipped by this method. We will determine the best means of shipping the other products in your order and will advise you if your order is sent in multiple shipments." I'm off to ponder this further, stay tuned for the next exciting episode! (might be a few days - remember I mentioned my limited abilities when it comes to writing code) :blink: Quote ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
mivox Posted August 11, 2004 Author Share Posted August 11, 2004 Thanks a million! :D I'll give the max package weight thing a try... we already have a modified module installed that appears whenever an order is above a certain weight, so if I can just make the others disappear at that point, everything should work out fine. Quote Link to comment Share on other sites More sharing options...
mivox Posted August 11, 2004 Author Share Posted August 11, 2004 Works like a charm! Only one other (customized) shipping module that needs to be tweaked, but that one only applies to a tiny percentage of our customers, so it's not too big a problem. Thanks again! 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.