shoppingmallv2 init...
This commit is contained in:
parent
620e79f17f
commit
9abeb19cbc
@ -52,7 +52,7 @@ class OrderController extends FrontController
|
|||||||
}
|
}
|
||||||
protected function insert_process()
|
protected function insert_process()
|
||||||
{
|
{
|
||||||
$this->_productModel ?: new ProductModel();
|
$this->_productModel = $this->_productModel ?: new ProductModel();
|
||||||
//상품정보 가져오기
|
//상품정보 가져오기
|
||||||
$product = $this->_productModel->getEntity([$this->_model->getPrimaryKey() => $this->_viewDatas['fieldDatas']['product_uid']]);
|
$product = $this->_productModel->getEntity([$this->_model->getPrimaryKey() => $this->_viewDatas['fieldDatas']['product_uid']]);
|
||||||
//구매 금액 비교
|
//구매 금액 비교
|
||||||
@ -72,8 +72,10 @@ class OrderController extends FrontController
|
|||||||
{
|
{
|
||||||
$msg = "";
|
$msg = "";
|
||||||
try {
|
try {
|
||||||
|
$this->_viewDatas = $this->init(__FUNCTION__);
|
||||||
//Transaction 시작
|
//Transaction 시작
|
||||||
$this->_model->transStart();
|
$this->_model->transStart();
|
||||||
|
$this->insert_validate();
|
||||||
$this->insert_process();
|
$this->insert_process();
|
||||||
//Transaction Commit
|
//Transaction Commit
|
||||||
$this->_model->transComplete();
|
$this->_model->transComplete();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user