Jump to content


Corporate Sponsors


Latest News: (loading..)

dennis@dhlhomefurnishings.

Member Since 02 Sep 2008
Offline Last Active Yesterday, 16:07
-----

Posts I've Made

In Topic: Shipping Module PHP Issue

23 May 2012, 13:27

Hello MrPhil

Thank you so much for your reply - I have tested it and it works fine - Thanks

Using the / for the delimiter in preg_split did cause an error as you suggested

Regards ... Dennis

In Topic: Shipping Module PHP Issue

22 May 2012, 15:23

Hi

Thanks for your quick response

That fix would work fine for a uk postcode but we also ship to countries were thier post codes are a continious number like zip codes for example which might be 112304 - so if you strip 4 digits off that your left with 112.

So the original code handles that because if there is no space it doesn't strip anything off the postcode.

list($t_postcode, $local) = split('[/ -]', $postcode);

Ant other ideas ?

Thanks ... Dennis