installation instructions:
unzip into modules/ubercart/shipping/
configuration is under home>administer>store administration>configuration>methods
What's included:
well this was largely based on the geoshipping module and the the weight quotes module so:
you configure shipping rules where you choose the area type: country, zone, postal code, region or anywhere (special default - only applies if no other specific rules apply)
for each rule you may choose a flat rate or a per weight unit multiplication.
you choose a min and max weight range for the rule, and a max amount weight, which means order over that amount are free (shipping).
most of this was already in the geoshipping...what's new you ask?
weight units are fully supported, in each rule you choose the weight unit and the module converts rule units and product units to fit.
works with the shipping quotes module: you can see the shipping costs before the review pane.
supports regions, which will make the configuration easier.
That's it for now...
I tested it a bit, so please help me out and test....and use at own risk =)
also let me know when I should post this in the contributed modules section...
| Attachment | Size |
|---|---|
| uc_worldquote.zip | 7.16 KB |



Hi there,
Hi there,
This module could be the saint graal for all international shipper ! thanks.
However I have an error on install :
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''units' enum('LB','G','KG','OZ') NOT NULL, `conditions` text NOT NULL, ' at line 10 query: CREATE TABLE dp_uc_worldquote ( `id` mediumint(9) NOT NULL, `name` varchar(255) NOT NULL, `area` varchar(255) NOT NULL, `type` enum('code','zone','country','anywhere', 'region') NOT NULL, `rate` float unsigned NOT NULL default '0', `min_weight` float unsigned, `max_weight` float unsigned, `max_amount` float unsigned, 'units' enum('LB','G','KG','OZ') NOT NULL, `conditions` text NOT NULL, `flat_weight` enum('flat','weight') NOT NULL, PRIMARY KEY (`id`) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ; in \drupal\includes\database.mysqli.inc on line 151.Edit : Ok it's a little SQL error in the .install file :
replace :
'units'By :
`units`ant It should work.
Re: Hi there,
Ok, after correcter some error install described above and in this post the module seems to work.
Greetings, You have just created the ultimate module for international customer... I think I love you !
All geoshipping default are corrected, the integration with the shipping quote module is perfect, the idea to define regions is usefull and awesome, it's well integrated with tax.
I will continue testing and give feedback, but T.H.A.N.K.S !
If I can give one idea of new feature it's not important but it could be great, it's to allow to add new shipping quote based on this module.
For example, when you check UPS, Fedex or others modules, you have a pane with a radio button to choose what you want. It could be good to add this possibility with this module, to create several choice based on several country table to let to customer the choice of the shipment he want, but all defined with this module. I think it could be done by duplicating the module folder and change some things in the code, but it could be great to provide this in admin configuration.
Thanks again for your module !
Re: Hi there,
thanks for the reply and the bug find...updated the zip file.
You mean to have the ability to choose from different sets of rules?
Idan
Re: Re: Hi there,
Yes, I mean différent set of rules that you can name and that appears on the pane that gives shipping choice to customer.
For example you have a shipper named GLS that gives you a shipping table with all countries.
You have another shipper named DHL that gives you another shipping tables.
They have their own price to ship to england, germany, france, or others.
It could be great, with your module, to create a new shipping method, with the name of the transporter and to put the price table with your combination of region and shipping weight then.
When the customer is in checkout pane, he see 2 shipping method available for his country (if the country is filled in admin), and he can choose between DHL and GLS.
That is the idea
thanks
zmobe
World Quotes module
World Quotes module review
This is just based on looking at the code. I haven't actually installed or tested it yet. That said, it looks like it should work properly. Good job.
Things to fix:
Most of these are the same as for the Regions module, but I put them here again for completeness.
I understand that the queries to INSERT and UPDATE the quote rules were made so that NULL values can be used. db_query() doesn't easily allow that to happen. There is still a better way than to insert the data directly into the SQL string.
The best example I can show you is in uc_shipping_package_save(). When packages are first created, they won't have tracking numbers or shipping labels, so those columns should remain NULL until they are set. The function builds the query based on what information it has and INSERTs and UPDATEs only those columns. A similar technique should work for World Quote.
Hi, thanks for the feedback
Hi,
thanks for the feedback and comments...I don't really understand the what to do about the query, how should they be, and what's the problem with the null values, this was code taken for the geoshipping module and I haven't considered changing it...
Idan
Re: Hi, thanks for the feedback
ok, took care of everything except for the sql thing...
Love the module, but needs testing.
Hey there, love your module, however it needs more testing.
After the better part of a day plugging away at it I still can't get it to display the World Shipping Rates correctly when I "Click to calculate shipping". It would display $0.00 every time, but after I dug into the code for a while I figured out why but I still couldn't get it to display properly. There are some issues going on in the uc_worldquote_quote function.
uc_worldquote.module - Line 474
$units = $product->units;should read
$units = $product->weight_units;My goal was to create three regional flat-rate shipping costs: US ($15), Canada($5) and International($20). (If anyone has successfully configured something like this already please, please, please let me know how you did it.
) I had some issues when the code passes through uc_worldquote.module - function uc_worldquote_quote - Lines 498-504
$rules = uc_worldquote_get_rules();
//remove all the rules that don't apply to the pkgwieght
$rules = uc_worldquote_match_weight($rules, $pkgweight);
//remove all rules that don't apply to the shipping infomration
$rules = uc_worldquote_match_area($rules, $postal_code, $zone, $country);
The rules array is populated correctly, but then the uc_worldquote_match_weight clears all my rules before it gets to the rule filter for the area matching I need. If I comment out the function call to uc_worldquote_match_area, then I get the correct area rules returned. Not too sure how to fix this, but if I get some time I'll look into it later.
One final (super minor note), a little spelling mistake: uc_worldquote.module - Line 363
'title' => t('Wolrd Quote Shipping'),Once again. This module kicks butt! I can't wait till it's all finished. I'll lend a hand when I have more time. In the mean time, keep up the great work and many thanks.
Robin
Hi, Thanks for your
Hi,
Thanks for your comment.
The change with the units, is from the ubercart7d version...just updated right now =) the module works good for 7e too.
can you export your rules, or let me know exactly what they are, for me everything currently works great.
Feel free to pm/email me.
Idan
All contrys + regions?
I posted up the SQL which will import all the countries here:
http://www.ubercart.org/forum/internationalization/880/all_countires_and...
There is also CSV file that has a column for global regions (as per the UN groupings) which might come in handy of you want to have a default or allow other modules (i.e. postage services from various countries) to over write this with their own...
Adding permissions
In order to enable users which are not admin to configure this module, add:
/*** Implementation of hook_perm()
*/
function uc_worldquote_perm() {
return array('configure worldquote');
}
Hello, I've updated the
Hello,
I've updated the module to work with 7e. Added the permissions (thanks). and fixed the sql injection vulnerability, and a small bug.
I'll take a look the the un groups.
I'd appreciate any code review, feedback, bug reports or anything!
Idan
Hi, Sorry, don't quite
Hi,
Sorry, don't quite understand what you suggest to use the un groupings for?
I looked in the db, and currently there isn't a column in the uc_countries for a region for each country.
I simply don't understand =) I'm eager to hear any suggestions that might make this module better, although i'm a very novice coder so it might need some explaining.
Regards,
Idan
Re: Hi, Sorry, don't quite
Ah Yes, the CSV file:
http://www.ubercart.org/files/all%20countires%20and%20iso%20codes.csv_.t...
The last column should be "Region" which groups together countries in to Europe, Africa, Asia etc. The postage I assume would be similar for these regions except for the one your posting from in which case your own country would be cheaper and every other country in your region would probably be about the same.
I'm sure different postage systems will have their own grouping of countries which they might want to over these presets. you would probably need a different table for this grouping and it wold join the countries and "shipping services" table where you could define special rules for different postal/shipping services.
But if your not a coder this might be too tricky. In any case having all the countries to choose from is always handy.
thanks, I think that's a
thanks,
I think that's a bit out of my league =)
I'm using a different countries/zones list. I think ubercart are planning to insert one of them into the core installation, so I no need for the modules to install them too.
Idan
Trouble with product weights
I'm seeing the same problem as robin.puga. I looked at the code (which is a little messy) and I found that the problem, in my case at least, is with uc_worldquote_match_weight().
I don't use weight at all on one particular store, which means all weights are 0. So I defined all my rules as flatrate. The if statements in uc_worldquote_match_weight() doesn't seem to handle this case very well.
I simply commented out the call to that function in uc_worldquote_quote() and now it works. Obviously not a good solution for people in general, but somewhere there lies the problem.
Max order price
I can't find any parts of the uc_worldquote_quote() that deals with the Max order price setting. I added these snippets of code to make it work:
<?php
//get order weight and price
$pkgweight = 0;
$pkgprice = 0; // << addition
foreach ($products as $product) {
$units = $product->units;
//make everything into kg
$kg = $product->weight;// * constant(strtoupper($units) .'_TO_KG');
// ^^ by the way, the line above gave me errors so I commented it out
$kg = $kg * $product->qty;
$pkgweight += $kg;
$pkgprice += $product->qty * $product->sell_price; // << addition
}
<snip>
foreach($rules as $rule) {
if ($pkgprice <= $rule->max_amount) { // << addition
switch ($rule->flat_weight) {
case 'flat':
$rate += $rule->rate;
break;
case 'weight':
$units = $rule->units;
$rate += $rule->rate * $pkgweight;
break;
}
}
?>
Guess this module needs some work. I needed this functionality now, so I settled for these hackish changes for now.
Re: World Quotes
I tested the last version of the worldquote module, I put an "anywhere" flat rate to test and I have the same problem that zoo33@drupal.org :
1) It doesn't calculate the shipping cost (it put 0.00)
2) When I validate the checkout page, I have the folowing error :
warning: constant() [function.constant]: Couldn't find constant _TO_KG in drupal\sites\all\modules\ubercart\contrib\uc_worldquote\uc_worldquote.module on line 502.By making the zoo33@drupal.org hack, it works but I don't know if it's the good way to do ? the module maintainer can confirm this problem and solution ?
In addition there is 2 messages that appear, cou can remove them :
line 508 - 509 replace
<?phpdrupal_set_message("<pre> rules - 1</pre>");
drupal_set_message("<pre>" . print_r($rules) . "</pre>");
?>
by :
<?php#drupal_set_message("<pre> rules - 1</pre>");
#drupal_set_message("<pre>" . print_r($rules) . "</pre>");
?>
status
@ Arbel,
Have come anyfurther with your module?
At the moment I am using geoshipping but your solution seems very good.
I can help with some testing but I am not a programmer...
Sanne
Hi, I'll take a look at
Hi,
I'll take a look at these issues, can you describe a bit more the exact problems you're facing.
I'm sorry about the code being messy...i'm not really a programmer.
Regards,
Idan
Re: Hi, I'll take a look at
I found a lot of problems in the module and, looking to the code, a lot of things seems very strange/understandable for me :
in uc_worldquote_match_weight() :
$max_amount = $worldquote->max_amount * constant(strtoupper($units) .'_TO_KG');Damn strange, you want to conver the maximum amount price into Kilogram ???!!!
if (($max_amount) && ($pkgweight > $max_amount)){And then, you want to compare the package weight with an amount ?
I don't understand this lines of code, for me, the maximum order amount price, is the maximum order price fot which all order with a superior amount is shipped for free.
I think lots of problems come from this function, I have a lot of difficulties to understand why because I can't trace anything (my drupal_set_message() or print, just show.... nothing, I don't understand why).
I will try to post a patch if I found all problems, but with my trace problem, it will be really hard
@Arbel Just as other people
@Arbel
Just as other people I can't get the shipping cost visible in the checkout/review page.
I am not a programmer at all, I couldn't even figure out to hack the module according the above instructions.
Sanne
Re: @Arbel Just as other people
Yeah, I can't get any regions to show up here either. Was hoping to be able to use this module until USPS gets sorted out... may have to use something else for now.
Re: Re: @Arbel Just as other people
Ya, seems the Drupal multi-step-form-thing is bugging out. I had to enter the rules by hand. To get regions in you have to use the Region form (tab).
This also needs to be integrated with Workflow-ng to work properly which I'm gong to have a stab at today I think...
Re: Re: Re: @Arbel Just as other people
I saw that. With modification I was able to use your CSV to import every country. Then I combined it with another table (from my current cart system) to get all of the usps International codes for the shipping quotes. Fun times.
Re: Re: Re: Re: @Arbel Just as other people
Good stuff! I might modify this module and make all the countries inserted into the DB as part of the install function.
Re: Re: Re: Re: Re: @Arbel Just as other people
I worked a little on module improvement. I corrected some things that didn't worked for me like wrong weight calculation, wrong max amount calculation.
I will be able to post the modification for test, but there is still a bug.
You cannot get the worldquote shipping cos when you create the order in the administration page. Did the module bug like that on your installation ? I tried the modified module I did and the original module, and the bug appear on both installation. I don't know if it's my drupal installation that make it don't work or if it's a real bug.
Can you bring feedback about this feature, I will try to correct it if it's a real bug and post the improved module.
Re: Re: Re: Re: Re: Re: @Arbel Just as other people
I don't know which version of UC your using but you'll need to have the 'Workflow-ng' module installed and then create a configuration for this module that calls the "get shipping quote" action. I'm guessing this will fix it up for the admin as well as the front end. Seems to work on the latest version in Bazaar. You can have this setup automatically if you implement the workflow-ng hook_configuration() function as in the uc_ups module.
This is such a mess, I got half way though debugging and realised that most of this rule checking code could be done with 1 sql statement per rule class if you make sure all the weight units in the table are converted to the same type and the regions table is cleaned up, so I'm half thinking I should rewrite it, but if you have it working zmove then post it up and I'll forget this mad idea...
verions 1.0 CpILL hack
OK, So I've made it work... for me. What I needed it for was to do quotes fro Regions, groups of countries, and apply a flat-rate price between certain weight brackets. So it does this now. I cleaned up the code a little, added some per-request caching to speed it up a little and reduce SQL query's.
I removed all the code that related to "over a certain weight charge nothing", which it does if as it returns zero if the weight doesn't fall between any rules weight bracket (so don't leave holes between rules).
The multi-page form still doesn't work for me and I entered all the data via phpMyAdmin directly into the table as I didn't have so many rules and I once spent 3 days trying to figure out how Drupals multi-page form works and am still none the wiser.
Also gave it a version number.
Hope this helps further the cause people.
Enjoy
p.s. No support for this I'm afraid. Its not my module
Hi there, First, thanks
Hi there,
First, thanks CPILL to bring worldquote improvement !
I worked to improve the CpILL modification too, and that is the list of improvements :
The last thing I need to improve is the fact to not ship to 0$ when no rules are find, I will work on it this week end.
Please, give me feedback.
Hi Zmove, I tried your
Hi Zmove,
I tried your module again. The setup is great but still I get an error with the checkout:
null: $0,00
It doesn't seem to take the world quote settings.
Did I make a mistake on my side? Setting? Or is this still a bug?
I use version 7e of ubercart and the latest zip of world quotes...
Sanne
HI there, As Alpha 8 rework
HI there,
As Alpha 8 rework the shipping system by integrating workflow, I think it's not compatible with inferior version.
If you want it work with alpha 7, take CpILL release, if you want it for Alpha 8, take mine.
Re: HI there, As Alpha 8 rework
Actually, mine should work for both as I was testing on the development code, but you will need to create the workflow manually as I didn't get around to doing an automatic integration with workflow-ng. Have you done this zmove?
Re: verions 1.0 CpILL hack
Guys, this is beautiful. It seems to do exactly what I'm looking for, and is very easy to set up. The rules system is very well thought out.
One minor thing - almost too small to mention, but might be worth fixing in the next release.
On the "Shipping Quote Settings" page, the shipping quote method is listed as "Wolrd Quote Shipping". Just a typo, and since customers will never see it, I'm not going to worry about it.
Re: Re: verions 1.0 CpILL hack
Yes CpILL, my modification create the workflow automatically.
In addition, you can put a maximum amount for each rules below the shipping cost will be free.
Re: Re: Re: verions 1.0 CpILL hack
So if you have a rule:
Region 1
Min Weight: 10
Max weight: 20
Maximum for free shipping: 30 (?)
Rate: 13
and also:
Region 1
Min Weight: 10
Max weight: 30
Maximum for free shipping: 40 (?)
Rate: 69
what will happen?
also if you just don't have a weight range defined past 40 and you get an order with weight 50 what will happen, and whats the difference between that and your "maximum weight for zero shipping" rule?
Re: Re: Re: Re: verions 1.0 CpILL hack
By regarding how the module is done, it just get all rules and call functions to eliminate don't matching rules from the list.
So if you put your 2 rules above and your total order is 35, the second one will only applied.
I need to test that because I'm just supposing how it will work because I'm not on my work computer for now.
I don't understand the last question, the maximum for free shiping, is not a maximum weight, it's a maximum total order price.
And if no rules applied to the order, actually, it return 0 shipping. It's a thing I want to remove, I want to display an error that say that the shipping cannot be calculated. It seems to be impossible at the moment see this post.
Zipcode problem
This is a nice contribution. The module does a lot for me already.
But I have some problems with the current version. I have an international shop to implement and I need to be able to send to almost every country in Europe. There are additional charges for certain parts, like islands. I wanted to specify this by making 1 rule for country and 1 rule for the zone/postcode of the part. Zone is no problem, since this is defined in the database and has therefor an unique id. But zipcode gives me problems, because zipcodes are only unique per country. Shouldn't there be an extra selector when providing zipcodes? Or did i overlook something in the configuration?
In relation to that I noticed something else. Since the zipcode/region rules aren't linked to the country ones, you can't favour certain regions through "Max order price" settings, because they just get filtered out and the country rules stay.
Would it be a good idea to link these in a dependency tree so they can be overruled? I do realize that this makes configuration a bit harder.
Thanks in advance.
Re: Zipcode problem
I have an issue when I try to review my order, everytime it says:
Product "xyz" (SKU: 60000 ) does not have its weight units set. Shipping quote could not be calculated.
<?php
foreach($products as $product) {
if($product->weight_units) {
$pkgweight += _uc_normalise_weight($product->weight, $product->weight_units) * $product->qty;
$pkgprice += $product->price * $product->qty;
} else {
drupal_set_message('Product "'.$product->title.'" (SKU: '.$product->model.' ) does not have its weight units set. Shipping quote could not be calculated.', 'error');
return 0;
}
}
?>
When I manually recalculate shipping price, it's stated (not correct for the moment, but that's probably a configuration issue.
Does someone had simular issues with:
version: uc_worldquote_1 (On November 7th, 2007 zmove says)
TIA,
Fossie
Hi, I modify the worldquote
Hi,
I modify the worldquote module to provide, as I said a free shipping cost over a certain amount.
I test it since 2 week in a production site, all seems work, so I think it's ok to be released.
let's download.
Awesome Zmove
Is it compatible with version 7E?
And are there other modules that need to be installed for world quotes to work with?
sanne
Re: Hi, I modify the worldquote
I do still have the issue (mentioned above):
* Product "Schnauzers" (SKU: 60000 ) does not have its weight units set. Shipping quote could not be calculated.
* Invalid option selected. Recalculate shipping quotes to continue.
When I manually recalculate it shows the correct shipping cost.
Hope anybody can help me with this.
Fossie
Re: Re: Hi, I modify the worldquote
I also saw that when I manually calculate the shipping cost, in the payment Method, the correct rule is (eg. 2Kg Belgium) is shown, when I click the Review Order button, I get the error that
Product 'abc' does not have its weight units set...
Invalid option selected. Recalculate...
so this returns to the page and then in the Payment Method the rule disappeared and : Shipping World Quote: 0,00€ is placed instead.
In watchdog I get the following error (warnings):
No shipping rules selected for: Post code: '1234', zone: '85', country '56', total weight: 7.26 lbs
and when I manually calculate, everything seems to be fine. So the problem is, I don't know why, that there are no rules for some reason at the Review Order process.
Did someone had those problems?
TIA,
Fossie
Same error for me
I get this error, "Invalid option selected. Recalculate shipping quotes to continue.", when clicking Review Order.
Shipping cost shows up OK when calculating.
The following gets in the log: "No shipping rules selected for: Post code: '632 31', zone: '', country '752', total weight: 0.66 lbs"
I'm using zmove's version from November 7th, 2007 on Ubercart 8 Alfa.
worldquote problem
Hi,
for this module would be a big help with my ubercart-installation i tried to use worldquote for fixing the shipping fee, which means that all products with an totalprice until 19.94 € should be charged with a fee (4,00 €), and all totals above are free.
installing the module and configuring workflow ng is selfexplaning and easy to do. BUT everytime i go to checkout i get the message "There were problems getting a shipping quote. Please verify the delivery and product information and try again.If this does not resolve the issue, please call in to complete your order."
i'm running uc alpha8 - all modules are uptodate. uc_region is installed.
quotes with flat fee using uc_flatrate are working fine.
My worldquote settings are
region : everywhere
rule type: flat value
units: gramm (not necessary in my case - i think)
shipping rate : 4.00 (i suppose this is the fee, which is inserted, when total under defined maximum
min.weight: 0
max.weight: 0
max. order price: 19.94
i am grateful for every hint.
Thanx in advance
Emerson
I figured it out
My problem with "No option selected" was that I hade a region rule set for Sweden but I hadent the Contry field enabeld in the shipping pane during checkout.
Enabeling the contry field or changeing the rule to anywhere solved my problem.
emerson: Just a thought, what appens if you but in somthing else but 0 in the max weight field (should be a big number so that the maximum shippment weight never exeeds the value ypou enter) in your rule?
I'm not sure but it's a quick fix if it works.
still problems with world quote
changing configurations in the workflow-ng module now i get a different feedback:
in the checkout-section (below the "click to calculate shipping"-button) i get the event: "null: 0,00 € and above the review sheet i find the message:
array
(
)
array
(
)
For i am not a coder this is not very helpful to me, but i'm sure there are some guys out there who can easily find out.
(Meanwhile i use the ratequote module which works fine (so i'm no longer in a hurry as far as the problem is concerned), but in the long run i need an more international solution - and this -as far as i understand the situation - will be worldquote.)
Emerson
still thankful for a helping hand
Re: Hi, I modify the worldquote
excelent module !!!! is a very important module
But still doesn't work as expected. if I select by weight, I always get a 0,00 € of shipping costs. If I select a flat value it works.. Detects the region well, but the problem is calculating the costs by weight for that region.
using 27 november zmove version and alpha8
Hi there, I don't use the
Hi there,
I don't use the per weight option, so I didn't touch the original code about that. In fact, I don't know what this option should do. I never see a shop using this king of shipping, at least in my country, so what the per weight option should do ?
Re: Hi there, I don't use the
I think it makes an averaged price depending on the weight... let's say for example if you put from 0 to 1 kilogram, 3 euros.. it the weight is 0,5 kilgrams... the price would be 1,5 euros... I prefer the flat method... from x to y... that price.. and from y to z... other price...
Error also
I got the same error
* Product "test product" (SKU: Aud-1 ) does not have its weight units set. Shipping quote could not be calculated.
* Invalid option selected. Recalculate shipping quotes to continue.
watchdog log gave :
No shipping rules selected for: Post code: 'v1z 1y6', zone: '67', country '124', total weight: 5 lbs
I already specified a zone for a shipping rule which seemed to be detected correctly
New World Quote Error
Hi. Thanks to all for all their work on this module.
I'm using world quote to assign Flat rate quotes to regions (Can, USA, International). It was working fine. I made a few site changes and upgraded to some of the latest module versions from bazzar. Not it's working. One problem is that I don't know which of the changes caused the problem.
I am not getting any page error when the 'get quote function' runs. It just returns the standard UC shipping error message. Any ideas? Thanks.
Re: New World Quote Error
I seem to have found the problem.
Each shippable product needs to have a weight assigned to it, even if you are using the 'flat' rule type in the World Quote module. Cheers.
Re: Re: New World Quote Error
I am using Ubercart Alpha 8 I have assigned weight to all product but its still same error I am getting
* Product "xyz" (SKU: xyz ) does not have its weight units set. Shipping quote could not be calculated.
* Invalid option selected. Recalculate shipping quotes to continue.
Re: World Quotes
Problem solved now its working on my site with beta 4 version
Re: Re: World Quotes
surbir, could you give a short hint how you got it working with beta 4?
I think that would help others with the same problem.
thanks
Re: Re: Re: World Quotes
there was a problem with database as it was not passing the weight units so I have done it By hacking it I have asigned weight to all products in LB if you set weight in other units then please change LB in hack to your asigned weight code and here is hact
This hack will only work with LB weight asigned to products
file: uc_worldquote.module
line 593
foreach($products as $product) {if(1) {
/*if($product->weight_units) {
$pkgweight += _uc_normalise_weight($product->weight, $product->weight_units) * $product->qty;*/
$pkgweight += _uc_normalise_weight($product->weight, lb) * $product->qty;
$pkgprice += $product->price * $product->qty;
} else {
drupal_set_message('Product "'.$product->title.'" (SKU: '.$product->model.' ) does not have its weight units set. Shipping quote could not be calculated.', 'error');
return 0;
}
}
Re: Re: Re: Re: World Quotes
Nice work, but I'm getting a headache trying to work some custom forms around your module.
It might have been better to have the countries field as a join table rather than a pipe delimited field.
Something for a future release maybe?
[EDIT] I should probably have directed that at the regions module
Dimensions modification
Thanks for Worldquote. It's almost perfect for my needs.
I have made a modification to Worldquote for my store, and thought I'd share in case it's of use to anyone. We send small orders by the postal service, and larger ones by a delivery service. Postal orders must be under a specified weight, and under the maximum dimensions of the package size. Our problem is that we have a number of items that are light, but too large for the postal service, so they have to be sent by delivery service.
My modification adds dimension fields to the shipping rules. These allow you to specify the maximum size of any dimension of the package. If any item in the order exceeds that size, it will not use the rule. It doesn't make sense to add the dimensions in the same way as weights, so to keep things simple I just use the largest dimension in each direction.
Which version to use ?
Wow, there's a lot of versions on this thread. Has anyone reached a consensus on which version is most suitable for most needs ?
Is not working
I have installed it, activated the modules and set the regions but when I want to check out it never shows the shipping prices I have defined for a specific Region. What is wrong? Where could I have make a mistake????
Would really appreciate any help!
Re: Is not working
I'm not sure about the status of this module ATM, but as ubercart is near the 1.0 release, there are often major updates that make modules incompatible, and modules maintainers don't always have the time to follow.
Today, you can define shipping quotes as powerfull as the worldquote module, only with flatrate and workflow. It's so longer ton configure, but you can have the same result, and with core module. With that way, you will be sure you will always have a compatible system, even by making the last updates.
Hi, Ive edited this a bit.
Hi,
Ive edited this a bit. Could do with some testing. Ive changed it so you can round the weight up to say the nearest 50g (round weight)
Ive added a weight and money offset. SO if you have something like: Shipping is €4.70 up to 600grammes and then 50c for every 50g (or part there of) after that you would make a rule with, weight_offset = 600, money_offset = 4.70, rate = 0.01 (50c for 50g = €0.01 per gram) and set roundweight to 50g if the post office rounds up to the nearest 50g when calculating postage.
Im not certain about using any other weight units as I hacked away a bit at the normalise function at the end. Its exactly what I needed here though. Also I commented out a line that was causing a display of array () stuff as mentioned above. Use at your own risk, Im no programmer
Thanks
Nicky
HI
Hi,
I am new to this,
I was trying to do shipping charges based on zone/region, so I install "Regions" + "World quote"
Region1 = Country1, Country2
Region2 = Country3, Country4
Shipping charges by (grams)
Gms Region1 Region2
1 $0.62 $0.99 (first 20g)
2 $0.45 $0.21 (following 10g)
I added 2 region in region setting, as for the "World quote" i am a bit confusing, i try to fill up some value to test, but no luck when I click on the shipping calculator nothing come out.
How to get this things work?
Any help is appreciated, thanks.
Jerry
Which version to use ?
There's a lot of versions on this thread. Can someone please tell me which version is the most 'working' one ?
Like robin.puga, I am seeking to have flat rate shipping Canada ($5), USA($10) and world ($15)
Thanks
is this module still relevant?
Hello,
I've been out of touch for a long while, almost a year.
I've seen that workflow ng is now being used and i'm woundering if this module is still relevant.
If so, i'll go over all the problems and fix it as well as make it ready for version 1.0.
let me know,
Idan
Re: is this module still relevant?
Hmm... I know I've used the SQL once or twice that adds all the countries to a site. That might be worthy of its own contribution, imo. Not sure about the general module, as I never really used it.
user warning: Table
user warning: Table 'rateastr_ubercart.uc_worldquote' doesn't exist query: SELECT * FROM uc_worldquote ORDER BY area in /home/rateastr/public_html/b4comic/v2/includes/database.mysql.inc on line 172.
i have this problem.... what should i do...
Please update the module
Yeah - the module is certainly very relevant for us international users of ubercart. Would be great to have a fully functional version for the latest release of ubercart.
Re: Please update the module
I would suggest to people that use this module to move to the mix of workflow & flatrate module. Both are a part of the core of ubercart, so you won't have module maintenance problems, it will be bugless etc... even if ATM it's very long to set up all the rules ou need to ship to all over the world, when it's done, it works !
Re: Re: Please update the module
Thanks for the tip zmove! Works great for my needs. I have flatrate shipping set up according to country, region, and order total.
Please help me fixing the module
I have to use this module with Ubercart 1.0. I can't see how to debug and have it working... Could anyone do it or give me indications ? As soon as I complete it, i'll upload it here, I promise
No quote for non admin user
Can someone pls help me out.
I've got this module working great but only for the admin (user/1) user, any other user on anonymous user don't get the quote.
the watchdog messages are completely blank.
Has anyone else has a similar problem?
I'm using the lastest version of the module.
Please explain Workflow & Flatrate solution...
Hi zmove & Tim & everyone...
day 1 configuring Ubercart/drupal.. im loving it.
This is what Ive done:
enabled workflow-ng interface
created a flatrate shipping method called Local. the base & default prices are set $7.
From the workflow-ng interface ive created a rule
local-weight-check
w condition: Check a orders total weight (if greater than 25kg return true)
Problem: How do i get this showing the correct freight price?
Freight cost is per 25kg.
Sum: (Total Weight/25) * freight cost
but ensuring total weight <= #freight units*25
eg
14kg: $7
35kg: $14
Bonus question
I have another frieght option:
Base price: $7 for 5kg
$4 for each 5kg extra.
Cheers
Craig
Hey zmove, My site needs
Hey zmove,
My site needs international shipping costs based on weight and region. Would this even be possible with the mix of workflow and flatrate? I don't see how I could achieve the same without worldquote? What am I missing?
Regards
Hi, I will give you an
Hi,
I will give you an example :
Create a flatrate rule named "test" with a price of $5.
Then go to workflow and click on the rule corresponding to your flatrate.
Click on conditions, and add a condition based on shipping country. Select one or several countries here, submit.
Add another condition "check the order total weight", and choose for example <= 5kg.
Make sure the "AND" operator is selected for the 2 conditions.
Now your flatrate will apply for the countries you selected and for the weight you defined, repeat this operation for each different flatrate you need to create.