There are multiple reasons why the Ajax timeout message could be displayed, so the fact that it's so generic makes tracking an issue a little more difficult.
I made a few modifications so that the timeout message now gives details of what the timeout relates to.
includes/languages/English/checkout_one.php
Find (line 57)
Replace withCode:define('JS_ERROR_AJAX_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s shipping cost. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
Code:define('JS_ERROR_AJAX_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s details (General Ajax Timeout error). Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_SHIPPING_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s shipping cost. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_PAYMENT_TIMEOUT', 'It\\\'s taking a little longer than normal to update your order\\\'s payment method. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT', 'It\\\'s taking a little longer than normal to set your order\\\'s address. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT', 'It\\\'s taking a little longer than normal to restore your order\\\'s address values. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT', 'It\\\'s taking a little longer than normal to validate your order\\\'s address details. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT', 'It\\\'s taking a little longer than normal to restore your customer details. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.'); define('JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT', 'It\\\'s taking a little longer than normal to validate your customer details. Please close this message and try again.\n\nIf you continue to receive this message, please contact us.');
includes/modules/pages/checkout_one/jquery.checkout_one.js
Find (line 471)
Replace withCode:alert( ajaxTimeoutErrorMessage );
Find (line 639)Code:alert( ajaxTimeoutShippingErrorMessage );
Replace withCode:alert( ajaxTimeoutErrorMessage );
Find (line 700)Code:alert( ajaxTimeoutPaymentErrorMessage );
Replace withCode:alert(ajaxTimeoutSetAddressErrorMessage);
Find (line 796)Code:alert( ajaxTimeoutPaymentErrorMessage );
Replace withCode:alert(ajaxTimeoutSetAddressErrorMessage);
Find (line 860)Code:alert(ajaxTimeoutRestoreAddressErrorMessage);
Replace withCode:alert(ajaxTimeoutSetAddressErrorMessage);
Find (line 959)Code:alert(ajaxTimeoutValidateAddressErrorMessage);
Replace withCode:alert(ajaxTimeoutSetAddressErrorMessage);
Find (line 959)Code:alert(ajaxTimeoutRestoreCustomerErrorMessage);
Replace withCode:alert(ajaxTimeoutSetAddressErrorMessage);
Code:alert(ajaxTimeoutValidateCustomerErrorMessage);
includes/modules/pages/checkout_one/jscript_main.php
Find (line 33)
Add afterCode:var ajaxTimeoutErrorMessage = '<?php echo JS_ERROR_AJAX_TIMEOUT; ?>';
@lat9, please consider adding these edits to the master file set, if only to save me having to make them every time I do an update to this great module!Code:var ajaxTimeoutShippingErrorMessage = '<?php echo JS_ERROR_AJAX_SHIPPING_TIMEOUT; ?>'; var ajaxTimeoutPaymentErrorMessage = '<?php echo JS_ERROR_AJAX_PAYMENT_TIMEOUT; ?>'; var ajaxTimeoutSetAddressErrorMessage = '<?php echo JS_ERROR_AJAX_SET_ADDRESS_TIMEOUT; ?>'; var ajaxTimeoutRestoreAddressErrorMessage = '<?php echo JS_ERROR_AJAX_RESTORE_ADDRESS_TIMEOUT; ?>'; var ajaxTimeoutValidateAddressErrorMessage = '<?php echo JS_ERROR_AJAX_VALIDATE_ADDRESS_TIMEOUT; ?>'; var ajaxTimeoutRestoreCustomerErrorMessage = '<?php echo JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT; ?>'; var ajaxTimeoutValidateCustomerErrorMessage = '<?php echo JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT; ?>';


Reply With Quote
