VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => Topic started by: alanB on February 28, 2011, 10:51:05 am

Title: UK Postcode/County/Country code zones module
Post by: alanB on February 28, 2011, 10:51:05 am
Hi all,

I'm starting a new thread for the UK Postcode/County/country code zones shipping module.

Please post any bug reports, questions, requests here from now on. When posting please include which version of the module and VirtueMart you are using.

For full details and to download the latest version check out the entry in the VMED (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=3&sobi2Id=442&Itemid=2 (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=3&sobi2Id=442&Itemid=2)).

I will post here when a new version is released.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: mx5gr on March 03, 2011, 15:51:15 pm
Hi Alan,

I have been using your shipping module with success, defining two zones using generic postcode ranges. Everything worked fine.

However, we now want to offer two options per postcode range, one for 09:00-17:00 delivery and one for 17:00-20:00.

Thus, I defined 4 zones within the shipping module. However, as it performs postcode range matching, only one (the first one found) is displayed and not the other.

A workaround would be to install your shipping module twice, for the two time groups within the same zone. However that would be very inefficient on the server, as now it requires already 128MB of PHP RAM to be available, as the postcode file is ~2MB long.

I tried to make it work with "Shipping Options", as currently defined in the shipping module. I created a zone 09:00-17:00 with a 0 modifier and a zone 17:00-20:00 with a +5 modifier. HOWEVER, when the order total is over 80 Euros, the customer gets free shipping. Hence, depending to the region (Inside/Outside Attica), he would have only one option, "Inside Attica, Free shipping: €0,00". Instead we get:

Inside Attica, Free shipping: €0,00
Inside Attica [09:00-17:00]: €0,00
Inside Attica [17:00-20:00]: €5,00

Thus, the second line should not appear (he has free shipping). Moreover, the third line should not appear as well, as it has free shipping. The scripts adds the +5 modifier regardless of the free shipping status.

Any suggestions would be greatly appreciated.

Thank you.
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 04, 2011, 14:22:55 pm
Hi mx5gr,

hmmm - that's an unforseen interaction between shipping options and free shipping.

Basically there should be a check for free shipping and then not show the options. Or to show the options but at full shipping rate. What do you think the behaviour should be? Someone who is offered free shipping might want to choose to pay for faster delivery or guarenteed delivery slot so I'm leaning towards the latter. Although I could make it an setting - each option could have a free shipping option "Do not show option", "show option with full base rate" or "show option with 0 base rate".

No promise on time scale but I'll add it to the bug list and sort it in the next release.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: TWD-Tony on March 04, 2011, 15:28:46 pm
Hi Alan, continued from the other thread...

"Hi Tony,

Ah right - so in that case it's just a matter of adding in the check for the minimum weight at the start and just returning without outputing a shipping option at all.

Cheers,

Alan."

Should this check be in the code for the shipping options page (to check to see if the postcode module should be called) or in the postcode module code itself?

I guess I should be looking at how you have implemented the check for country and put a similar switch in place?

Thanks

Tony
Title: Re: UK Postcode/County/Country code zones module
Post by: mx5gr on March 04, 2011, 16:05:14 pm
Hi mx5gr,

hmmm - that's an unforseen interaction between shipping options and free shipping.

Basically there should be a check for free shipping and then not show the options. Or to show the options but at full shipping rate. What do you think the behaviour should be? Someone who is offered free shipping might want to choose to pay for faster delivery or guarenteed delivery slot so I'm leaning towards the latter. Although I could make it an setting - each option could have a free shipping option "Do not show option", "show option with full base rate" or "show option with 0 base rate".

No promise on time scale but I'll add it to the bug list and sort it in the next release.

Cheers,

Alan.

Hi Alan,

A simple disabling of the shipping options calculation when in Free Delivery would do. On the other hand, it makes sense that if free delivery is offered, the user should be able to select among business hours or late afternoon deliveries, as they are offered for free for purchases > a 70 Euros (for example).

What you suggest with the drop down for each shipping option solves all cases of shipping options/free shipping combination and is eagerly awaited.

I hope you'll find some time to integrate them by late last week (working on a deadline, I'm not pushing you), otherwise I'll try to figure out a workaround.

Thank you for your time and congrats again for this excellent module.

Regards,

Socrates
Title: Re: UK Postcode/County/Country code zones module
Post by: TWD-Tony on March 05, 2011, 10:28:27 am
In case anyone needs to know how to disable the UK postcode module for order totals under a certain weight, this is how I did it:

Around line 84 in postcode.php add:

if($d['weight'] <250) {
      echo 'error message';
     
      return false;
      }

Just change <250 to whatever weight threshold you wish to set and change the error message to some text you want to display to tell the customer that the weight of their order does not qualify them for delivery...
Title: Re: UK Postcode/County/Country code zones module
Post by: wicko on March 05, 2011, 13:32:02 pm
I have installed your shipping module as it sounds perfect for what I want on my site. We currently have shipping set to free for UK but the problem is when people purchase just 1 very small item the shipping deletes any profit and quite often costs us. So what I wanted was free shipping for all orders over £30 for instance with a baserate of £2.50 shipping for orders under £30.
But when I tried to set this up and added all the codes and base rate etc and pressed save then the module comes back with an error requesting a license and then deletes all the data I have input which I have to enter again.
I am sure that it is because and am missing something or not setting it up correctly.
Is there any chance you can let me know what I need to configure this.
Many thanks
Wicko
Title: Re: UK Postcode/County/Country code zones module
Post by: wicko on March 08, 2011, 03:01:02 am
I have tested more with this module and as long as I don't try to add new zone options then the shipping rate calculates ok. But I have only managed to set up for UK as using country code required I set up zones.
Again some advice with setup would be very helpful
Title: Re: UK Postcode/County/Country code zones module
Post by: ZatriX_ZA on March 09, 2011, 18:40:51 pm
Hi Alan,

This module is exactly what I have been looking for, thanks a lot! There is one 'minor' problem, though... It doesn't show in the front-end. I have configured it as per instructions (some confusion about the item bands, but no biggie, I can leave them blank, right?) but when i try to checkout, virtuemart just shows 'select shipping method' and that's it. Other shipping modules work, so it's not the installation, I'm guessing. Any ideas?
Title: Re: UK Postcode/County/Country code zones module
Post by: theredrobot on March 12, 2011, 10:58:47 am
I'm shipping to the whole of the UK, But would it be possible to configure this module, for different shipping rates for differnt product categories, using 2 different instances?

Instance 1 - shipping rate is free for certain products (using the 'allowed products' feature).

Instance 2 - shipping rate is 6% for all other categories (again using the 'allowed products' feature).

or would I create 2 different 'zones' insert the same full UK postcodes in each, but 1 zone is free shipping, 1 is charging 6% of the total and using 'allowed products' assign which products can get free delivery and which are charged 6%
Title: Re: UK Postcode/County/Country code zones module
Post by: Lee Wilson on March 15, 2011, 19:38:00 pm
Quick question.

For UK tax purposes tax should be calculated on the order plus shipping amount (gross cost amount). Does this module do this ?

From what I can tell standard VM does not add tax to the order total.

Thanks
Title: Re: UK Postcode/County/Country code zones module
Post by: chaten on March 16, 2011, 11:04:54 am
Hello,  Great plugin, exactly what i needed.  ;D Kills several birds with one stone. :)

I've found a bug and figured out the problem/solution (if you can call it a solution)  :P

Problem:

I created two instances with no problems.
I created a third instance and when i went to configure it i got the error message along the lines of: postcode2.cfg.php UNWRITABLE.

I saw that postcode2.cfg.php had not actually been created so i created it manually.  After doing so i saw it was still unwritable so i changed permissions to 744.

After this it came up with another error to do with the shipmailform file as well as a Jloader error.

I thought this was odd as these are joomla/vm files which were obvioulsy working fine for the first two instances.  I left these files alone and just did some  systematic investigation instead.

I found that the error message only appears if you create a new instance outside of the original 1st main instance config page.

eg.  Any instance created in any other instance config page will lead to an error message.

To solve/ work around this: 
To create any new instance, go into the 1st (main) instance config page and then create the new instance.

Hope that makes sense.

Thanks once again for the plugin.  If you need any extra help with the production, feel free to get in touch.   
Title: Re: UK Postcode/County/Country code zones module
Post by: wicko on March 16, 2011, 15:49:15 pm
Great module and managed to set up and run perfectly with FREE UK shipping with £30+ orders.

But the problem I have had is that my PayPal Pro Payment module comes up with an error at checkout and asks to select another shipping method. It is fine with PayPal API.

I have contacted the payment module provider who has said there is a problem with the shipping method which come up with a result that contain illegal characters such as : or ;. I have gone through the module and removed the : from the areas that create the shipping name but this still has not fixed it.

Does anyone know how I can removed these illegal characters from the shipping result?
Title: Re: UK Postcode/County/Country code zones module
Post by: Lee Wilson on March 16, 2011, 16:04:14 pm
I am considering using Paypal Pro so am interested in this development. Can you please post the fix here.

I have not purchased or installed this module yet.

I have already posted this question, but can you tell me whether TAX (VAT) is added to the total order including shipping (as is supposed to under UK law), or is TAX exluded from the shipping amount ?

Thanks
Title: Re: UK Postcode/County/Country code zones module
Post by: wicko on March 17, 2011, 17:20:27 pm
This shipping module has the option to select the relevant tax rate. I have not tested this myself as my site does not add any tax or vat to the orders.

You can connect to a PayPal Pro account ok with the PayPal API module that comes with the latest VM install. However if you use the PayPal Pro module from virtuemart-solutions then you may get errors which is due to illegal characters created by this module. I have had to disable this payment module because of this reason. I do prefer the virtuemart-solutions module as it gives extra security via Centinal.
Title: Re: UK Postcode/County/Country code zones module
Post by: Lee Wilson on March 21, 2011, 10:50:33 am
OK,

So I understand this beeter. You can get Paypal Pro working but with the standard VM paypal pro module and NOT the one included with this software.

Still interested to understand whether TAX is inclusive of shipping or exclusive of shipping to comply with UK TAX / VAT laws.

Can the author confirm this ?

Thanks
Title: UK Postcode/County/Country code zones module
Post by: kiravans on March 21, 2011, 13:57:47 pm
Billing v Shipping addresses - not recognizing postcode in alternative shipping addresses.

Alan, I've got this all working fine when I use the default billing address but if I select to use an alternative Shipping address this appears to not recognize the postcode. Any thoughts?

Thanks, Rob.

VM 1.1.3
UK postcode zones module 1.51
Joomla 1.5.9
Title: Re: UK Postcode/County/Country code zones module
Post by: mx5gr on March 22, 2011, 17:31:14 pm
Hi to all,

As reported in http://forum.virtuemart.net/index.php?topic=82598.msg273122#msg273122 , we have some issues with calculating free shipping. We found a temporary workaround by working out some shipping options. However, in the customer checkout, we get three entries when it comes to shipping option:

Shipping without any shipping option
Shipping with shipping option 1
Shipping with shipping option 2

as the first and second are the same, how can we only show to the customer only the delivery options for which shipping options are declared in the shipping module? Any ideas?

UPDATE: This can be performed by commenting out lines 344-348 of the shipping module:

Code: [Select]
            // find the rate_id if a shipping method has already been choosen
            //$current_rate_id = array_pop(explode('|', urldecode(vmGet( $_REQUEST, 'shipping_rate_id', '' ))));
            //$checked = $current_rate_id == $rate_id ? ' checked="checked"' : '';
            //$string = "<input type=\"radio\"$checked name=\"shipping_rate_id\" value=\"$value\" />";
            //$string .= "$postcode_cfg[POSTCODE_CARRIER_NAME]: $name$extra_description: <strong>". $CURRENCY_DISPLAY->getFullValue($basic_rate)."</strong><br />";

Title: Re: UK Postcode/County/Country code zones module
Post by: suko7777 on April 14, 2011, 16:03:05 pm
Hello,

I´ve installed UK Postcode/County/Country code zones module in my virtuemart 1.1.7 stable, and joomla 1.5.22. Any problem during the installation.

I´m impressed with all can do the module, great work!

I just need to solve a small problem. I can configure all options in the first two areas (instances, and basic config)

However, when I click "add zones" within "zones", and fill the form to create a new zone, and I click on "Save", the application takes me to a completely blank screen. To go back, I have only the option "back"function, but when I return, the zone has NOT been created.

Does anyone know how I can fix this problem?

As additional information, try to set the following delivery areas:

AREA                   SHIPPING RATE       FREE SHIPPING
España Península       6 €            On orders over 65 €
Baleares              10 €            On orders over 100 €
Canarias, Ceuta y Melilla  15 €          On orders over 200 €
Resto del Mundo                 Check costs before ordering

Thank´s a lot for your help and congratulations for the module again to the developers.
Title: Re: UK Postcode/County/Country code zones module
Post by: suko7777 on April 14, 2011, 16:25:07 pm
after turning on error reporting in joomla, and try to recreate the zones, I get the following error.

Fatal error: Call to undefined function array_fill_keys() in /var/www/vhosts/domain/httpdocs/administrator/components/com_virtuemart/classes/shipping/postcode.php on line 1230

Anyone know how I can fix the problem?
Title: Re: UK Postcode/County/Country code zones module
Post by: ZatriX_ZA on April 14, 2011, 21:02:10 pm
Hm, I've sorted out my little problem with shipping rate not displaying. Turns out, I had a 'check if a post code is in the right country' ticked, and although the postcode actually was in the country, the module chose to ignore it. )

Now I have another problem: I've created two postcodes for testing purposes, 1000 and 2000 and put them into different zones. But the shipping rate calculates from zone 1 regardless of the code, even if the code customer enters doesn't exist. ?? Anyone??
Title: Re: UK Postcode/County/Country code zones module
Post by: kleinbaas on April 19, 2011, 01:06:19 am
I'm starting a new thread for the UK Postcode/County/country code zones shipping module.

Hi Alan

I asked a question about tax on the old thread (here: http://forum.virtuemart.net/index.php?topic=57000.210). Tax is not being added to the shipping when using your extension. Let me know if you need any more info.

Thanks for your help in advance, I promise a donation if I can get this to work :-)

---------------
Actually, on closer inspection, when I go though to nochex the price includes tax on the shipping, but on the checkout screen after selecting the shipping method it is not included. Strange.
Ill keep looking around.. any ideas while Im searching anyone?

Al
Title: Re: UK Postcode/County/Country code zones module
Post by: kleinbaas on April 19, 2011, 03:44:00 am
hey I fixed it :-)

For those who have the same problem, here's how:
In basket.php I added this code:
Code: [Select]
require_once(CLASSPATH. "ps_tax.php");
$shipping_taxrate = ps_tax::get_taxrate_by_id(intval($postcode_cfg['POSTCODE_TAX_RATE']));
(as borrowed from Alan's file) just below this bit of code:
Code: [Select]
/* HANDLE SHIPPING COSTS */
if( !empty($shipping_rate_id) && !ps_checkout::noShippingMethodNecessary() ) {
$shipping = true;
$vars["weight"] = $weight_total;
$shipping_total = round( $ps_checkout->_SHIPPING->get_rate ( $vars ), 5 );

That fixed my shipping tax problem. I also had to fix some bits in ps_checkout.php, but I think I caused those issues with previous hacks.

I do have a question/issue though. I have a zone for "PO30-PO41" (outward), and a different zone that contains "AB,PO,ZZ,etc" (area) and then a zone with the same name and price as the first zone set to "BT,PA,PH,etc" (area). Unfortunately when I register with postcode PO32 5UY I get the price for the 2nd zone, not the first as expected.

Any ideas why anyone?

Oh, and another small issue, my "No zone match message" doesnt show.

Apart form that all seem well :-) Loving it so far. If you want to see it in action, go to http://www.stonedeertools.com
Title: Re: UK Postcode/County/Country code zones module
Post by: iMAAXX on April 30, 2011, 23:25:03 pm
Hello,

Thanks for making this great Shipping Module… I am located in Canada and this is by far the best Shipping Module we have found so far. We have this installed and working perfectly on our site, its calculating all the taxes correctly and as far as I can see this is exactly what we needed.

We are however having one small issue and I am not really sure how to fix this.

We are running Joomla 1.5.23, Virtue Mart 1.1.8 and the Shipping Module 1.51
I am enclosing a screen capture of what it looks like on my computer and I am getting this same problem with IE8 and Firefox 3+ so my guess this is a CSS styling issue or something like that.

To me it looks like it has the space for all the options we have created one for each province and two in some case so we have made over 14 instances of this module to accommodate all of our province options.

I thinnk it is not collapsing the ones that are not visible and the module is still providing space for them all even thou they only have two options actually available… If that makes sense at all.



Thanks


[attachment cleanup by admin]
Title: Re: UK Postcode/County/Country code zones module
Post by: iMAAXX on May 03, 2011, 23:51:42 pm
does anyone have any idea how to get rid of this extra space?

Thanks for your help.

Title: Re: UK Postcode/County/Country code zones module
Post by: rakagod on May 06, 2011, 01:28:51 am
I believe your product will nicely handle my shipping cost requirements.

In the documentation I see references to "State 2 Code, State 3 Code, Country 2 Code or Country 3 Code"; am I correct in assuming that the "2" refers to a two character code and the "3" refers to a three character code?

Thank you for your help
Title: Re: UK Postcode/County/Country code zones module
Post by: LittleMissTechy on May 24, 2011, 14:47:10 pm
Hi Alan

First off I would like to thank you for sharing such a useful module with the Virtuemart Community, as customisable shipping modules seem to be at a premium.

I have successfully implemented three instances of your module on my vendor's website
1. UK shipping - 2 levels dependent on order total;
2. Flat-rate shipping Europe;
3. Flat-rate shipping for the rest of the world.

The vendor has requested to make a specific category of products exempt from postage for the UK and exempt from being purchased in Europe/rest of world. The second part is easy using the disallowed products in the relevant zones, but after staring at it for quite some time, I cannot seem to find a way to allow certain products/categories to be completely exempt from shipping within the UK.

Is it possible with this module?

I am using VM 1.1.7 with Joomla 1.5.21.

Any advice would be greatly appreciated.

Many thanks
Taz
Title: Re: UK Postcode/County/Country code zones module
Post by: vickoy23 on June 07, 2011, 07:29:40 am
Hi Allan,

I clicked on the link to download the module but couldn't because the file is not available on the server. Can you help with a working link?
Title: Re: UK Postcode/County/Country code zones module
Post by: misholini on June 28, 2011, 18:43:28 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.
Title: Re: UK Postcode/County/Country code zones module
Post by: rian on July 12, 2011, 15:40:57 pm
hello,
thankx for this great module, it does exactly what I was looking for a very long time. Only one question: I need different tax rates for different countries, for instance eu-countries have 20% vat, non-eu-countries have no tax, it would be best if you could enter the tax rate also in the zone. my workaround is to create a second instance. is there an easier way?

thank you!
Title: Re: UK Postcode/County/Country code zones module
Post by: crea2k 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 ?
Title: Re: UK Postcode/County/Country code zones module
Post by: goretex34 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 ])
Title: Re: UK Postcode/County/Country code zones module
Post by: goretex34 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!!

Title: Re: UK Postcode/County/Country code zones module
Post by: StormIT 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
Title: Re: UK Postcode/County/Country code zones module
Post by: goretex34 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!
Title: Re: UK Postcode/County/Country code zones module
Post by: hrhsii 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?
Title: Re: UK Postcode/County/Country code zones module
Post by: StormIT 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?
Title: Re: UK Postcode/County/Country code zones module
Post by: PArnstein 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.
Title: Re: UK Postcode/County/Country code zones module
Post by: blueworm 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?
Title: Re: UK Postcode/County/Country code zones module
Post by: StormIT 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?
Title: Re: UK Postcode/County/Country code zones module
Post by: Jonski13 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 (http://www.swaysearch.com)
Title: Re: UK Postcode/County/Country code zones module
Post by: Jonski13 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 (http://www.swaysearch.com)
Title: Re: UK Postcode/County/Country code zones module
Post by: Jonski13 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 (http://www.swaysearch.com)
Title: Re: UK Postcode/County/Country code zones module
Post by: captain_jasper 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.
Title: Re: UK Postcode/County/Country code zones module
Post by: mike364 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
Title: Re: UK Postcode/County/Country code zones module
Post by: mike364 on December 04, 2011, 21:40:25 pm
Solved  :D, the issue is my posted had a space in so AB1 2CD whic becomes AB1+2CD in the shipping_rate_id.

The shipping_rate_id was truncating the + so AB1 2CD became AB1 only and the shipping cost (a few places along in the array was lost)

Does anybody know how I can stop the + sign causing this issue, as people usually put spaces in postcodes?
Title: Re: UK Postcode/County/Country code zones module
Post by: OJKINGSTON on December 05, 2011, 10:55:24 am
Hi,

I am looking for some help ..

We have been successfully using the shipping plugin for some months now.

I wanted to run a simple marketing campaign trial whereby I offered free shipping, regardless of location or sale value. I simply de-activated the plugin by unselecting the plugin in admin/configuration.

Now I have turned it back on, it doesn't seem to work?

I have checked all of the settings and it seems to be set-up properly. Store configuration is set to min order £1, free shipping threshold £400.

I have double checked and cannot get this to turn back on.

Can anybody help?
Title: Re: UK Postcode/County/Country code zones module
Post by: mike364 on December 06, 2011, 00:03:27 am
Hi All, sorry to spam the thread but does anybody know how to resolve this issue, I have the same problem.

I can see that the ship_to_info_id created for alternat address seems to miss the country field out when being generated, however i have no idead how to get this field included.

On the first step of checkout, shipping address managed to add the missing courty field thinking this would somehow make its way into the ship_to_info, unfortunatly this didnt work....

This is the last major bit of functioanlity I need to work now then I am 100% sorted.

Thanks in advance if anybody can help.

Billing v Shipping addresses - not recognizing postcode in alternative shipping addresses.

Alan, I've got this all working fine when I use the default billing address but if I select to use an alternative Shipping address this appears to not recognize the postcode. Any thoughts?

Thanks, Rob.

VM 1.1.3
UK postcode zones module 1.51
Joomla 1.5.9
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on December 06, 2011, 16:59:29 pm
Hi guys,

I'd just like to appologise for my complete silence on this thread - I've not recieved any notifications so didn't realise you guys were all posting questions.

I see the sites look has changed since last I was here so I wonder if the "notify me" setting got lost in the migration (assuming it's not just a reskin job).

Anyway I'm really busy at work at the moment but I will try and get some time to help out - if you've posted a question here and not resolved/given up yet please repost and I'll try and help out.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: mike364 on December 06, 2011, 20:26:17 pm
Hi All,

If anybody can still help with this issue in my previous would be ideal, but for now I managed to work out that i could drive the post of zones using "county" as multiple zones in custome postcode and create the input mask from the "Generic Postcode Match Types" really simple really, not sure why I didnt think of it sooner.

Thanks again for this great plugin

Mike

Hi All, sorry to spam the thread but does anybody know how to resolve this issue, I have the same problem.

I can see that the ship_to_info_id created for alternat address seems to miss the country field out when being generated, however i have no idead how to get this field included.

On the first step of checkout, shipping address managed to add the missing courty field thinking this would somehow make its way into the ship_to_info, unfortunatly this didnt work....

This is the last major bit of functioanlity I need to work now then I am 100% sorted.

Thanks in advance if anybody can help.

Billing v Shipping addresses - not recognizing postcode in alternative shipping addresses.

Alan, I've got this all working fine when I use the default billing address but if I select to use an alternative Shipping address this appears to not recognize the postcode. Any thoughts?

Thanks, Rob.

VM 1.1.3
UK postcode zones module 1.51
Joomla 1.5.9
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on December 07, 2011, 10:35:54 am
Hi,

I can't find any mention of ordering shipping modules - seems to be something you'd want if using more than one. I guess the ordering is alphebetical - in which case the only option would be to rename the files for one of the shipping modules and editing them; finding and renaming all references to the files within those files and changing the class name in the main php file.

I've not tried it but standard shipping is going to be easier to do than my module. So you could try:

1) rename standard_shipping.php => a_standard_shipping.php
2) standard_shipping.ini => a_standard_shipping.ini
3) edit a_standard_shipping.ini - change line 14 to:
Code: [Select]
filename = a_standard_shipping.php4) edit standard_shipping.php - change line 18 to:
Code: [Select]
class a_standard_shipping {
I would copy the files first and change the copied version until you'd tested it.

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.
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on December 07, 2011, 10:52:19 am
Hi John,

glad you figured out where to fix that - I'll log a bug and add validation to the list for the next version (if work ever slackens again and I get some time to work on it)

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 (http://www.swaysearch.com)
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 (http://www.swaysearch.com)
Title: Re: UK Postcode/County/Country code zones module
Post by: mx5gr on December 07, 2011, 19:13:44 pm
We are faced with a rather peculiar issue. We use the shipping module for all shipments of our e-shop. However, there are some products for which we want to offer a free shipping (as defined within the shipping module for purchases above a certain amount) irrespective of price entered as a minimum for free shipping. Other products that are not explicitly defined will be calculated for the shipping prices/free shipping prices entered in the module.

Can this be accomplished?
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on December 08, 2011, 10:44:08 am
Hi mx5gr,

Each zone can have a list of allowed or disallowed products so I guess you could set up a second instance of the module with one zone that covers all postcodes that is set to only allow the correct items and set free shipping for that instance to trigger on 0.01.

This should mean that if the shopping cart only contains items that should always get free shipping then the second instance will trigger and offer free shipping otherwise if any other items are in the cart it won't trigger at all. The main instance will still trigger and offer it's options too unless you set all the zones in it to disallow the same list of products but then the customer won't be offered any shipping options if the cart contains both free shipping items and normal items.

You could set the main instance to display a message stating that the cart contains a mix of free shipping and normal items and they need to process them as two seperate orders. I might be inclined to not do that though and live with the situation where free shipping only carts display two options. The other thing to bear in mind however is that in the case where the cart contains both free shipping and normal items the free shipping items would contribute to the cost of shipping depending on how you've set the module up to calculate shipping (eg if the shipping is calculated from the number of items, cost or weight).

Hope that helps,

Alan.

We are faced with a rather peculiar issue. We use the shipping module for all shipments of our e-shop. However, there are some products for which we want to offer a free shipping (as defined within the shipping module for purchases above a certain amount) irrespective of price entered as a minimum for free shipping. Other products that are not explicitly defined will be calculated for the shipping prices/free shipping prices entered in the module.

Can this be accomplished?
Title: Re: UK Postcode/County/Country code zones module
Post by: 69thelememt on January 12, 2012, 14:30:47 pm
for some reason the module will not let me save it to 'Rate type: Weight bands' it keeps reverting back to 'price bands'........This would be the perfect mod for me if i could only get this function to work!!!!

Please help

Also I cannot seem to find a new download for this that isn't missing the HTML file??
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on January 13, 2012, 10:27:15 am
Hi,

The latest version (1.51) is on the VM extensions directory (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=3&sobi2Id=442&Itemid=2 (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=3&sobi2Id=442&Itemid=2)), there is no html file in the download only postcode.php, postcode.ini and readme - the configuration is saved in postcode.cfg.php which is automatically created once the module is installed and enabled.

If you're not using 1.51 then please update and try again - your configuration file will be upgraded without loosing your current settings. If you are using 1.51 then let me know and I'll file a bug report but I'm incredibly busy on a major project at the moment so can't gaurentee how soon I can get a chance to fix it.

Cheers,

Alan.

for some reason the module will not let me save it to 'Rate type: Weight bands' it keeps reverting back to 'price bands'........This would be the perfect mod for me if i could only get this function to work!!!!

Please help

Also I cannot seem to find a new download for this that isn't missing the HTML file??
Title: Re: UK Postcode/County/Country code zones module
Post by: csloan10 on January 26, 2012, 22:41:51 pm
Hi AlanB,

I seem to get the "No zone match message" no matter what address or postcode I use. I have tried a number of different UK postcodes. Because of this, none of the shipping options are showing. Would you have any idea what would be causing this?

Thanks for your assistance,
Ciaran
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on January 27, 2012, 09:57:56 am
Hi,

can you post the contents of /administrator/components/com_virtuemart/classes/shipping/postcode.cfg.php? I'll try and see if I can spot anything there - also what versions of Joomla and Virtuemart are you using?

Cheers,

Alan.

Hi AlanB,

I seem to get the "No zone match message" no matter what address or postcode I use. I have tried a number of different UK postcodes. Because of this, none of the shipping options are showing. Would you have any idea what would be causing this?

Thanks for your assistance,
Ciaran
Title: Re: UK Postcode/County/Country code zones module
Post by: csloan10 on January 27, 2012, 12:29:25 pm
I worked out what i was doing wrong. I wasn't putting any postcodes into the defined zones, so therefore there was no postcodes to compare with. I have it working great, I only have one more question. Is it possible to set a maximum weight? For example in the weight bands I would like to set for weights of 0-35kg delivery is at base rate. however if weight is over 35kg, delivery to that zone is unavailable.

Is this possible? Thanks for your assistance.
Title: Re: UK Postcode/County/Country code zones module
Post by: csloan10 on January 30, 2012, 11:22:16 am
Hi alanB,

Just wonderinig if you had any further thoughts on how I could program one of the instances so that if the weight is > 30KG, that particular instance is not available?

Thanks,
Ciaran

Hi,

can you post the contents of /administrator/components/com_virtuemart/classes/shipping/postcode.cfg.php? I'll try and see if I can spot anything there - also what versions of Joomla and Virtuemart are you using?

Cheers,

Alan.

Hi AlanB,

I seem to get the "No zone match message" no matter what address or postcode I use. I have tried a number of different UK postcodes. Because of this, none of the shipping options are showing. Would you have any idea what would be causing this?

Thanks for your assistance,
Ciaran
Title: Re: UK Postcode/County/Country code zones module
Post by: TRIPLEdm on February 15, 2012, 13:10:09 pm
I got it setup but for some reason shipping is just not tuned into my brain I go a complete blank.

Is there anybody who can help me set this up? I don't mind paying.

FOUR ZONES:

Zone1: (UK Mainland)
Free delivery on orders over X amount
All others charged at X amount
Zone 2: (Not UK Mainland)
NO Free delivery amount
Charges for first X.kg and then add amount for every X.kg thereafter
Zone 3: (EU list of 26 countries)
NO Free delivery amount
Charges for first X.kg and then add amount for every X.kg thereafter
Zone 4: (Other)
NO Free delivery amount
Charges for first X.kg and then add amount for every X.kg BUT disclaimer that charges could be more and will be confirmed.

Is there anyone who can help me with this?

THANK YOU!
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on February 16, 2012, 13:25:54 pm
Hi all,

just to let you all know that I've just updated the module to 1.52 and it's available for download via http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=442&Itemid=2&Itemid=2 (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=442&Itemid=2&Itemid=2).

I've fixed an error that stopped the correct "Rate type" being saved that I think several people were posting about so that should fix some peoples issues.

I've also added a fix to support multiple currencies (thanks to David Meier for spotting and suggesting the answer).

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: TRIPLEdm on February 16, 2012, 18:39:58 pm
Hi all,

just to let you all know that I've just updated the module to 1.52 and it's available for download via http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=442&Itemid=2&Itemid=2 (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=442&Itemid=2&Itemid=2).

I've fixed an error that stopped the correct "Rate type" being saved that I think several people were posting about so that should fix some peoples issues.

I've also added a fix to support multiple currencies (thanks to David Meier for spotting and suggesting the answer).

Cheers,

Alan.
Thank you for awesome module! Is there someone you can refer or perhaps yourself who can setup the module for me? (PAID)
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on February 17, 2012, 09:58:24 am
Hi all,

just to let you all know that I've just updated the module to 1.52 and it's available for download via http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=442&Itemid=2&Itemid=2 (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=442&Itemid=2&Itemid=2).

I've fixed an error that stopped the correct "Rate type" being saved that I think several people were posting about so that should fix some peoples issues.

I've also added a fix to support multiple currencies (thanks to David Meier for spotting and suggesting the answer).

Cheers,

Alan.
Thank you for awesome module! Is there someone you can refer or perhaps yourself who can setup the module for me? (PAID)

Hi,

I don't know if anyone else who's used this module can do that for you, you could contact my company contact@altcom.co.uk for a quote to do it but if you post here what shipping rules you need I might be able to tell you how to set it up yourself.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: TRIPLEdm on February 17, 2012, 10:01:56 am
Ok super thanks ALAN,

I am going to compile the list of zones with specs and will post here shorty.

THANK YOU!
Title: Re: UK Postcode/County/Country code zones module
Post by: turrikan on March 04, 2012, 16:43:52 pm
Hi, i have a question:

I have 2 zones:

- Italy   5euro     free for over 70euro

- Spain 10euro    free for over 100euro


Now i want to create a free delivery for all zones for just one product that is gift card send by e-mail..

could you help me please, my head is about to eplode :)
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 05, 2012, 10:25:38 am
Hi, i have a question:

I have 2 zones:

- Italy   5euro     free for over 70euro

- Spain 10euro    free for over 100euro


Now i want to create a free delivery for all zones for just one product that is gift card send by e-mail..

could you help me please, my head is about to eplode :)

I guess one way  you might be able to do this by setting the shipping rate to be by weight bands with one band for 1+kg at 5euro rate and set the Spain zone to add 5euro to the shipping rate. Then set all products to weigh 1kg except the gift card which you set to 0kg.

I've not tested this but it seems to me it should work unless you need to set weights correctly in which case then if you can set the gift card weight to 0 still then the weight band could be 0.01+ or whatever the smallest weighing item is. The shop that I originally created this module for was shipping items that occupied 1 or more pallets and I used the weight bands to charge shipping per pallet where 1kg weight equalled one pallet.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: wanniez on March 14, 2012, 01:30:27 am
Hi there,
I created 3 different zones (see attachment), ( Rate type : flat rate. )
 - UK  £6.95
 - International £19.95
 - International (bundle) £34.95<--- this is when international customers buy cricket bat, pad and glove so they can choose for a bundle rate.

However , when I tested it with a US address, the only option that appeared was 'international' ,not the bundle option... WHY??
Please help.  :'(

Thanks

[attachment cleanup by admin]
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 14, 2012, 10:17:40 am
Hi there,
I created 3 different zones (see attachment), ( Rate type : flat rate. )
 - UK  £6.95
 - International £19.95
 - International (bundle) £34.95<--- this is when international customers buy cricket bat, pad and glove so they can choose for a bundle rate.

However , when I tested it with a US address, the only option that appeared was 'international' ,not the bundle option... WHY??
Please help.  :'(

Thanks

Hi,

I'm afraid the module won't work like that - it finds the first zone that matches not all zones that match so that's why only the international rate is shown. If the bundle rate was for separate products then you could have the two zones like you do with International set to disallow the bundle products and International (Bundle) set to only allow the bundle products.

If that's not the case then you could set a shipping option but that would affect both the UK and International zones unless you created a second instance of the module and configured the main one with just the UK zone and the second one with the international zone + bundle option.

Hope that makes sense.

I guess there might be situations that need multiple zone matches so I'll add to the wish list an option to match only the first matching zone or all matching zones. No guarantees when I might get time to get the next version done as there's been no slack time at work for ages now so no free time to work on this.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: hrhsii on March 14, 2012, 12:14:19 pm
Hi

Is it possible to have weight bands for different zones, or due you have to set up a new instance.

I want weight bands for uk, Europe, and Rest of the world.

From what i see the weight bands do not work with the zones only the default zone, or am I incorect.

A the moment i use the standard shipping module with weight bands for Europe and the Rest of the World, and your shipping module for uk weight bands. I would like to use your module for all countries as everything is in one place.
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 14, 2012, 12:22:58 pm
Hi

Is it possible to have weight bands for different zones, or due you have to set up a new instance.

I want weight bands for uk, Europe, and Rest of the world.

From what i see the weight bands do not work with the zones only the default zone, or am I incorect.

A the moment i use the standard shipping module with weight bands for Europe and the Rest of the World, and your shipping module for uk weight bands. I would like to use your module for all countries as everything is in one place.

Hi,

the rate bands and options all affect all zones in the module, you would have to set up separate instances to apply different bands or options etc.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: hrhsii on March 14, 2012, 13:35:49 pm
Thanks for the quick reply.

Title: Re: UK Postcode/County/Country code zones module
Post by: hrhsii on March 14, 2012, 15:41:39 pm
Hi

I have just upgraded to 1.52, I upload the files to the location in the readme file, now i have the main shipping module saying 1.52, but my other instances are 1.51, how do i upgrade them all, do i have to edit all the files manually?
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 14, 2012, 15:49:36 pm
Hi

I have just upgraded to 1.52, I upload the files to the location in the readme file, now i have the main shipping module saying 1.52, but my other instances are 1.51, how do i upgrade them all, do i have to edit all the files manually?

Hi,

yes - auto upgrading instances is on the todo list. You'll have to overwrite the postcode1.php etc files with copies of the 1.52 version manually. Don't overwrite the postcode1.cfg.php etc files for the instances - the config files will be upgraded if needed by the module without losing your configuration.

Cheers,

Alan
Title: Re: UK Postcode/County/Country code zones module
Post by: hrhsii on March 14, 2012, 15:50:53 pm
Thanks Alan
Title: Re: UK Postcode/County/Country code zones module
Post by: Jan1812 on March 14, 2012, 17:00:39 pm
Hi Alan,

i've set for Belgium 0.005 - 2KG= 8€ with Bpost
now i want to add one for Germany 0.005 - 2KG=18€ with Bpost!
is this posible? how should i do this?
Title: Re: UK Postcode/County/Country code zones module
Post by: wanniez on March 14, 2012, 21:41:56 pm
Hi there,
I created 3 different zones (see attachment), ( Rate type : flat rate. )
 - UK  £6.95
 - International £19.95
 - International (bundle) £34.95<--- this is when international customers buy cricket bat, pad and glove so they can choose for a bundle rate.

However , when I tested it with a US address, the only option that appeared was 'international' ,not the bundle option... WHY??
Please help.  :'(

Thanks

Hi,

I'm afraid the module won't work like that - it finds the first zone that matches not all zones that match so that's why only the international rate is shown. If the bundle rate was for separate products then you could have the two zones like you do with International set to disallow the bundle products and International (Bundle) set to only allow the bundle products.

If that's not the case then you could set a shipping option but that would affect both the UK and International zones unless you created a second instance of the module and configured the main one with just the UK zone and the second one with the international zone + bundle option.

Hope that makes sense.

I guess there might be situations that need multiple zone matches so I'll add to the wish list an option to match only the first matching zone or all matching zones. No guarantees when I might get time to get the next version done as there's been no slack time at work for ages now so no free time to work on this.

Cheers,

Alan.

Thank so much for your reply. I will have a go with the two instances option - will let you know how it goes! :)
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 15, 2012, 11:49:24 am
Hi Alan,

i've set for Belgium 0.005 - 2KG= 8€ with Bpost
now i want to add one for Germany 0.005 - 2KG=18€ with Bpost!
is this posible? how should i do this?

Hi,

how have you set up the module? What shipping rules do you want? Without any more information it's not very easy to decide

Depending on what you actually need what you might want is to set the module to match on country code and then have a zone for Belgium with a base rate of 8€ and a zone for Germany with a base rate of 18€. That will give you the shipping rates as described.

If you want to charge more for weights above 2kg then you need to look at setting the module to use weight bands and figure a system that works for both Belgium and Germany.

If you need something different between Belgium and Germany (ie different weight bands or shipping options etc) then you would need to create a second instance of the module. Set the first module to only accept users in Belgium and the second to only accept users in Germany and then configure each separately. In this case you could just use the default zone if you don't need to have separate charges within Belgium or Germany.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: Jan1812 on March 15, 2012, 14:16:26 pm
Alan,

thx for the response!
i've now only Belgium!
setup: deliver package
1
Bpost
Belgium
00000
99999
0.005KG
2KG
5.72€
0.89€
EURO
BTW: 21%

that's my setup!
for Germany i made a new one with the same settings ( the costs are different )!
but de site shows only "belgium" and "germany" not!
what is wrong?
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 15, 2012, 14:26:34 pm
Alan,

thx for the response!
i've now only Belgium!
setup: deliver package
1
Bpost
Belgium
00000
99999
0.005KG
2KG
5.72€
0.89€
EURO
BTW: 21%

that's my setup!
for Germany i made a new one with the same settings ( the costs are different )!
but de site shows only "belgium" and "germany" not!
what is wrong?

Hi,

are you saying that when you purchase something with a delivery address in Belgium you get the Belgium shipping but that when you have a German shipping address you get no shipping rates at all? If so then please copy the postcode.cfg.php and postcode1.cfg.php files from /administrator/components/com_virtuemart/classes/shipping.

If however you're saying that the German option doesn't appear when you use a Belgium delivery address then it shouldn't - you should only see the correct shipping rate based on the delivery address.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: Jan1812 on March 15, 2012, 15:37:24 pm
Hi Alan,

ah okay!
it's solved & thx for the effort
Title: Re: UK Postcode/County/Country code zones module
Post by: Inspireddevelopment on March 28, 2012, 10:04:49 am
Hi... Does this plugin work for Virtuemart 2.0?
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 28, 2012, 10:09:04 am
Hi... Does this plugin work for Virtuemart 2.0?

Hi,

the quick answer is I don't know. We've not done any more sites with virtuemart since I created this module so I've not used 2.0 yet. I've no idea if there are any changes to the shipping api or not.

If you've got a development site with VM2.0 on then all I can suggest is trying it :D

Sorry I can't be more help,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: antonitus on March 28, 2012, 16:10:52 pm
Excellent module and it works perfectly under J1.5+ and VM1.19, however will there be an updated version for Joomla 2.5.2 and VM2+?  This would be excellent to have working as I believe Joomla 1.5 will cease to exist soon and I'm now moving on to Joomla 2.5.2 and VM2+.

Thanks for the brilliant module.

Tony
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on March 29, 2012, 10:12:04 am
Excellent module and it works perfectly under J1.5+ and VM1.19, however will there be an updated version for Joomla 2.5.2 and VM2+?  This would be excellent to have working as I believe Joomla 1.5 will cease to exist soon and I'm now moving on to Joomla 2.5.2 and VM2+.

Thanks for the brilliant module.

Tony

Hi Tony,

Thank you. I'm glad you find it useful.

I only get time to work on this if we get slack time in the office (which is rather rare at the moment) so I can't say when I'll get chance to work on it again unless we get a client who wants a virtuemart shop. I have a wish list of additions and modifications and I'd like to rewrite the code from scratch to make it easier to maintain and extend at which point I'd make sure it worked on VM2 and Joomla 2.5 but without a paying client it's unlikely to be any time soon - unless there's any other developers who'd like to get involved.

Cheers,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: antonitus on March 29, 2012, 23:48:36 pm
Hi Alan,

Thanks for your response. I really enjoy using your script, it's really the best UK shipping module for VM and it's so powerful and flexible.  I have some basic knowledge of PHP but I'm not a guru and I can quite easily edit some PHP files.  The problem I have here is the way Virtuemart have created their new VM2+ hierarchy.  They seemed to have completely changed their folder structure.  I'll see if I can find a way of implementing your existing script to VM2+, but no guarantees as I'm not a guru in Joomla module writing, but I can sure learn.

Also if I can get some paid clients on board who need this feature in VM2+, then I will surely talk to you about developing one  for VM2+, if the price is right.  Virtuemart are so rubbish at developing UK shipping plugins and you have done an excellent job in creating one for the community, so well done for that and we thank you with respect.

Another thing that annoys me is that Royal Mail should pull their finger out and start writing a plugin for Virtuemart, just like DHL and FedEx. I have written to them a couple of times and no one knows what is going on.  This would make our lives even easier as the rates would come straight from their servers.  Hey, maybe you should approach them and tender your expertise, it could make you rich, haha.

Cheers,
Tony
Title: Re: UK Postcode/County/Country code zones module
Post by: MTechMgr on April 22, 2012, 13:52:17 pm
Hello to the forum and many thanks to the author of this module.
I've been trying to use this module in my e-shop but i've noticed some missing options.
Courier companies in Greece have extra services like COD, delivery on Saturdays, areas out of range that they charge with extra money for delivery and things like that.
I'm trying to use this module and virtuemart and in step 2 of the order.
1)Customer should be able to choose base rate and extra services like COD,delivery on Saturdays etc. and VAT should be calculated on all choices.
2)I think checkboxes would be better than radio buuttons for customer to choose and after the choices made, the whole amount of shipping plus VAT should be transferred to step 3 of order in Virtuemart.

I belive these solutions would help make the module better.
Title: Re: UK Postcode/County/Country code zones module
Post by: alanB on April 23, 2012, 10:26:25 am
Hi,

Hello to the forum and many thanks to the author of this module.

you're welcome.

1)Customer should be able to choose base rate and extra services like COD,delivery on Saturdays etc. and VAT should be calculated on all choices.

You can do this with the module with shipping options - these are things that modify the base rate for the zone eg. A shipping option called "Saturday Delivery" which modifies the rate by +5€ or *2 or whatever. If you've set a tax rate then it is applied to the shipping options also.

Cash on Delivery would sort of work as a shipping option by setting it to modify the rate to =0 but it's not really fully supported as I guess as you'd want to show the amount to pay somewhere on the invoice etc when this would just show the shipping as 0 (but would show that they had chosen the COD option) so not sure if it would work for you or not.

2)I think checkboxes would be better than radio buuttons for customer to choose and after the choices made, the whole amount of shipping plus VAT should be transferred to step 3 of order in Virtuemart.

Possibly the module could use checkboxes rather than radio buttons, but that would possibly break the way virtuemart works if any other shipping modules were used at the same time - all shipping modules output radio buttons so that only one shipping option can be chosen - otherwise the customer could select options from this module and other modules at the same time.

Maybe it could be done so that there is a radio button to choose this shipping module and the options could be checkboxes (although again it makes sense for options to be radio buttons if they're mutually exclusive - eg you can't really pick next day delivery and saturday delivery and free delivery at the same time) but I don't have time to investigate and implement it at the moment. All I can say is that I'll add it to the wish list of functionality and if/when I get some slack time to work on the module again I might be able to do it - I'll also add a COD system to the wish list.

Thanks for your feedback,

Alan.
Title: Re: UK Postcode/County/Country code zones module
Post by: MTechMgr on April 24, 2012, 15:17:00 pm
Dear Alan,
Thx for the quick response!
The shipping options i created are:
The problem is if someone wants COD AND saturday delivery, how can it be modifed?
Also client's choice is COD what should he choose in the next step in ways of payments?

Along with your module i have published UPS module for clients in Europe.
So things get messed up for the whole set-up of the steps.

What do you suggest?
Title: Re: UK Postcode/County/Country code zones module
Post by: MTechMgr on April 24, 2012, 15:23:47 pm
I'm also trying to find an algorithm for setting up prices when products are more than 3 kgs. I'ts frustrating to set up weight and modifiers one by one and be limited to 10kgs cause the list grows up.
For example speedex costs for intercity service are:
But for domestic service we have:
So someone has to set up modifer-type and modifier-amount for every extra kg. Can't we set it up in a different way?OR maybe modify php file with a loop or something for such cases?
Title: Re: UK Postcode/County/Country code zones module
Post by: Jakaru on May 24, 2012, 11:11:29 am
Trying to set up Multiple Instances where (1) is UK Royal Mail based upon Country code, which I want to apply for Under 750g parcels, and (2) is UK Postcode based for heavier parcels (3) and (4) are sets of overseas country codes using different services.

2, 3, 4 all have weight band modifiers - and all work together fine.

Its when (1) is on that things go wrong, as it still shows the Royal Mail price (cheap) with the overseas Courier (because of course the Country code is In both modules.

I need someway to stop (1) from showing when the parcel is Over 750g, and I guess vice versa too. Any idea how I go about making the shipping modules base themselves on Weight first, Then location?
Title: Re: UK Postcode/County/Country code zones module
Post by: Parsimonious on July 12, 2012, 23:34:18 pm
Hi Alan,

I know you posted a few months ago you were quite busy and would not have much time to explore an update for VM 2. Just wanted to see if there have been any changes? I used your module on our site in Canada and it was quite helpful. I was able to set different rates as a % of the order total for different parts of the country based on postal codes. It was great to be able to partial matches of code too. It seems there is nothing like this for VM 2. Hopefully you can do an update - I can't fund full development, but would definitely buy it if it's done.
Title: Re: UK Postcode/County/Country code zones module
Post by: BristarUK on October 14, 2012, 18:48:12 pm
I'm having a bizarre problem with this in that I can update and save the shipping config until I add a zone at which point, it just takes me to a blank screen. Anyone come across this problem before?
Title: Problem with postcodes with leading 0
Post by: radovid on December 20, 2012, 13:19:05 pm
Dearest,

I have recently noticed a serious problem with postcodes which start with a leading zero. The system does not recognise them and gives none of the available instances.
For example the post code 00165 is not recognised (so no shipping option is given) although I had configured a proper post code range: 00001-07009

Configuration of instances:

Zone type: Generic post code

Instance: 1 (Italy without Sicily, Calabria and Sardinia)
Post codes: 00001-07009,09171-87009,89901-90009,98080-99999

Instance: 2   (Sicily, Calabria and Sardinia)
Post codes: 07010-09170,87010-89900,90010-98079



System versions:
VirtueMart 1.1.9 stable
Joomla! 1.5.24 Stable
Zone shipping version: 1.51 (2011)

The site is running for a year now but nobody noticed that until yesterday when a client called and asked for help with the shipping.

Is it a bug, or I just do not know how to configure the ranges properly?

As you can understand it is an serous issue, so any any help would be really appreciated.

Thank you very much for your kindest answers.

Latest update... I solved the issue:

In the file: postcode.php
I changed the line number: 75

Code: [Select]
73        //The zip and country that you are shipping to
74       $dest_country = $db->f("country_2_code");
75        $dest_postcode = $db->f("zip");

to:

Code: [Select]
75        $dest_postcode = (int) $db->f("zip");

Now it seem to work as it should
Title: Re: UK Postcode/County/Country code zones module
Post by: mondomota on January 30, 2013, 10:32:44 am
Hi, is it possible to specify shipping rates per product or category through this module?
We have been using it for a while for a client with 2 products and using 4 shipping types (UK, UK Next Day, Europe and ROW) but they now have a poduct that costs less to deliver and they want to be able to determine the shipping cost based on the product(s) in the cart.

I'm pretty sure Inow the answer but wondered if there was any scope for further (paid) development.

Many thanks,
Ollie