How to resolve the error “Exception when submitting the order” while placing the order

This issue will cause when the address is not properly set in the suitscript account model for the mandatry values. account model for the mandatry values.

make sure seting the proper addres in the account model i got issue in the account model for not givening the proper values to the country field.
nlapiLogExecution('ERROR', 'inside 111 if', JSON.stringify(user_data));
                    user_data.emailsubscribe =
                        user_data.emailsubscribe && user_data.emailsubscribe !== 'F' ? 'T' : 'F';
                    var result = ModelsInit.session.registerCustomer({
                        firstname: user_data.firstname,
                        lastname: user_data.lastname,
                        companyname: user_data.firstname + user_data.lastname,
                        email: user_data.email,
                        phone: user_data.phone,
                        billaddr1: user_data.billaddr1,
                        billstate: user_data.state,
                        billcity: user_data.billcity,
                        billzip: user_data.billzip,
                        password: user_data.password,
                        password2: user_data.password2,
                        emailsubscribe:
                            user_data.emailsubscribe && user_data.emailsubscribe !== 'F' ? 'T' : 'F'

Leave a comment

Your email address will not be published. Required fields are marked *