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

Product Delivery by Postcode (PDP) - [Support]

Views: 35,458

Results 41 to 60 of 118
7 Jul 2014, 9:22 PM
#41
delia avatar

delia

Totally Zenned

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

Product Delivery by Postcode (PDP) - [Support]

There's always limits on a database field, no matter what type. In this case we are talking the configuration table - mysql text fields. I'm sorry, D, you obviously hit a ceiling there!

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

7 Jul 2014, 9:27 PM
#42
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:

There's always limits on a database field, no matter what type. In this case we are talking the configuration table - mysql text fields. I'm sorry, D, you obviously hit a ceiling there!

Yep, that's all I can think of too.

Would be a matter of finding out what safe character limit may be set to any given DB field and then amend the params for that field in the DB.

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:29 PM
#43
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]

I wouldn't alter it for this one thing. This affects the entire cart - it's the heart of the database and could affect performance.

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

14 Jul 2014, 7:57 AM
#44
denise006 avatar

denise006

New Zenner

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

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

Sorry, have only just seen these replies. Can't believe after all that time and trouble I'm stuffed for it working as I need it too (deep sigh). Are you able to tell just how many postcodes the max limit is please?

Thanks.

14 Jul 2014, 9:08 AM
#45
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:

Sorry, have only just seen these replies. Can't believe after all that time and trouble I'm stuffed for it working as I need it too (deep sigh). Are you able to tell just how many postcodes the max limit is please?

Thanks.

From memory that DB field allows for max 256 characters (could be wrong though...).

For 5 digit US postcodes that would mean about 42 postcodes (5 digits for every postcode plus one separating comma for each postcode minus one comma at the end of the array).

Try that and let me know how many codes you are able to fit.

As an aside, how did Delia get your copy of PDP to work? I am interested what caused the problem and what her solution was.

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.

14 Jul 2014, 11:01 AM
#46
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,

Ok thanks I'll have a play and see how many I can get in there and let you know.

Re Delia, I think she herself didn't really know as she changed a bunch of stuff and it sprung into life. I am about to use it on another site and so far do not having it working so when I get chance to play I'll see if I have more success with that one and let you know what I come up with.

Thanks again for coming back to me.

D.

14 Jul 2014, 11:13 AM
#47
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,

Ok thanks I'll have a play and see how many I can get in there and let you know.

Re Delia, I think she herself didn't really know as she changed a bunch of stuff and it sprung into life. I am about to use it on another site and so far do not having it working so when I get chance to play I'll see if I have more success with that one and let you know what I come up with.

Thanks again for coming back to me.

D.

Thanks D - I just PM'd Delia for some clarifications.

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.

15 Jul 2014, 12:57 PM
#48
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,

I have been playing around with this and I can add 65,500 odd characters.

Today I have been trying to mind an add-on which will achieve the same result but am struggling to find anything. Are you able to get this to work just using the first portion of a UK postcode i.e SS0 up to SS99 say as even that would work for me?

Look forward to hearing from you.

Thanks.

Denise.

15 Jul 2014, 1:16 PM
#49
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,

I have been playing around with this and I can add 65,500 odd characters.

Yep, 65536 chrs to be precise :cool:

denise006:

Today I have been trying to mind an add-on which will achieve the same result but am struggling to find anything. Are you able to get this to work just using the first portion of a UK postcode i.e SS0 up to SS99 say as even that would work for me?

As I mentioned earlier in this thread, UK postcodes are somewhat unique - being a numerical minded person, I am struggling to come to grips with that logic .... no offense intended, they are just the way they are.

I need some time to learn about the UK postcodes and then try and incorporate a suitable code into my pending PDP v2.2

I am thinking about the 'LIKE' operand when testing for allowed postcodes - that is instead of the current '=' operand :lookaroun

Pls leave it with me - I have a little think about this.

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.

15 Jul 2014, 1:25 PM
#50
denise006 avatar

denise006

New Zenner

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

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

Indeed Frank, 65536 it is!

I have a list of the postcodes I need to allow which I can send over to you if it helps, but basically all UK postcodes start with two letters re;evant to their location i.e SS (Southend-On-Sea) followed by either 1 number (if you live close to the center of that place) or up to two numbers i.e. SS1 or SS99 if you live further away from the center. These are then followed by a space and then 1 further number and then a further two letters. In short a postcode will either have a LETTERLETTERNUMBER NUMBERLETTERLETTER or LETTERLETTERNUMBERNUMBER NUMBERLETTERLETTER format depending on location. Hope that helps but if you could modify to use just the first portion of UK postcodes that would be enough to control location and then take away the character issue within a database.

Make sense??!!

15 Jul 2014, 2:31 PM
#51
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:

Indeed Frank, 65536 it is!

I have a list of the postcodes I need to allow which I can send over to you if it helps, but basically all UK postcodes start with two letters re;evant to their location i.e SS (Southend-On-Sea) followed by either 1 number (if you live close to the center of that place) or up to two numbers i.e. SS1 or SS99 if you live further away from the center. These are then followed by a space and then 1 further number and then a further two letters. In short a postcode will either have a LETTERLETTERNUMBER NUMBERLETTERLETTER or LETTERLETTERNUMBERNUMBER NUMBERLETTERLETTER format depending on location. Hope that helps but if you could modify to use just the first portion of UK postcodes that would be enough to control location and then take away the character issue within a database.

Make sense??!!

In short, the first portion always is LLN or LLNN - correct?

Then there is a space followed by another 3 or 4 letters/numbers (the second part).

Is it likely that any of the combinations of the first part can also be found in the second part?

Example: if there is something like SS5 NW3 then could there be something like EE89 SS5?

I should do some googling to learn about this .....

Yep, the list would be handy - you can use the contact form in the first or second link in my signature to send them to me.

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.

15 Jul 2014, 2:46 PM
#52
denise006 avatar

denise006

New Zenner

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

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

The first portion always is LLN or LLNN - correct? - Yep 2 letters 1 number or 2 letters 2 numbers

Then there is a space followed by another 3 or 4 letters/numbers (the second part). - second part is always 1 number 2 letters

Is it likely that any of the combinations of the first part can also be found in the second part? - there could be duplication of the letters/numbers

Example: if there is something like SS5 NW3 then could there be something like EE89 SS5? - not in that order as the second part is always 1 number 2 letter

I should do some googling to learn about this ..... - not the most intersting way to spend your time but it may help I guess :)

Yep, the list would be handy - you can use the contact form in the first or second link in my signature to send them to me. - will do thanks Frank

18 Jul 2014, 1:57 PM
#53
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]

I have submitted v 1.3 of PDP to the plugins area awaiting approval. This version has been updated to work with ZC 1.5.2 / 1.5.3

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

18 Jul 2014, 8:03 PM
#54
denise006 avatar

denise006

New Zenner

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

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

Great stuff :)

19 Jul 2014, 6:35 AM
#55
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:

Great stuff :)

Thanks D. Received your email with postcodes and will have a look at this soon (need to attend other unfinished business first)

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 Jul 2014, 6:54 AM
#56
denise006 avatar

denise006

New Zenner

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

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

No worries.

I have gone with another solution at present but it would be really handy to have in the future if you can crack it to work with just the first portion of the postcodes.

Good luck :)

D.

21 Jul 2014, 8:57 PM
#57
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]

frank18:

I have submitted v 1.3 of PDP to the plugins area awaiting approval. This version has been updated to work with ZC 1.5.2 / 1.5.3

PDP 1.3.1 is available for download from here

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

22 Jul 2014, 7:24 AM
#58
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,

Will let you know how I get on with it.

All the best.

D.

22 Jul 2014, 8:25 AM
#59
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:

Thanks Frank,

Will let you know how I get on with it.

All the best.

D.

Pls bear in mind that PDP 1.3.1 will not do the trick for you. For the UK issue you need to use the 1.4.0 RC1 I emailed you.

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.

17 Aug 2014, 11:55 PM
#60
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]

PDP version 1.4.0 is now available for download.

Added function to strip last 3 characters of UK postcodes to enable entering a larger number of postcodes without reaching database field limits.

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