I would like to know the answer too. Anyone here know what is the answer to that question. I'll do some poking around and get back to you if I find an decent answer. You should email the people at iPage as they probably could answer your iPage question..
Thanks for your suggestion, Chris; I'll give it a try this afternoon..
Oops, perhaps I should've mentioned the shipping costs will be based on weight..
I still don't get it - to me it seems osCommerce and the default shipping modules can't do what I want? I can't find any contribs that'll do it either.
And I still can't figure out an "elegant" way of informing osCommerce that the UK is comprised of 4 or 5 shipping zones, rather than just being a single entity..
How on earth can oSCommerce be set up to recognise UK Mainland, Highlands, Channel Islands, Northern Island as seperate shipping zones, other than entering each as a country with a made up ISO code (which sort of semi-works, but isn't pretty)?..
You may try following:.
Replace the following in /includes/modules/shipping/zones.php:.
Let me know if it works or any error?..
Parse error in.
That's when going into Admin/Modules/Shipping.
This post has been edited by.
: 19 December 2003, 10:01..
Look for the following line in the above code, a semi colon is missing at the end..
$dest_zone_code = tep_get_zone_code($dest_country,$dest_zone_id);..
That fixes the Admin error, however, when going to checkout, this happens:.
Warning: Missing argument 3 for tep_get_zone_code() in /home/chronoxp/public_html/test/includes/functions/general.php on line 242.
This is currently the only shipping method available to use on this order..
No shipping available to the selected country.
I'm certain my botched attempt at splitting the UK into 4 shipping destinations is the root of all problems?..
Change the following line in the above code:.
Add the followng function in admin/includes/general.php:..
I get this on checkout now:.
Fatal error: Call to undefined function: tep_get_zone_shipping_code() in /home/chronoxp/public_html/test/includes/modules/shipping/zones.php on line 118..
Add tep_get_zone_shipping_code() defined above in /test/includes/functions/general.php.
This post has been edited by.
: 19 December 2003, 14:15..
That's fixed the errors... but checkout says "No shipping available to the selected country"..
Is it because of the deranged way I've gone about things:.
Admin / Locations and Taxes / Countries.
UK (Mainland) U1(2) UK1(3).
UK (Scottish Highands) U2(2) UK2(3).
UK (Northern Ireland) U3(2) UK3(3).
UK (Channel Islands) U4(2) UK4(3).
Admin / Locations and Taxes / Zones.
No zones at all.
Admin / Modules / Shipping.
Zone 1: U1.
Zone 2: U2.
Zone 3: U3.
Zone 4: U4.
This is all wrong..
I have modified the module to work for 1 country and zones within it..
Set 1 country in Admin / Locations and Taxes / Countries:.
United Kingdom GB GBR.
Define zones for United Kingdom in Admin / Locations and Taxes / Zones as:.
UK (Mainland) U1.
UK (Scottish Highands) U2.
UK (Northern Ireland) U3.
UK (Channel Islands) U4.
Define zone rates for U1, U2, U3, U4..
Hope it works!..
Nope, still no shipping method on checkout.
And doing it that way makes Account Create / County only allow one of the four zones, rather than Stafforshire or whatever (I haven't imported the UK Counties into the database?)..
It's like there needs to be another field in Account Create where people have to enter the region they're in, or the ISO code system for countries/zones needs enhancing so meaningful information can be used?.
How have other UK stores gotten around this?.
Lee, It looks I can not get the way you need it..
Well, I will work more on this and try on my test store myself, and if get any success, I will post it...
I've given up - there just doesn't seem any logical way of doing this, and short of me becoming a PHP and MySQL guru over the weekend, it's becoming clear that I'm not destined to get an osCommerce store online..
Serves me right for trying to avoid spending money on Actinic..
That said, might this work:.
Import UK counties into database. Work out which counties have increased shipping costs. Setup zone rates to reflect this, and have the added benefit of maintaining the proper(?) ISO codes?.
Geography isn't my strong point, but it's probably a bit stronger than my PHP skills.
Or will this fail because all the counties are zones linked to Country UK - if zone 1 is UK, then all the county zones are covered, or will setting zone 2, zone 3 to the appropriate counties overide the Zone 1 setting? Knowing osCommerce, it'll display both zone 1 and zone X shipping for those counties.
This post has been edited by.
: 20 December 2003, 04:37..
I'm having a hard time trying to configure the shipping module(s). I only require domestic shipping, so I've removed all countries except United Kingdom. How do I go about making shipping calculations based on UK shipping zones/regions?.
Zone 1: UK Mainland (England, Wales, parts of Scotland).
Zone 2: Scottish Highlands and Islands.
Zone 3: Northern Ireland, Isle of Man, Isles of Scilly.
Zone 4: Channel Islands.
I tried a somewhat less than elegant solution by defining the above zones as Countries and using U1, U2, etc. as ISO code, and increasing zones from 1 to 4 in zones.php. Account Creation works fine like this, but Checkout displays "Shipping to U1" which is ugly..
Someone suggested I make several zones.php (zone1.php, zone2.php, etc.), but I don't really understand why.
I'd really appreciate some help..
Why dont you just use a multiple flat shipping rates contrib this should aloow tyou to add amultiple amount of shipping areas to the iPage site and the customer selects the area in which they fall into..
The mulitple flat shipping rates conrtib is in the contrib section under shipping I wrote a new version..
If you have any probs e-mail me at email@example.com..