diff --git a/JS/index.js b/JS/index.js index cdeb3b6..f912344 100644 --- a/JS/index.js +++ b/JS/index.js @@ -299,41 +299,15 @@ const cargado = () => { } - let textoInputPedido = ""; - + function tramitarPedido(){ window.location.href = "./Contactos.html"; - alert("Solicita Informacion aqui") + } - /** function tramitarEncargo() { - let asuntoPedido = document.getElementById("formSubject"); - asuntoPedido.value = "Solicitud Compra Productos"; - console.log(asuntoPedido.value) - let inputPedido = document.getElementById("formComment"); - textoPedido(); - inputPedido.innerText = textoInputPedido; - - console.log(asuntoPedido.value) - } - - - function textoPedido(){ - let textoInputPedido = `Hola me gustaria saber la disponibilidad de: `; - let precioPedido = 0; - console.log(textoInputPedido) - for (i = 0; i < cestaCompra.length; i++) { - let numControl = cestaCompra[i]; - console.log(numControl) - let nombreProd = infoProductos[numControl].titulo; - let precioPedido = precioPedido + infoProductos[numControl].precio; - textoInputPedido = textoInputPedido + `${nombreProd}, ` - } - textoInputPedido = textoInputPedido + `el precio total seria de: ${precioPedido} €. Muchas gracias.` - return textoInputPedido; - }*/ + const genListaProd = () => {