I have older versions of this contribution working on two different carts, but I am trying to get 1.5 working now on a third cart. Everything appears to work OK except adding addresses to the address book, and editing addresses in the address book. These two functions work, but they don't work OK. The edits take place on the server side (and the new addresses are inserted), however; despite the a 200 OK with a response of
{
"success": "true",
}
The following code block in the checkout.php file (around line 601)
onePage.queueAjaxRequest({
url: onePage.pageLinks.checkout,
beforeSendMsg: 'Updating Address',
dataType: 'json',
data: $(":input", this).serialize(),
type: 'post',
success: function (data){
onePage.loadAddressBook($this, addressType);
},
errorMsg: 'There was an error saving your address, please inform <?php echo STORE_NAME; ?> about this error.'
});
Is returning the errorMsg rather than completing the success function. I have gone through all the applicable code and cannot find any reason why this would happen.
If I close the alert and close the dialog then click change address I can see that the changes were in fact saved despite the error message to the contrary. Furthermore once the new address has been added or edit made I can simply click the radio button of the address I want to change to and then click confirm and it changes it without any error message. Any help would be greatly appreciated.
Edited by jsalis, 15 June 2011 - 10:33 PM.
I run a completely customized osC2.2 RC1 shop with mostly custom modifications that replicate the features of many contributions available except in a way that the data is more easily synced with Quickbooks on a continuous basis.