Skip to content

Commit

Permalink
Merge pull request #232 from seasoftjapan/#87
Browse files Browse the repository at this point in the history
#87 SC_CartSession 内の配列要素の扱いが怪しい
  • Loading branch information
ryo-endo committed Sep 18, 2018
2 parents b0ebe3c + 64d05f3 commit 5fedaa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/class/SC_CartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public function setCartSession4getCartList($productTypeId, $key)
$quantity = $this->cartSession[$productTypeId][$key]['quantity'];
$incTax = SC_Helper_TaxRule_Ex::sfCalcIncTax($price,
$this->cartSession[$productTypeId][$key]['productsClass']['product_id'],
$this->cartSession[$productTypeId][$key]['id'][0]);
$this->cartSession[$productTypeId][$key]['id']);

$total = $incTax * $quantity;

Expand Down Expand Up @@ -638,7 +638,7 @@ public function checkProducts($productTypeId)
$this->setProductValue($arrItem['id'], 'quantity', $limit, $productTypeId);
$total_inctax = $limit * SC_Helper_TaxRule_Ex::sfCalcIncTax($arrItem['price'],
$product['product_id'],
$arrItem['id'][0]);
$arrItem['id']);
$this->setProductValue($arrItem['id'], 'total_inctax', $total_inctax, $productTypeId);
$tpl_message .= '※「' . $product['name'] . '」は販売制限(または在庫が不足)しております。';
$tpl_message .= "一度に数量{$limit}を超える購入はできません。\n";
Expand Down

0 comments on commit 5fedaa7

Please sign in to comment.