3 replies [Last post]
arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
Was this information Helpful?

Hello,

Well, today I decided to rewrite the geoshipping module so it will work with the shipping quotes and give the user the ability to create rules for multiple countries.

for this I created two modules:
1. world quotes
this handles all the shipping calculations and rules

2. regions
here you create regions by selecting multiple countries

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...

PreviewAttachmentSize
uc_worldquote.zip17.01 KB
uc_regions.zip10.97 KB
robin.puga's picture
Offline
Joined: 10/03/2007
Juice: 6
Minor SQL bug during install of uc_worldquote table

Thanks for all your great work on this. I'm installing it today.

The install on mysql 5 failed to create the uc_worldquote table.

uc_worldquote.install: lines 16-18 read

        `max_amount` float unsigned,
        'units' enum('LB','G','KG','OZ') NOT NULL,
        `conditions` text NOT NULL,

Line 17 needs to be updated so it looks like this

        `max_amount` float unsigned,
        `units` enum('LB','G','KG','OZ') NOT NULL,
        `conditions` text NOT NULL,

Now that the tables are installed I'll start testing this. Smiling

Many thanks for your and meggs hard work on this.

~ R

arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
Re: Minor SQL bug during install of uc_worldquote table

Thanks, actually there's an updated file in the contributions.

Idan

robin.puga's picture
Offline
Joined: 10/03/2007
Juice: 6
Re: Re: Minor SQL bug during install of uc_worldquote table

Thanks Smiling