a
This commit is contained in:
		
							parent
							
								
									7a9109a4cb
								
							
						
					
					
						commit
						5c6e39f778
					
				
							
								
								
									
										32
									
								
								JS/index.js
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								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 = () => {
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user