Guest Posted May 28, 2003 Posted May 28, 2003 Hey all, Ive searched the forums for about 2hrs and cant really find any relevant data (and I tried to word it as many ways as possible). Problem is, some products can only be shipped by freight, or some can be shipped by USPS, or some can be UPS 2day or ground etc. Main thing I'm having a problem with is thinking of an effective way to add these limits to each product. Has anyone done this before or is there somehow a mod for it? Thanks in advance.
jgkiefer Posted June 15, 2003 Posted June 15, 2003 Surely I'm not the only one needing to do this? No I am having the same problem. I don't understand why the option for including or excluding shipping options is not included in the default setup? Anyway I am having the same problem.
Daemonj Posted June 15, 2003 Posted June 15, 2003 Use tax classes. Create a tax class for your freight items. Then set your freight shipping method for that tax class. Follow through with the rest of your items. That should do what you want. ;) "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
jgkiefer Posted June 22, 2003 Posted June 22, 2003 Use tax classes.Create a tax class for your freight items. Then set your freight shipping method for that tax class. Is there somewhere I can find out how to do this?
mugitty Posted June 22, 2003 Posted June 22, 2003 I've also been struggling with this issue for some time now. I took a look at the suggestion for using tax classes and (I must be a little slow) don't understand how to get it to work, so here's a little challenge for someone much more adept or imaginative at coding than I: As an example, the following is generally what would be desired (specific weights and shipping methods might vary to the individual shop owners' desires). USPS, UPS and freight options are available for shipping and we only want to show the appropriate options per the given conditions. For US shipments, except Hawaii and Alaska: 1) For any package (or total order) under 4 lbs., show USPS Priority Mail, UPS Second Day Air, UPS Next Day Air (generally, at somewhere around 4 lbs., UPS Ground starts being less expensive than USPS PM) 2) For any package (or total order) between 4 lbs. and 70 lbs., show UPS Ground, Second Day Air and Next Day Air 3) For any package (or total order) over 70 lbs., show freight method with the explanation that a specific quote for that shipment will be provided before processing the order. For Alaska, Hawaii and selected International destinations: 1) For any package (or total order) to 70 lbs., USPS Global Priority Mail - Variable Weight Envelope (will be dropped from options by USPS rate chart at the appropriate weight), USPS Airmail Parcel Post, USPS Economy (Surface) Parcel Post 2) For any package (or total order) over 70 lbs., show freight method with the explanation that a specific quote for that shipment will be provided before processing the order. Orders containing multiple items that reach a given weight criteria as described above determine the shipping options shown for that weight and destination, so the entire process for checking which options to show is dependant solely on total order weight and shipping destination. ...any takers? :D ... 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!
mugitty Posted June 22, 2003 Posted June 22, 2003 I forgot one condition... Some domestic (lower 48 states) customers may have a shipping address not deliverable by UPS, so the USPS Priority mail option may need to remain available for shipments up to 70 lbs. :oops: ... 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!
mugitty Posted June 22, 2003 Posted June 22, 2003 Lance and Jeff, I hope this is all in keeping with what you are trying to accomplish :) If the only criteria is weight in determining whether the freight option and no others gets shown, then a simple switch that says something like: if order total weight is under 'X' lbs., show USPS and UPS options else show freight option might do the trick? ... 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!
dmGremlin Posted July 6, 2003 Posted July 6, 2003 I'm working on a potential solution to this... actually, I have a complex idea for a mod but it's going to take me some time to figure this out, as I'm not too familiar with .php 'phrasing'... there's a code in the top of most shipping modules to disable based on zone... which won't really help you if you want to choose different shipping options to the same zone. However, I think a competent .php programmer would be able to modify this code fairly easily - so it's going to take me quite an effort. In any .php wizards are watching, here is my idea. There is this code in the top of the shipping modules: if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_ITEM_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_ITEM_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } what this does as far as I can tell is gets the delivery zone from somewhere, and checks it against the zones to be used in that shipping module... if the delivery zone is outside the accepted zones for that module, that module is not displayed. If you were to modify this code to get the shipping weight (global $shipping_weight?), and use an if statment like 'if $shipping weight >= '70' { $check_flag == false; break; } - and that would disable that module if the shipping weight were over 70... know what I mean? On a more complex level, I'd like to add database fields to each product to be turned on / off by a checkbox something to the effect of 'Disable Shipping Type' and then add a field for each shipping type, then you would add a database query to the top of each shipping module that would scan all the products in the shopping cart to see if there is a product that disables that module... My first project though, is to figure out how to call individual variables like that from the product table in the database... I'm going to try to add a shipping cost field to the product database so that you can define an individual shipping price per item (without using the weight field - so this can be used in combination with the multi-vendor shipping mod or other shipping mods). Adding fields to the product database is simple for me, but I haven't yet figured out how to call these variables into any given shipping module... or maybe I have to do it in the shopping_cart.php so it can correctly multiply the quantity of an item in the cart by an imported variable? This could take me a while, so any insights would be appreciated. If I get enough help, I'll package these ideas as contributions and upload them when I'm done. -D. M. 8)
dimports Posted November 19, 2003 Posted November 19, 2003 this would be an excellent module that i think is vital for a lot of businesses. anybody cracked the problem yet?
ladymindy Posted February 4, 2004 Posted February 4, 2004 Has anyone gotten anywhere with this issue for a module? I sure could use to deistinguish between freight and shipping.... based on weight, or item catagory, etc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.