Richiedi la registrazione al portale
Richiedi l'accesso al portale per poter accedere ai tuoi impianti ed acquistare i pezzi di ricambio con prezzi a te riservati.
I campi contrassegnati con * sono obbligatori.
').html(data.redirect_url).text();
return;
}
var successText = data.success_text;
$(blockId + '_sending_data').hide();
$(blockId + '_submit_button').enable();
$(blockId).reset();
if (typeof DROPZONE !== "undefined") {
if (typeof DROPZONE._0FtRic !== "undefined") {
for (var i = 0; i < DROPZONE._0FtRic.length; i++) {
DROPZONE._0FtRic[i].reset();
}
}
}
swal.fire({
title: 'Success!',
html: successText,
type: 'success'
});
} else {
$(blockId + '_submit_button').enable();
if ($(blockId + '_sending_data'))
$(blockId + '_sending_data').hide();
if ($(blockId + '_submit_button'))
$(blockId + '_submit_button').enable();
var errorTxt = '';
if (data.errors && typeof (data.errors) == "string") {
errorTxt = data.errors.unescapeHTML();
} else {
errorTxt = 'Unknown error(s) occured';
}
swal.fire({
title: 'Errore',
html: errorTxt,
type: 'error'
});
if (data.script) {
eval(data.script);
}
}
},
error: function (xhr, status, errorThrown) {
console.log('Error happens. Try again.');
console.log(errorThrown);
}
});
});
});
});