$this->debug('checkConditions '.$name.' indicates NoShipping for this method, specified by rule "'.$match["rule_name"].'" ('.$match['rule']->rulestring.').');
returntrue;
}else{
returnfalse;
}
}
/**
* @param $cart
* @param int $method
* @return bool
*/
publicfunctioncheckConditions($cart,$method){
$id=$this->getMethodId($method);
$name=$this->getMethodName($method);
if(!isset($this->rules[$id]))
$this->parseMethodRules($method);
// TODO: This needs to be redone sooner or later!
$match=$this->evaluateMethodRules($cart,$method);
if($match&&!is_null($match['rule'])){
$this->setMethodCosts($method,$match,null);
// If NoShipping is set, this method should NOT offer any shipping at all, so return FALSE, otherwise TRUE
// If the rule has a name, print it as warning (otherwise don't print anything)
if($this->handleNoShipping($match,$method)){
returnFALSE;
}
returnTRUE;
}
$this->debug('checkConditions '.$name.' does not fulfill all conditions, no rule matches');
// $this->framework->debug('Rule::matches: Country check failed: countryid='.print_r($vals['countryid'],1).', countries are: '.print_r($this->countries,1).'...');