Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#87 SC_CartSession 内の配列要素の扱いが怪しい #232

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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