Post by doodlemoonch » Sun Dec 19, 2010 1:23 am

What is the following postcode AJAX request for?

Found in address.tpl

Code: Select all

$('#postcode').load('index.php?route=checkout/create/postcode&country_id=<?php echo $country_id; ?>');
Is the idea it returns false for countries that don't have it and the postcode field is hidden?

My install returns a 404 on this request, any ideas where to look first? Is postcode required by standard or is it configured?

New member

Posts

Joined
Wed May 12, 2010 9:27 pm

Post by Qphoria » Sun Dec 19, 2010 4:06 am

This checks if the country requires a postcode or not.. if not required it removes the * and disables the validation. If it is required it adds the * and enables validation

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by webpie it. » Sat Apr 16, 2011 8:42 pm

This for some reson broke my form when signing up for a new account, removed it and i didn't have a problem, the only thing that changed on my site was inserting a cufon font in the header.

Thats the only change i made, and even i removed the cufon font it still broke so commented out the ajax postcode check posted above and it worked.

My main question is, by commenting it out, does that cause a big problem even though it will work?

Thanks

Chris

Regards

Chris


Active Member

Posts

Joined
Mon Jan 31, 2011 7:28 pm
Who is online

Users browsing this forum: No registered users and 226 guests