5 replies [Last post]
TechMosaic's picture
Offline
Joined: 12/12/2007
Juice: 13
Was this information Helpful?

I sell chocolates online with ubercart, and need to do a "summer shipping rule" that all meltable items need to have a $6.00 summer shipping fee to upgrade the shipping to second day air.

(I use DHL, and so we do not link in to a rate chart, I calculate/estimate the shipping based on the product weight,etc.)

What is the "best" way to accomplish tacking on this extra shipping fee?

I could give a product a class? of "meltable" and then have some sort of rule say that if the class is meltable, then add the surcharge.

The challenges are:

1) I would like to toggle this rule on and off easily (as there is no need to ship meltable chocolate second day air in the winter).
2) I would like the person who orders to be able to see why the shipping rate that was calculated for them is so high - the upgrade to second day air needs to be apparent to them, not just appear with no explanation. Maybe if the meltable rule is in effect, also show this note during the checkout process
3) Some products are not meltable, but if they buy even one meltable item, the whole package needs to be second day air and get the surcharge.

I am just familiar enough with Ubercart to know that there are probably 3 different ways to do what I need, and so before I jump in, I am hoping to get some insight on which way is the most elegant.

TechMosaic's picture
Offline
Joined: 12/12/2007
Juice: 13
Anyone home?

Still hoping for feedback on this topic. If there is another thread or documentation on this, I cannot find it, and would appreciate it if someone can toss me a link.

thx

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
TechMosaic wrote: I could
TechMosaic wrote:

I could give a product a class? of "meltable" and then have some sort of rule say that if the class is meltable, then add the surcharge.

The challenges are:

1) I would like to toggle this rule on and off easily (as there is no need to ship meltable chocolate second day air in the winter).
2) I would like the person who orders to be able to see why the shipping rate that was calculated for them is so high - the upgrade to second day air needs to be apparent to them, not just appear with no explanation. Maybe if the meltable rule is in effect, also show this note during the checkout process
3) Some products are not meltable, but if they buy even one meltable item, the whole package needs to be second day air and get the surcharge.

The way I would do it is:

1) Create a "meltable" product class.
2) Create two weight rates, one with a weight per pound for the non-meltables and one with a base rate (=your surcharge) + a weight per pound, for orders with meltables.
3) Name the two rates something meaningful to your customer, like "Shipping" for your regular shipping and "Second-day Air - Meltable items" for your special shipping.
4) Configure the Workflow-ng rules so that the first weight rate applies only if the order does *not* contain meltable items, and the second applies only if the order *does* contain meltable items.

Your customer will then see only one shipping choice at checkout.

The problem with this approach is that, unlike uc_flatrate, the core uc_weightquote module doesn't allow you to create more than one weight quote method. So you would have to modify uc_weightquote to do this, following the model provided by uc_flatrate.

I think this modification to uc_weightquote really should be put into core, but someone has to create it first...

<tr>.
TechMosaic's picture
Offline
Joined: 12/12/2007
Juice: 13
Re: TechMosaic wrote: I could

Thanks for the idea.
I think I need to do some upgrades first.
I am not seeing some features I read about in other posts, and I do not see how to add a second weight rate, but I will try again after I have put the store back on more solid footing. It was installed in December, and not touched since.
I appreciate your responding - thanks.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
TechMosaic wrote:... I do
TechMosaic wrote:

... I do not see how to add a second weight rate ...

You can't currently, that's what I said - see the sentence starting with "The problem ..." in my above post. My solution requires a small amount of custom coding.

<tr>.
a_c_m@drupal.org's picture
Offline
Bug Finder
Joined: 01/02/2008
Juice: 288
Re: TechMosaic wrote:... I do

its also talked about here :

http://www.ubercart.org/forum/support/7127/shipping_flatrate_adjustments...

I'm looking to get this bit of coding done v soon, im in IRC come talk number with me Smiling