Index: /branches/comu-ver2/html/mypage/order.php =================================================================== --- /branches/comu-ver2/html/mypage/order.php (revision 18184) +++ /branches/comu-ver2/html/mypage/order.php (revision 18184) @@ -0,0 +1,35 @@ +init(); +$objPage->process(); +?> Index: /branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_Order.php =================================================================== --- /branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_Order.php (revision 17969) +++ /branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_Order.php (revision 18184) @@ -52,4 +52,24 @@ */ function process() { + $objCustomer = new SC_Customer(); + $objCartSess = new SC_CartSession(); + + //受注詳細データの取得 + $arrDisp = $this->lfGetOrderDetail($_POST['order_id']); + + //ログインしていない、またはDBに情報が無い場合 + if (!$objCustomer->isLoginSuccess(true) or count($arrDisp) == 0){ + SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR, "", false, "", true); + } + + for($num = 0; $num < count($arrDisp); $num++) { + $product_id = $arrDisp[$num]['product_id']; + $cate_id1 = $arrDisp[$num]['classcategory_id1']; + $cate_id2 = $arrDisp[$num]['classcategory_id2']; + $quantity = $arrDisp[$num]['quantity']; + + $objCartSess->addProduct(array($product_id, $cate_id1, $cate_id2), $quantity); + } + $this->sendRedirect($this->getLocation(URL_CART_TOP)); } Index: /branches/comu-ver2/data/Smarty/templates/default/mypage/history.tpl =================================================================== --- /branches/comu-ver2/data/Smarty/templates/default/mypage/history.tpl (revision 17992) +++ /branches/comu-ver2/data/Smarty/templates/default/mypage/history.tpl (revision 18184) @@ -39,4 +39,11 @@
+ + "> + + + *}-->