Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/09/2008, 10:44
Avatar de Marvin
Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 19 años, 2 meses
Puntos: 81
Respuesta: Problema con this y con condicionales

Lo que tienes ahi es lo mismo que hacer esto:
Código PHP:
if($this->weight >=and $this->weight <=40 ){
    
$this->total += zen_add_tax($products_price$products_tax) * $qty;
}else 
    if(
$this->weight >=41 and $this->weight <=120 ){
        
$this->total += zen_add_tax($products_price_w$products_tax) * $qty;
    } 
Por lo tanto podrias ponerlo asi:
Código PHP:
if($this->weight >=and $this->weight <=40 ){
    
$this->total += zen_add_tax($products_price$products_tax) * $qty;
}elseif(
$this->weight >=41 and $this->weight <=120 ){
    
$this->total += zen_add_tax($products_price_w$products_tax) * $qty;

Suerte!
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!