13 replies [Last post]
HiPPLeS's picture
Offline
Joined: 09/20/2008
Juice: 46
Was this information Helpful?

Hello again.

I'm setting up a webstore here: www.hempandcompany.com (there are definitely still display errors and other things I'll have to work on, but things are coming along gradually. Feedback always appreciated.) Here's the current issue I'm working through...

We ship to the US or to Canada. (Orders to the US cost $5 more for shipping.)
Most of our individual items don't need to change this too much. (Usually each extra item adds one dollar to the shipping cost.)
However, certain heavy items (bulk seeds, etc) should add more, depending on their size / weight.

Currently - Flatrate shipping is set up with one base rate for Canadian orders ($9), and one for US ($14). Then individual products can add to that flat rate as they're added to the order (+$1 by default).

Unfortunately though, I can't seem to find a way to adjust the shipping based on product attributes. While I can change the flatrate shipping value PER PRODUCT, there's no setting to do it via an ATTRIBUTE. I know that some shipping method modules DO allow for attribute adjustments though (like the ship by weight-quotes). However, if we use the weight module then I can't set different base shipping values by country (so I can set the adjustment for weight, but then the base value doesn't change by country).

So, essentially, I'm looking for some combination of features from both quote methods (or the ability to use them together transparently)
I'm looking for a way to adjust flatrate shipping quotes via product attributes (so I can still modify the base price by country)
OR I'm looking for a way to add 5 dollars to weight quotes on orders going to a particular country.

Any comments / alternate solutions / ideas would be appreciated. Am I just not configuring this all correctly, or am I inherently limited to doing this one way or the other?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6854
Re: Shipping: Flatrate Adjustments by Attribute

What you really need is something that's been on my list for a while: getting weightquote to act like flatrate with the multiple options. Setting up different flatrate adjustments per attribute would be an administrative nightmare.

Flatrate and weightquote used to be extremely similar. It shouldn't be too hard to make them that way again. You could almost copy the files and then do a search and replace for the module name.

a_c_m@drupal.org's picture
Offline
Bug Finder
Joined: 01/02/2008
Juice: 288
Re: Re: Shipping: Flatrate Adjustments by Attribute

Longwave is doing this today/tomorrow sponsored by Openly Connected

longwave's picture
Offline
Joined: 09/20/2008
Juice: 580
Re: Re: Re: Shipping: Flatrate Adjustments by Attribute

Attached is a modified version of uc_weightquote that supports multiple weight-based shipping rules, in the same way that uc_flatrate does. It's based on the Ubercart 1.7 version and includes an upgrade path from the previous version of the module.

I've also included a patch that can be used against current Ubercart 1.x CVS rather than having to replace the entire module.

AttachmentSize
uc_weightquote_multi.tar.gz 4.66 KB
uc_weightquote-5.x-1.7-multi.patch 24.62 KB

--
These forums are for general support questions about Ubercart.
Bug reports and feature requests should be posted at http://drupal.org/project/issues/ubercart
Latest API documentation can be found at http://api.ubercart.me/

a_c_m@drupal.org's picture
Offline
Bug Finder
Joined: 01/02/2008
Juice: 288
Re: Re: Re: Re: Shipping: Flatrate Adjustments by Attribute

works really nicely - good work longwave Smiling

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6854
Re: Re: Re: Re: Shipping: Flatrate Adjustments by Attribute

Here's a patch for the 2.x version of uc_weightquote. If I can get some people to test it, I can put it (and longwave's version for 1.x) in the next version.

AttachmentSize
multi_weightquote.patch 26.19 KB
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6854
Re: Re: Re: Re: Re: Shipping: Flatrate Adjustments by Attribute

Works as near as I can tell. Committed both versions.

merch's picture
Offline
Joined: 08/26/2009
Juice: 4
Re: Re: Re: Re: Re: Re: Shipping: Flatrate Adjustments by Attrib

Hi, Did this make it into RC6?

edit: hmm on rereading looks like its not what i was needing.

Im looking for a way to change the flatrate shipping of an item based on a chosen atribute. Lyle said this would be an administative nightmare. On my site we only have a few items that have atributes that effect shipping. Any suggestions on how to get the functionality I require.

ryanschmidt's picture
Offline
Joined: 11/17/2008
Juice: 235
Re: Re: Re: Re: Re: Re: Re: Shipping: Flatrate Adjustments by At

Did you ever find a solution for this? I'm trying to make certain attributes free shipping (e.g. Samples, etc).

philsward's picture
Offline
Joined: 09/15/2007
Juice: 125
Allow Attributes to act like individual products

I personally, would love to see in the adjustments area or something, where each attribute takes on the same weight, dimension, etc. properties as the default product. I mean, technically, if you are changing an attribute, isn't it a completely different product from what's being advertised? I realize that a tee-shirt with a logo printed on it, isn't going to make a big difference if it's a small vs. large when you're talking weight or shipping dimensions, but when you start talking other items that are the same line of product but have different weights or dimensions, it can drastically change the shipping price through a quote like UPS. Right now, my only option is to set the default product with the heaviest weight and largest dimensions of the biggest attribute and just charge a customer the maximum for shipping... You might suggest "break them out into different products". Well, as mentioned before, this becomes an administrative nightmare. When a product is added to the cart with a specific attribute, it's treated like a separate product and thus, so should the shipping.

designate's picture
Offline
Joined: 11/16/2009
Juice: 80
Shiiping costs attibutes

[@ philsward] I installed the combine shipping module. I have a product with 3 attributes, 1 liter, 2.5 liter and 5 liter. I set up CA with defferent rates for 3 volumes. How to select a or which shipping method since the list only shows radiobuttons?

designate's picture
Offline
Joined: 11/16/2009
Juice: 80
Got it working

For those who would like to know; got it working by changing the number off values within the contenttype manage fields settings. Instead of radiobuttons I have checkboxes now to select multiple [matching with attributes] shipping methods.

philsward's picture
Offline
Joined: 09/15/2007
Juice: 125
RE: Shiping costs attibutes

@designate

I don't follow 100% what you were trying to accomplish but It sounds like the "fix" was to enable more than one shipping method for a product I.E. Combine Shipping? I suppose that might work but I will warn you it wasn't exactly designed to work that way... hit me up if you get it going so I can see what you're talking about.

griz's picture
Offline
Joined: 02/25/2011
Juice: 61
It needn't be that bad

It doesn't have to be an admin nightmare. Something along the lines of uc _custom _price would be fine. I'm even alright with the fact that we're expected to write our own shipping modules, but what's needed is documentation.