Solicitar registro en el portal
Solicite acceso al portal para poder acceder a sus sistemas y comprar repuestos con precios reservados para usted.
Los campos marcados con * son obligatorios.
').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._wTqzpn !== "undefined") {
for (var i = 0; i < DROPZONE._wTqzpn.length; i++) {
DROPZONE._wTqzpn[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: 'Error',
html: errorTxt,
type: 'error'
});
if (data.script) {
eval(data.script);
}
}
},
error: function (xhr, status, errorThrown) {
console.log('Error happens. Try again.');
console.log(errorThrown);
}
});
});
});
});