15 replies [Last post]
Jmmb's picture
Offline
Joined: 08/23/2007
Juice: 301
Was this information Helpful?

Hello,

I've been searching the forum for a while, but can't find exactly the solution I'm looking for. This is the scenario:

On a website, the default shipping type is UPS which uses weight to get its quotes (like normal). But for certain products (which are very heavy), they want a flat rate method based on the state it's being shipped to.

So i've set up a new product class "Flat Rate Shipping" (and re-entered those products). I then set up conditional actions to check the state and product class. If both return true, then it fetches the flat rate. This works perfectly if there's just this type of product in the order.

However, if there is an order with both a Flat Rate and a UPS product, it currently shows both types of quotes on the checkout page. This is both incorrect and confusing to the customer. So I'm trying to find a way for Ubercart to add both the Flat Rate and UPS charges together to provide one combined shipping quote.

Stated differently - if there are multiple UPS quote products, Ubercart should combine them as per normal. And if there is also a Flat Rate product, it should add the appropriate flat rate onto the charge, with the result shown as one combined charge.

Thanks for any input!

Jim

(Drupal^Ubercart) * (Design^Development^Hosting) = Sundays Energy

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Combining Flat Rate + UPS Quotes

So the real problem is that Ubercart doesn't have a way to tell when you want to combine shipping quotes and when it should present a choice to the customer. Since most shipping providers return multiple rates that are choices (2nd day air vs. overnight vs. ground, etc.), this was the model that was chosen.

I recommend writing up a small custom shipping method that acts as a wrapper for flatrate and UPS. Its shipping method callback will call the others' functions with the appropriate products and then combine the results in the correct way.

Jmmb's picture
Offline
Joined: 08/23/2007
Juice: 301
Re: Re: Combining Flat Rate + UPS Quotes

Thanks Lyle for the response, it's very helpful.

I can see how this is confusing to implement, and the client is indeed using both UPS Ground & UPS Next Day Air on their site. Would it help things if they removed, say, Next Day Air so both UPS and Flat Rate presented only one option each? If not, then a custom module it is!

Jim

(Drupal^Ubercart) * (Design^Development^Hosting) = Sundays Energy

Travis's picture
Offline
Joined: 09/06/2010
Juice: 8
Re: Combining Flat Rate + UPS Quotes

Have there been any developments on this? I have a similar situation on the site I'm developing. Our products have different shipping rates dependent on product class. Books have a different shipping rate than Posters. Also Poster shipping costs are in groups of 5 (5 posters can fit in one mail tube). I have all the quotes set up based on delivery destination and quantity, but I need to develop something to combine the rates if a shopper has Books and Posters in one cart.

I don't mind doing some coding to get this set up, but I'm not sure where to start.

EDIT: It would seem most logical to be able to set up distinct Shipping Types for each product class rather than everything being stuck at "Small package." However, it seems that shipping types are hard-coded and I would need to create a module implementing hook_shipping_type() to add more types. Am I missing anything?

jdln's picture
Offline
Joined: 03/08/2010
Juice: 184
Re: Re: Combining Flat Rate + UPS Quotes

Subscribing.

jeremylichtman's picture
Offline
Joined: 01/21/2011
Juice: 7
Any updates on this one?

Just wondering if there have been any updates on this one.

islanddogg's picture
Offline
Joined: 02/11/2011
Juice: 4
Re: Combining Flat Rate + UPS Quotes

I have the same type of problem, but I need to have the UPS quotes only for products that have shipping charges while not charging shipping for products that have free shipping. Right now, if a the cart contains a product that has shipping charges and one that has no shipping charges, the customer gets an option for free shipping or one for UPS. What I need is for only the UPS option to show up with charges for the products with shipping charges.

philsward's picture
Offline
Joined: 09/15/2007
Juice: 120
Same Problem

I had a guy write a custom shipping module about a year ago for Estes Express to pull quotes through that freight carrier. $2000 later, we decided to shut the Estes shipping module off because we couldn't combine the UPS items and the Estes items into one single shipping price. We don't currently give shipping options such as 2nd day air, ground etc. Everything UPS goes ground as a "customer supplied package". A year later, I am now trying to accomplish the same thing through flat rate quotes, but running into the same issue of not being able to combine the rates and remembering why we shut the Estes shipping off in the first place. My solution? Add a paypal buy-it-now button to the specific freight products, which presents its own set of undesirable problems...

I know the "answer" is to write a custom module. The problem is that I don't know how to program... I have a feeling that there are a lot more of us that use Drupal, who have been able to make it work, without knowing a syntax of programming, but we feel inferior to speak out and express our lack of knowledge in that area for fear of being lambasted by the folks who CAN program (Drupalers are pretty good about being nice, but past experiences with other softwares have dictated otherwise)... In my case, I have to rely on others to make the stuff work BUT, the problem with adding custom code is that you then run into the issue of maintenance of the module. If a module isn't actively maintained, I won't use it. I don't even like the idea of using the Ubercart contrib modules for fear that future updates will break the contrib and cause all sorts of problems that I can't even begin to troubleshoot, let alone fix... You might be saying to yourself "Well, learn to program!" Yeah, I've tried... I just can't wrap my head around it...

Sorry for the rant... I'm just a bit frustrated with the issue at hand and my own incompetence, but hopefully it will shed some light on the fact that not everyone has the knowledge to just go in and create some custom code to make it work.

Has anyone figured out a workaround?

jeremylichtman's picture
Offline
Joined: 01/21/2011
Juice: 7
Combinations...

Hi Jim,

Speaking as somebody who is a programmer, with some experience writing custom Drupal modules, this problem has me stumped as well. The reason being that the module has been designed in a very specific way, and its structure just doesn't easily lend itself to being modified for this particular requirement.

I looked at what it would take to allow the flat rates to be combined, and settled for persuading my customer to change their rate structure instead.

If we make enough noise here, possibly somebody with experience in this particular module will take notice.

Regards,

Jeremy

bancarddata's picture
Offline
Joined: 07/08/2011
Juice: 36
Re: Combinations...

I had recently posted about a number of shipping requirements I have on my plate (http://www.ubercart.org/forum/support/22241/forcing_certain_shipping_opt...) and have yet to receive a reply. This thread probably tells why that is the case. I would hereby like to add to the clamor and offer what help I can (monetary mostly, I would venture). Anyone interested in taking on the task of making the shipping engine more flexible?

end user's picture
Offline
Joined: 01/11/2008
Juice: 1198
Re: Combining Flat Rate + UPS Quotes

I'm having a Purolator module finished in the next few days and will be hiring someone to do some changes to shipping. It wont' be elaborate but what I need is to be able to have at least Flat reat shipping products to be added to the line item while normal products have the option between UPS/Pur/Canada Post.

bancarddata's picture
Offline
Joined: 07/08/2011
Juice: 36
Re: Re: Combining Flat Rate + UPS Quotes

Perhaps we can work together on this so we can have something that can be contributed back to the community to help out everyone with this challenge. If you have a good programmer already lined out I am interested in seeing how we can work this out.

end user's picture
Offline
Joined: 01/11/2008
Juice: 1198
Re: Re: Re: Combining Flat Rate + UPS Quotes

Well the Purolator module is pretty much finished and working the with Dev server I"m just waiting to get the Production server access from Purolator. Once thats done I'm ready for the next step, now its not curial to my store but would be a nice feature.

bancarddata's picture
Offline
Joined: 07/08/2011
Juice: 36
Re: Re: Re: Re: Combining Flat Rate + UPS Quotes

Did you hire the programmer yourself to build that module? If so, did they do a good job and are they interested in taking on a project such as this? I think the main difficulty with this is just the fact that there are many shipping module options out there, and many different ways to go about shipping. And since I don't know a lot about how the current shipping system works, I am not even sure if it is reasonably feasible to program to the various needs I am running up against:

  1. Same as everyone else, I'd like to be able to designate specific products as flat-rate products, designate a shipping cost to them, and have them excluded from any other shipping quotes that may be generated for other, non-flat-rate products in the cart.
  2. I need to be able to limit shipping options when the customer chooses COD as payment. Specifically, I want UPS to be the only option.
  3. I would also like to limit shipping options based on ship-to country. There might be a way to do this already, but I have not found it. Specifically, I want all US addresses to show only FedEx options and all foreign addresses to show only UPS options.
  4. Lastly, and least importantly, I'd like to be able to specify that a product is "able to be mailed" and if all the products in the cart are "able to be mailed" at checkout time, then show USPS as an option

- Scott

philsward's picture
Offline
Joined: 09/15/2007
Juice: 120
Combine Shipping

I have a programmer working on a "combine shipping" module right now and as soon as we get a few bugs worked out, I plan to release it to the community. Hopefully within the next month or so.

bancarddata's picture
Offline
Joined: 07/08/2011
Juice: 36
Re: Combine Shipping

That is awesome news! Can you explain specifically the functionality that the module will have when its all said and done?