Author Topic: UK Postcode/County/Country code zones module  (Read 55897 times)

crea2k

  • Beginner
  • *
  • Posts: 18
Re: UK Postcode/County/Country code zones module
« Reply #30 on: July 16, 2011, 00:00:18 am »
Hi, how do I find out where the postcode areas are located and a list of them to add to make up each zones ?

goretex34

  • Beginner
  • *
  • Posts: 37
    • Zeesl web design · diseño web Zeesl
Re: UK Postcode/County/Country code zones module
« Reply #31 on: July 20, 2011, 19:43:15 pm »
Hi, how do I find out where the postcode areas are located and a list of them to add to make up each zones ?
Just click: Admin->List Countries
and then, in the list you can click on the country link or in the [state list]

(I have it in Spanish as, for example: España  [ Lista de Estado ])
------------------------------------
www.Zeesl.com  @Zeesl
www.chartconsulting.net @chartcon
@goretex34

goretex34

  • Beginner
  • *
  • Posts: 37
    • Zeesl web design · diseño web Zeesl
Re: UK Postcode/County/Country code zones module
« Reply #32 on: July 20, 2011, 19:49:31 pm »
This module is PERFECT for me!
It does everything I was looking for  ;D  8)

The only thing I need now to do is:

I have 2 instances for Spain: Península & Baleares
I want 6€ shipping flat rate for "Peninsula" instance, and free shipping for 100€+ ->Works fine

I want 6% shipping percent rate for "Baleares" instance, and without free shipping.
The problem is that I want a MINIMUM RATE FOR SHIPPING.
I want to charge a fixed 6€ shipping rate for Orders<100€, and 6% for orders>100€
(a 33€ order would cost only 2€, and that's not correct for my site)

How can it be done?

I'm going to try and hack a bit the code  ;) but I think it would be VERY interesting to have a new field in
the configuration of the module to specify a MINIMUM SHIPPPING RATE.

THANX 4 THIS FREE & USEFUL MODULE, ALAN!!

------------------------------------
www.Zeesl.com  @Zeesl
www.chartconsulting.net @chartcon
@goretex34

StormIT

  • Jr. Member
  • **
  • Posts: 55
Re: UK Postcode/County/Country code zones module
« Reply #33 on: July 20, 2011, 21:50:41 pm »
Hi, I have installed your module on Joomla 1.5.23 and Virtuemart 1.1.9

The question I have is how I set up delivery options for 5 zones (Using a mixture of postcodes in the first 3 zones and countries in the second two zones). These zones  have different options for delivery and costs on those options. ie:


Zone 1            Under £100   Over £100
2/3 working days      £12         Free
Next working day      £18         £12
Next working day AM      £28         £23

Zone 2            Under £100   Over £100
3/5 working days      £12         Free
2/3 working days      £28         £23

Zone 3            Under £100   Over £100
3/5 working days      £18.00      £18.00

Zone 4             Under £100   Over £100
5/7 working days      £23         £23

Zone 5            Under £100   Over £100
5/7 working days      P.O.A.      P.O.A.

I've been racking my brains on how to do this, but can't for the life of me work it out! How could I do it please?

Thank you

goretex34

  • Beginner
  • *
  • Posts: 37
    • Zeesl web design · diseño web Zeesl
Re: UK Postcode/County/Country code zones module
« Reply #34 on: July 21, 2011, 11:47:16 am »
This module is PERFECT for me!
It does everything I was looking for  ;D  8)

The only thing I need now to do is:

I have 2 instances for Spain: Península & Baleares
I want 6€ shipping flat rate for "Peninsula" instance, and free shipping for 100€+ ->Works fine

I want 6% shipping percent rate for "Baleares" instance, and without free shipping.
The problem is that I want a MINIMUM RATE FOR SHIPPING.
I want to charge a fixed 6€ shipping rate for Orders<100€, and 6% for orders>100€
(a 33€ order would cost only 2€, and that's not correct for my site)

How can it be done?

I'm going to try and hack a bit the code  ;) but I think it would be VERY interesting to have a new field in
the configuration of the module to specify a MINIMUM SHIPPPING RATE.

THANX 4 THIS FREE & USEFUL MODULE, ALAN!!



I'm going 2answer 2myself:

It's a very easy HACK.
First of all, having 2 instances created, the module generates/duplicates the php&cfg files located at /administrator/components/com_virtuemart/classes/shipping .
I have:
 postcode.php
 postcode.ini
 postcode.cfg.php
 postcode1.php
 postcode1.ini
 postcode1.cfg.php

Edit " postcode1.php" file (instance for "Baleares" in my case)
I have modified line 329 changing 'min' function to 'max' function. That's all.
new code:
Code: [Select]
         if($postcode_cfg['POSTCODE_MAX_RATE'] != '') {
$rate = max($rate, (float) $postcode_cfg['POSTCODE_MAX_RATE']);
         }

Now, in the Joomla admin->Shop->List payment method, you can set the MINIMUM SHIPPING COSTS in the "Maximum Shipping Rate" parameter. (You can change also the texts if u want)

I have set this parameter to 6

Hope it helps!
------------------------------------
www.Zeesl.com  @Zeesl
www.chartconsulting.net @chartcon
@goretex34

hrhsii

  • Beginner
  • *
  • Posts: 23
Re: UK Postcode/County/Country code zones module
« Reply #35 on: August 01, 2011, 02:01:51 am »
I have 2 instances of the shipping module installed (postcode.php &postcode1.php). The first one is giving me problems. The rate type drop down box allows you to set different weight bands, it even remembers them when you select it from the drop down box. But once you save or apply, it goes back to the By Price Bands option, even though the drop down box is saying by weight. The other instance works fine, is this a bug?

StormIT

  • Jr. Member
  • **
  • Posts: 55
Re: UK Postcode/County/Country code zones module
« Reply #36 on: August 01, 2011, 19:54:14 pm »
Hi, I have installed your module on Joomla 1.5.23 and Virtuemart 1.1.9

The question I have is how I set up delivery options for 5 zones (Using a mixture of postcodes in the first 3 zones and countries in the second two zones). These zones  have different options for delivery and costs on those options. ie:


Zone 1            Under £100   Over £100
2/3 working days      £12         Free
Next working day      £18         £12
Next working day AM      £28         £23

Zone 2            Under £100   Over £100
3/5 working days      £12         Free
2/3 working days      £28         £23

Zone 3            Under £100   Over £100
3/5 working days      £18.00      £18.00

Zone 4             Under £100   Over £100
5/7 working days      £23         £23

Zone 5            Under £100   Over £100
5/7 working days      P.O.A.      P.O.A.

I've been racking my brains on how to do this, but can't for the life of me work it out! How could I do it please?

Thank you


Any idea on this please?

PArnstein

  • Beginner
  • *
  • Posts: 1
Re: UK Postcode/County/Country code zones module
« Reply #37 on: August 11, 2011, 18:39:21 pm »
Hi,

This shipping module is excellent. I do have a question though I have tried to follow the read me file about how to match a generic postcode and unfortunately I cannot work it out. The read me states you need to enter a pattern of x & o's but I cannot see where to add a pattern.

If someone has successfully applied a postcode pattern match using the x & o's please advise me how to do it.

Thanks for your time.

blueworm

  • Beginner
  • *
  • Posts: 8
Re: UK Postcode/County/Country code zones module
« Reply #38 on: August 21, 2011, 20:51:32 pm »
Hello,

I have the problem, that whatever postcode (ZIP code ) the I use during ordering, I always get the "No zone match message".
It seem that the module never recognizes the given zip-code and therefore doesnt do anything...

What am I doing wrong?

StormIT

  • Jr. Member
  • **
  • Posts: 55
Re: UK Postcode/County/Country code zones module
« Reply #39 on: September 26, 2011, 12:35:10 pm »
No ideas on this?!

Hi, I have installed your module on Joomla 1.5.23 and Virtuemart 1.1.9

The question I have is how I set up delivery options for 5 zones (Using a mixture of postcodes in the first 3 zones and countries in the second two zones). These zones  have different options for delivery and costs on those options. ie:


Zone 1            Under £100   Over £100
2/3 working days      £12         Free
Next working day      £18         £12
Next working day AM      £28         £23

Zone 2            Under £100   Over £100
3/5 working days      £12         Free
2/3 working days      £28         £23

Zone 3            Under £100   Over £100
3/5 working days      £18.00      £18.00

Zone 4             Under £100   Over £100
5/7 working days      £23         £23

Zone 5            Under £100   Over £100
5/7 working days      P.O.A.      P.O.A.

I've been racking my brains on how to do this, but can't for the life of me work it out! How could I do it please?

Thank you


Any idea on this please?

Jonski13

  • Beginner
  • *
  • Posts: 12
    • Web Design Cambridge
Re: UK Postcode/County/Country code zones module
« Reply #40 on: November 09, 2011, 12:15:29 pm »
Hi Alan, first off thanks for creating this module - nice to see a shipping module that deals with the UK's random postcode system!

Question for you - I'm building a site for a wholefood shop who deliver themselves by van to the local area. Is there a way to set the default zone to simply come up with something along the lines of "Sorry, we don't deliver to your area" and remove any shipping options? Basically they only deliver with a 20 mile radius of their shop so anywhere outside of the set zone shouldn't provide any shipping options.

I'm guessing I can set a zone to include the postcodes they do deliver to and by default have all other postcodes fall into the default zone.

Is this going to be possible using your module?

Thanks for your help.

Cheers

John

www.swaysearch.com

Jonski13

  • Beginner
  • *
  • Posts: 12
    • Web Design Cambridge
Re: UK Postcode/County/Country code zones module
« Reply #41 on: November 10, 2011, 16:39:29 pm »
I've made a bit of a rookie error on this module and entered a text string into the Zone Rate (should have been numerical I guess, and certainly not a sentence) - now I get the following error message whenever I try and access the shipping configuration:

Parse error: syntax error, unexpected T_STRING in XXX/administrator/components/com_virtuemart/classes/shipping/postcode.cfg.php on line 15

I'm trying to find the appropriate table to edit in the database but can't for the life of me see it. Anyone know where I can find the correct table to change the content in PHP My Admin?

Help much appreciated!

Cheers

John
www.swaysearch.com

Jonski13

  • Beginner
  • *
  • Posts: 12
    • Web Design Cambridge
Re: UK Postcode/County/Country code zones module
« Reply #42 on: November 10, 2011, 17:57:12 pm »
Right - further to my rookie error of putting a text string into the 'default zone base rate' - very easy to rectify - open shipping/postcode.cfg.php and you can change the value there.

Handy if anyone else make the same mistake.

Cheers

John
www.swaysearch.com

captain_jasper

  • Beginner
  • *
  • Posts: 7
Re: UK Postcode/County/Country code zones module
« Reply #43 on: November 25, 2011, 12:37:27 pm »
Hi,
I am using UK postcodes shipping module together with the Standard Shipping module. As in the shipping module list all modules are ordered and given id alphabetically, the UK Postcode.. module appears above the Standard Module upon Checkout. How can I bring the UK Postcodes..Module below the Standard one. My point is that this module does not have a header information as the Standard one and it looks a bit messy to show Shipping information like that.

Can anyone help with this? I have this issue too as I am using this excellent Shipping Module along with the Standard Shipping Module. It would be great if this module was just appended to BELOW where the data shows for the Standard Shipping Module and then every option would have nice tidy headers.

Any ideas on where to look.what can be done?

Thanks.

mike364

  • Beginner
  • *
  • Posts: 7
Re: UK Postcode/County/Country code zones module
« Reply #44 on: December 04, 2011, 18:57:59 pm »
Hi all, this is the best module I have used to date so a massive thank you!  8)

However seem to have an issue that the postcode is calculating the correct rates at step 2 (Shipping Methods) which looks great but then by the time I get to step 4 (Complete Order) the shipping charge equals £0.00

This results in the cost being passed to the PayPal (using PayPal (Legacy)) is not including the shipping charge (or in my case delivery charge)

Can anybody help, I noticed a post towards the bottom of page one regards this but dont think it was quite the same issue.

Cheers,

Mike