Zen Cart Logo
Forums / Addon Shipping Modules / General and Auspost Related

General and Auspost Related

Locked

Views: 1,763

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Jul 2006, 5:05 AM
#1
alfo avatar

alfo

Zen Follower

Join Date:
Apr 2006
Location:
Sydney, Australia
Posts:
103
Plugin Contributions:
0

General and Auspost Related

Hi

I Have auspost working on my site at https://www.alifefullof.com.au it calculates correctly when the inputs are there.

My question/problem is to do with postcodes that have spaces - specifically UK i.e. WS13 6FE as opposed to WS136FE. Posting a space through to Auspost module breaks it (or the auspost webtool)

I have put a comment next to postcode to tell peeps not to use spaces but would prefer some code that trimmed any spaces out.

I am not a coder so could someone advise if this is possible and how?

22 Jul 2006, 11:50 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: General and Auspost Related

without looking at the actual code, I can't give you the exact fix.

The concept is instead of using $postalcode, you would use:
str_replace(' ','', $postalcode)