function getAllProductsTotal($arrInfo) { // 税込み合計 $total = 0; $max = $this->getMax(); for ($i = 0; $i <= $max; $i++) { if (!isset($_SESSION[$this->key][$i]['price'])) { $_SESSION[$this->key][$i]['price'] = ""; } $price = $_SESSION[$this->key][$i]['price']; if (!isset($_SESSION[$this->key][$i]['quantity'])) { $_SESSION[$this->key][$i]['quantity'] = ""; } $quantity = $_SESSION[$this->key][$i]['quantity']; $pre_tax = SC_Utils::sfPreTax($price, $arrInfo['tax'], $arrInfo['tax_rule']); $total += $pre_tax * $quantity; } return $total; }