14 replies [Last post]
michels's picture
Offline
Uber DonorBug FinderInternationalizationizer
Joined: 08/12/2007
Juice: 205
Was this information Helpful?

The "World Quotes" Contribution is no longer maintained and doesn't work well with the common Ubercart-Versions.
Because it took some time for me to figure out, how to set up international shipping rates with uc_flatrate and workflow-ng (I've never used that before), I thought it would be useful for others and wrote a quick tutorial.

This is how to setup different shipping quotes for different countries:

1.) Make sure that you have activated the flatrate and the workflow-ng module.
2.) Go to "admin/store/settings/quotes/methods/flatrate" and "Add a new flat rate shipping method". Name it sth. like "Shipping cost for germany" and put a value in "Base price".
3.) Now go to "admin/build/workflow-ng". You must see a new row beneath "Active configurations" that is named sth. like this: "Shipping quote via Shipping cost for germany".
4.) Click on the label(!), not on edit (it took me about 1/2 hour to figure this out.. arg)
5.) Click on "Add a condition", select "Check an order's shipping country" and choose the country you want to sum up the flatrate value.

Hope that helps those people who used the "World Quotes" contribution in the ubercart-betas.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Howto: Using Flatrate+Workflow instead of uc_worldquote

Thanks, michels. I agree, the Edit link vs. label thing is confusing, but I'm glad you stuck with it and got it all working! Smiling

vicspanner's picture
Offline
Joined: 09/11/2008
Juice: 11
Flatrates

Thanks for your excellent article. Thanks to this I was able to implement the following shipping regions using flatrate + workflow for the following regions:
UK Mainland
Highlands + Islands
Europe
USA + Canada

AdamR's picture
Offline
Joined: 01/06/2009
Juice: 23
Re: Flatrates

thanks....

terry22's picture
Offline
Joined: 02/16/2009
Juice: 41
Hi, thanx for this method

Hi,
thanx for this method that is very useful.

As I have vendors from many countries(using marketplace),

I would like to have 4 flat rate shipping methods:
-local
-EU
-USA
-rest of the world

What I'm looking for is a way to compare the shipping country of the customer and the country of the vendor/product to select the "local" shipping rate.

Do you think that is it possible using workflow-ng?

thank you for your help

rk23's picture
Offline
Joined: 10/18/2008
Juice: 64
how to enable uc_flatrate

Hi,
I installed the latest uc2 RC6 , ran update.php, but neither
/admin/by-module
admin/build/modules/list
list flatrate as an option to be enabled,

so point #2
admin/store/settings/quotes/methods/flatrate
is moot because there's no flatrate method in my install.

There does seem to be a
/sites/all/modules/ubercart/shipping/uc_flatrate
directory
as part of the standard install, but the rest of ubercart and drupal hasn't recognizing it.

Any tips ?

Thx,
RK

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: how to enable uc_flatrate

rk23, is there a uc_flatrate.info file in that directory? That's what Drupal should need to recognize it as a module. You may want to download Ubercart again and reinstall it.

spidersilk, yes, new in RC 6 (OK, really 4, but you shouldn't use that), the uc_weightquote module acts just like uc_flatrate with multiple shipping quote methods.

rk23's picture
Offline
Joined: 10/18/2008
Juice: 64
Hi, just getting back to

Hi,
just getting back to this after a horrendous sept.
there was no uc_flatrate.info file , so I reloaded uc (RC 6) and

An error occurred. .../update.php?id=25&op=do Fatal error: Call to undefined function db_num_rows() in /home/kettles/k2008c/d5/sites/all/modules/ubercart/shipping/uc_flatrate/uc_flatrate.install on line 161

So that's no good.

I'm willing to start a clean install of our site as long as it has dr6, latest ubercart and some relatively easy way to ship to US domestic, CA and everywhere .. with cost = base + $/lb * weight

So is there a workflow-ng for DR6 ( I don't see it http://drupal.org/project/workflow_ng ) ?
and by the instructions that started this post, that's a gating item ..
or do we use this module: http://drupal.org/project/rules

Any tips or help are appreciated. .
Thx,

KingAndy's picture
Offline
Joined: 04/01/2009
Juice: 95
One Year Later

The "Call to undefined function db_num_rows()" error suggests you're trying to run Drupal 5.x code on a Drupal 6.x installation (they dropped the db_num_rows function for D6 because not every database supports it).

Workflow-NG didn't make it through to Drupal 6, but since Ubercart found it so useful they copied all its functionality into a module they called Conditional Actions. It comes packaged with UC, and should be able to do pretty much everything W-NG did.

spidersilk's picture
Offline
Joined: 07/20/2009
Juice: 14
By weight instead of flat rate?

I was looking at Worldquotes and it looked perfect for the needs of the store I'm working on - until I realized it was no longer maintained and apparently didn't work with any currently available version of Ubercart. Sad

This approach seems to be what is now being recommended, but I can't use flat rate, because the different products in this store cost different amounts to ship. What I need is to be able to do weight-based shipping, but with three different rates depending on the country (Canada/US/Everywhere Else).

Could this method be modified somehow to work with the uc_weightquote module instead of uc_flatrate? I don't really understand what workflow-ng is supposed to do, so this is all a bit bewildering to me at the moment (and the fact that it's 4am probably doesn't help much).

pushhockey's picture
Offline
Joined: 01/04/2010
Juice: 4
Re: Howto: Using Flatrate+Workflow instead of uc_worldquote

This still only gives me radio buttons that the customer must select - is there any way to make this automatic so when they select their country at checkout it will add the correct post?

Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.....sure this is easy but just can't seem to get it to work.

Thanks!

KingAndy's picture
Offline
Joined: 04/01/2009
Juice: 95
Re: Re: Howto: Using Flatrate+Workflow instead of uc_worldquote

If your conditional actions are set up so that any customer is only offered one quote, that quote should be automatically selected.

vicspanner's picture
Offline
Joined: 09/11/2008
Juice: 11
Flatrate + Workflow

I setup Flat Rates for the following areas:
UK Mainland
Highlands + Islands
Europe Shipping
USA + Canada
Rest of World

These then appeared in the Workflow "Add a new configuration" section under:
Quote:
Get shipping quote via...

Then you just set your conditions to match each area.

For example Country = (then just select the Countries you require in the multi-select box).

pushhockey's picture
Offline
Joined: 01/04/2010
Juice: 4
Re: Flatrate + Workflow

Thanks got it working as you said, using workflow as well!! Whoop one less problem, now i just need to work out how to workflow payment methods! And a good direct debit module...any help would be great!

Enjoy!

joanpc's picture
Offline
Joined: 06/04/2008
Juice: 59
uc_global_quote

I just published an ubercart 2.x module with similar features than uc_world_quote

uc_global_quote

It's easier to maintain quotes up to date than using flatrate+workflow.

edit: Now it's a drupal.org hosted project and Ubercart 3.x version available.