Forums / Addon Shipping Modules / Product Delivery by Postcode (PDP) - [Support]

Product Delivery by Postcode (PDP) - [Support]

Views: 35,458

Results 21 to 40 of 118
18 Mar 2014, 2:47 PM
#21
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Product Delivery by Postcode (PDP) - [Support]

Hi,

I have downloaded this add-in which installed fine. However I have tried a dummy order with a postcode that is not within the allowed list and it does not stop me with the "No shipping module is available and the messages 'Sorry, we are not shipping to your region at this time' and 'Local Delivery Only!'".

I only wish to deliver to a certain area so have marked all items as local delivery only and have added my allowed postcodes in this format:-BR8,CM0,CM1,CM11,CM12,CM13,CM14,CM15,CM2,CM3,CM4,CM5,CM8,CM9,CM99,DA1,DA10,DA11,DA12,DA13,DA17,DA18,DA2,DA3,DA4,DA5,DA6,DA7,DA8,DA9,IG11,ME1,ME10,ME11,ME12,ME14,ME16,ME19,ME2,ME20,ME3,ME4,ME5,ME6,ME7,ME8,ME9,RM1,RM10,RM11,RM12,RM13,RM14,RM15,RM16,RM17,RM18,RM19,RM2,RM20,RM3,RM4,RM5,RM6,RM7,RM8,RM9,SE2,SE28,SS0,SS1,SS11,SS12,SS13,SS14,SS15,SS16,SS17,SS2,SS22,SS3,SS4,SS5,SS6,SS7,SS8,SS9,SS99.

Please could you point me in the right direct of where I may be going wrong.

Many thanks.

Denise.

18 Mar 2014, 2:55 PM
#22
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

denise006:

Hi,

I have downloaded this add-in which installed fine. However I have tried a dummy order with a postcode that is not within the allowed list and it does not stop me with the "No shipping module is available and the messages 'Sorry, we are not shipping to your region at this time' and 'Local Delivery Only!'".

I only wish to deliver to a certain area so have marked all items as local delivery only and have added my allowed postcodes in this format:-BR8,CM0,CM1,CM11,CM12,CM13,CM14,CM15,CM2,CM3,CM4,CM5,CM8,CM9,CM99,DA1,DA10,DA11,DA12,DA13,DA17,DA18,DA2,DA3,DA4,DA5,DA6,DA7,DA8,DA9,IG11,ME1,ME10,ME11,ME12,ME14,ME16,ME19,ME2,ME20,ME3,ME4,ME5,ME6,ME7,ME8,ME9,RM1,RM10,RM11,RM12,RM13,RM14,RM15,RM16,RM17,RM18,RM19,RM2,RM20,RM3,RM4,RM5,RM6,RM7,RM8,RM9,SE2,SE28,SS0,SS1,SS11,SS12,SS13,SS14,SS15,SS16,SS17,SS2,SS22,SS3,SS4,SS5,SS6,SS7,SS8,SS9,SS99.

Please could you point me in the right direct of where I may be going wrong.

Many thanks.

Denise.

This is a known problem with UK postcodes. As it stands you will need to specify a full UK post code which is in one of these formats

LN NLL
LLN NLL
LNN NLL
LLNN NLL
LLNL NLL
LNL NLL

L for letter and N for number

Try changing your allowed postcodes accordingly.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Mar 2014, 2:57 PM
#23
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Re: Product Delivery by Postcode (PDP) - [Support]

Ah well, that will keep me out of mischief for a good while then :)

Many thanks for the swift reply. I'll get started on changing them.

All the best.

Denise.

18 Mar 2014, 3:21 PM
#24
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Re: Product Delivery by Postcode (PDP) - [Support]

Ok, so I tried this format - SS99 9AX,SS99 9AY,SS99 9AZ but still not joy. I get "This is currently the only shipping method available to use on this order" when I add the item to my cart as I have marked it local delivery only. I only have that option installed in the shipping modules so it would still seem as though it is not picking up the allowed postcodes.

I have uploaded the files carefully and followed the instructions for installation. Obviously I am something amiss. Any assistance again would be greatly appreciated.

Many thanks.

Denise.

18 Mar 2014, 9:36 PM
#25
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

denise006:

Ok, so I tried this format - SS99 9AX,SS99 9AY,SS99 9AZ but still not joy. I get "This is currently the only shipping method available to use on this order" when I add the item to my cart as I have marked it local delivery only. I only have that option installed in the shipping modules so it would still seem as though it is not picking up the allowed postcodes.

I have uploaded the files carefully and followed the instructions for installation. Obviously I am something amiss. Any assistance again would be greatly appreciated.

Many thanks.

Denise.

That means PDP works as expected.

If there is one or more products in the cart which is/are marked 'local delivery only' then obviously all other shipping methods are disabled and the customer gets the message "This is currently the only shipping method available to use on this order". That's the whole point to this exercise.

If you wanted to activate the same restrictions for 'Store Pickup' then you also need to add the array of postcodes to that module. In that case you have 2 methods available: 'Local deliver' and 'Store Pickup'

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Mar 2014, 8:00 AM
#26
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Re: Product Delivery by Postcode (PDP) - [Support]

Ok thanks Frank,

I presumed that it would stop you ordering from a non-allowed postcode which I understand now is not the case as the order goes through when it uses an non-allowed postcode.

Back on with the thinking cap then as to how I can restrict where people order geographically.

Many thanks for you help.

Denise.

19 Mar 2014, 9:08 AM
#27
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

denise006:

Ok thanks Frank,

I presumed that it would stop you ordering from a non-allowed postcode which I understand now is not the case as the order goes through when it uses an non-allowed postcode.

Back on with the thinking cap then as to how I can restrict where people order geographically.

Many thanks for you help.

Denise.

Hi Denise,

I have just tested UK shipping postcodes on my publicly accessible demo site

http://isonetwork.net.au/onefivetest/

On that demo site PDP is set to allow local delivery to postcodes 4551,SS99 9AX,SS99 9AZ (the latter 2 are in UK postcode format)

I have created a customer with 2 shipping addresses, one with postcode SS99 9AZ and an alternative delivery address with postcode SS99 9AY

Then I logged in as [email protected] with password localonly and put an item from category http://isonetwork.net.au/onefivetest/index.php?main_page=index&cPath=70 in the cart.

I then tried to checkout using with the alternative address postcode SS99 9AY which gives me the message "Sorry we are not shipping to your region at this time"

Note that postcode postcode SS99 9AY is not allowed.

So the module does what it should do.

Then I changed my delivery address to SS99 9AZ and I can checkout with the rate set for local delivery only.

Again, the module performs as expected.

I believe you did not install the module as per instructions. It could even be a case of file corruption during FTP to the live site, but that is unlikely.

Please check again that all files are merged/uploaded as instructed and try again.

It is worth noting that I have several UK customers using PDP performing as designed.

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Mar 2014, 9:54 AM
#28
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Re: Product Delivery by Postcode (PDP) - [Support]

Hi Frank,

That is exactly what I would want it to do so I'll have to revised my installation and try again.

Thanks very much for your help, very much appreciated.

All the best.

Denise.

19 Mar 2014, 9:58 AM
#29
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

denise006:

Hi Frank,

That is exactly what I would want it to do so I'll have to revised my installation and try again.

Thanks very much for your help, very much appreciated.

All the best.

Denise.

No problem, just let us know how you go.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

21 May 2014, 1:02 PM
#30
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Delivery by Postcode (PDP) - [Support]

Okay, so I reinstalled Denise's module and tested it myself.

It does not stop anyone from checking out with a non allowed post code. I haven't used this mod before and read thru everything very carefully. Reinstalled using most recent version that I downloaded. No go.

I logged into your demo site chose the first option and you have free delivery over $150 so no options show up at all. Perhaps you've changed something there?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 May 2014, 2:26 PM
#31
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

delia:

Okay, so I reinstalled Denise's module and tested it myself.

It does not stop anyone from checking out with a non allowed post code. I haven't used this mod before and read thru everything very carefully. Reinstalled using most recent version that I downloaded. No go.

I logged into your demo site chose the first option and you have free delivery over $150 so no options show up at all. Perhaps you've changed something there?

If you refer to the address as your first option then, yes, that should allow you to check out. It is an address which is not restricted.

What happens if (on the demo site) you chose the second option

Larry Local
99 Not Local Way
Far Away City, SS99 9AY
VIC, Australia

??

That address should give you the message "Sorry, we are not shipping to your region at this time"

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

21 May 2014, 6:01 PM
#32
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Delivery by Postcode (PDP) - [Support]

Okay, it does work there. What could we possibly be missing on her website for that part? Where is that code that controls that and I can look at specific files.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 May 2014, 9:14 PM
#33
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

delia:

Okay, it does work there. What could we possibly be missing on her website for that part? Where is that code that controls that and I can look at specific files.

Is v1.1 installed? The first release (1.0) had a missing language file.... no changes have been made since the release of v1.1

What other shipping modules are installed on that site? Is the file includes/functions/functions_general.php merged correctly?

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 May 2014, 1:18 PM
#34
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Delivery by Postcode (PDP) - [Support]

Looking at the code. I see a query for a zone - does this rely on setting up zones?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

28 May 2014, 1:28 PM
#35
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

delia:

Looking at the code. I see a query for a zone - does this rely on setting up zones?

Can you post that bit pls (file, lines..)

Thks / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 May 2014, 2:06 PM
#36
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Delivery by Postcode (PDP) - [Support]

Since she doesn't have zones set up, I'm thinking this might the problem with her installation.

From storepickup.php.

if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_STOREPICKUP_ZONE > 0) ) {
      $check_flag = false;
      $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . "
                             where geo_zone_id = '" . MODULE_SHIPPING_STOREPICKUP_ZONE . "'
                             and zone_country_id = '" . $order->delivery['country']['id'] . "'
                             order by zone_id");
      while (!$check->EOF) {
        if ($check->fields['zone_id'] < 1) {
          $check_flag = true;
          break;
        } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
          $check_flag = true;
          break;
        }
        $check->MoveNext();
      }

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

28 May 2014, 9:22 PM
#37
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

delia:

Since she doesn't have zones set up, I'm thinking this might the problem with her installation.
...

That code is stock ZC code and hasn't been altered in PDP.

You may want to set up a test zone for the store location and see if it has an effect on the functionality of PDP.

On the other hand I am aware of stores who don't have zones installed but are using PDP without problems.

Pls let us know what you can up with.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

7 Jul 2014, 5:18 PM
#38
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Re: Product Delivery by Postcode (PDP) - [Support]

Hi Frank,

Delia kindly got this working for me but I now have another issue which I hope you can help me with. I have a rather long list of allowed postcodes that I would like to use but when I add them in within Zencart it only seems to save a certain amount of them. Is there a maximum limit of these and if so how can I amend it please to allow more.

Many thanks.

Denise.

7 Jul 2014, 9:14 PM
#39
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Product Delivery by Postcode (PDP) - [Support]

denise006:

Hi Frank,

Delia kindly got this working for me but I now have another issue which I hope you can help me with. I have a rather long list of allowed postcodes that I would like to use but when I add them in within Zencart it only seems to save a certain amount of them. Is there a maximum limit of these and if so how can I amend it please to allow more.

Many thanks.

Denise.

Good to hear you got this working with the help of Delia.

I am not aware of any limits - I will have a look at this tonight after work and let you know.

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

7 Jul 2014, 9:18 PM
#40
denise006 avatar

denise006

New Zenner

Join Date:
Sep 2008
Location:
Essex
Posts:
44
Plugin Contributions:
0

Re: Product Delivery by Postcode (PDP) - [Support]

Thanks Frank,

The list of postcodes I have to add in is a Word document of 66 pages of then and potentially more to come. As it stands I reckon it is holding about 12-15 of the pages.

Look forward to hearing from you.

Thanks.

Denise.