Ver Mensaje Individual
  #37 (permalink)  
Antiguo 08/09/2010, 16:36
Avatar de cmalvy
cmalvy
 
Fecha de Ingreso: septiembre-2010
Mensajes: 25
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Carro de compras sin compra online

aun me estoy rompiendo la cabeza de como hacer todo eso.... jejejejee


Código PHP:
function muestra_carrito(){
    
        
$suma 0;
        
$cadena .= '<table border="1" id="table1" style="text-align:center;text-decoration: none;border-collapse: collapse; color:#000000; border-left-width:0px; border-right-width:0px; border-top-width:0px" bordercolorlight="#909090" bordercolordark="#909090" bordercolor="#909090" cellspacing="0" width="90%" height="0" cellpadding="3"> 
              <tr> 
                <td><b>Nombre producto</b></td> 
                <td><b>Precio ($)</b></td> 
                <td><b>Estado</b></td> 
              </tr>'
;

                        
                                
$cadena .= '<tr>';
                
"<td>" $this->array_nombre_prod[$i] . "</td>";
                 
"<td>" $this->array_precio_prod[$i] . "</td>";
                
'</tr>';

return 
$cadena;

            
                
$suma += $this->array_precio_prod[$i];
                
                
            }
        } 


quedaria algo asi???

Última edición por cmalvy; 08/09/2010 a las 16:51