Hello
I calculate the delivery costs depending on the zip code. When there is a space after the zip code, delivery costs are 0.-. How can I avoid this without having the field limited to a fixed imput lenght?
Thanks!
11.02.2014 10:13
|
|
meb
Name: meb
16.03.2012
Posts: 14
|
|
12.02.2014 10:22
|
|
meb
Name: meb
16.03.2012
Posts: 14
|
Aw: Deliverycosts not calculated when space after zip code
Hi there. I fixed the problem with some Java-Script that removes all spaces in the input-box string in the components\com_jshopping\templates\default\checkout\address.php: In the header I added the Script: <script language="javascript" type="text/javascript"> function removeSpaces(string) { return string.split(' ').join(''); } </script> In the input-box for the zip-codes (zip and d_zip) add: onblur="this.value=removeSpaces(this.value);" Hope this helps someone else too... Cheers |