Magento One Page Checkout External AJAX Request?

Up vote 0 down vote favorite share g+ share fb share tw.

I need to be able to receive Shipping information from an external source based on an email address and insert the data into the Shipping Information form. The ajax request works perfectly well on a blank page, however when I add the code to the one-page-checkout template when the button is clicked the ajax lookup is not initiated, rather the browser acts as if I have clicked on the "continue" button. I can't get my head around the mix of external and in-line JS in magento so I can't see what is causing this problem.

My external php file returns a json object which is an array which has the following values: 0 - Street 1 - City 2 - Region 3 - Postcode 4 - Country Please note that I am using the jQuery Ajax Form plugin found here: In template/checkout/onepage/shipping I have added the following code at about line 38: Email: jquery ajax magento checkout link|improve this question edited Mar 15 at 5:23 asked Mar 15 at 5:18Matthew Dolman1789 93% accept rate.

I don't think this is related, but you have an extra comma after the error function. – Amin Eshaq Mar 15 at 5:31 Oops yes, it makes no difference though as the script works fine out of the context of the one page checkout – Matthew Dolman Mar 15 at 5:43 are you sure jquery is included and noConflict() is called? – Anton S Mar 15 at 9:38 If you are using firefox check error console.

– Nasaralla Mar 15 at 17:27 no conflict is definitely on. – Matthew Dolman Mar 15 at 23:20.

Figured it out myself I embedded the code inside the actual address form and so clicking the "Get Address" button causes it to submit the main address form.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions