Forums / Addon Shipping Modules / General and Auspost Related

General and Auspost Related

Locked

Started by alfo on 19 Jul 2006, 5:05 AM · Views: 1,772

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?

alfo

https://www.alfo.com.au
online ordering for catering, tea parties, take away food and retail from alfo cafe
https://www.alifefullof.com.au
tea party essentials: leaf tea, coffee beans, oils, chocolate and more

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

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
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)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.