From 83de4fd077eccce67ece66439b64ea7096346b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AE=E3=81=B6?= Date: Wed, 31 Jan 2018 14:22:29 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E5=9C=A8=E3=81=97=E3=81=AA=E3=81=84pr?= =?UTF-8?q?oduct=5Fclass=5Fid=E3=82=92=E6=8C=87=E5=AE=9A=E3=81=97=E3=81=9F?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=82=B7=E3=82=B9=E3=83=86=E3=83=A0=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=81=AB=E3=81=AA=E3=82=8B=E3=81=AE=E3=81=A7?= =?UTF-8?q?=E3=81=9D=E3=81=AE=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/class/pages/mypage/LC_Page_Mypage_History.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/class/pages/mypage/LC_Page_Mypage_History.php b/data/class/pages/mypage/LC_Page_Mypage_History.php index 234294c02d..20eb81cfc8 100644 --- a/data/class/pages/mypage/LC_Page_Mypage_History.php +++ b/data/class/pages/mypage/LC_Page_Mypage_History.php @@ -99,8 +99,11 @@ public function action() // 受注商品明細の取得 $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); foreach ($this->tpl_arrOrderDetail as $product_index => $arrOrderProductDetail) { - //必要なのは商品の販売金額のみなので、遅い場合は、別途SQL作成した方が良い - $arrTempProductDetail = $objProduct->getProductsClass($arrOrderProductDetail['product_class_id']); + // + if (SC_Helper_DB_Ex::sfDataExists('dtb_products_class', 'product_class_id = ?', array($arrOrderProductDetail['product_class_id']))) { + //必要なのは商品の販売金額のみなので、遅い場合は、別途SQL作成した方が良い + $arrTempProductDetail = $objProduct->getProductsClass($arrOrderProductDetail['product_class_id']); + } // 税計算 $this->tpl_arrOrderDetail[$product_index]['price_inctax'] = $this->tpl_arrOrderDetail[$product_index]['price'] + SC_Helper_TaxRule_Ex::calcTax(