Notice (8): Undefined index: Product [APP/Controller/ProductController.php, line 520]Code Context } else {
//viet nam
if (isset($_POST['name'])) $shopingcart[$id]['name'] = $_POST['name']; else $shopingcart[$id]['name'] = $product['Product']['name'];
$id = '344'
$product = array()
$shopingcart = array()
ProductController::addshopingcart() - APP/Controller/ProductController.php, line 520
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 97
Notice (8): Undefined index: Product [APP/Controller/ProductController.php, line 522]Code Context if (isset($_POST['name'])) $shopingcart[$id]['name'] = $_POST['name']; else $shopingcart[$id]['name'] = $product['Product']['name'];
$shopingcart[$id]['id'] = $product['Product']['id'];
$id = '344'
$product = array()
$shopingcart = array(
(int) 344 => array(
'name' => null
)
)
ProductController::addshopingcart() - APP/Controller/ProductController.php, line 522
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 97
Notice (8): Undefined index: Product [APP/Controller/ProductController.php, line 524]Code Context $shopingcart[$id]['id'] = $product['Product']['id'];
if (isset($_POST['images'])) $shopingcart[$id]['images'] = DOMAIN . 'img/w80/' . $_POST['images']; else $shopingcart[$id]['images'] = DOMAIN . 'img/w80/' . $product['Product']['images'];
$id = '344'
$product = array()
$shopingcart = array(
(int) 344 => array(
'name' => null,
'id' => null
)
)
ProductController::addshopingcart() - APP/Controller/ProductController.php, line 524
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 97
Notice (8): Undefined index: Product [APP/Controller/ProductController.php, line 528]Code Context if (isset($_POST['soluong'])) $shopingcart[$id]['sl'] = $_POST['soluong']; else $shopingcart[$id]['sl'] = 1;
if (isset($_POST['giasp'])) $shopingcart[$id]['price'] = $_POST['giasp']; else $shopingcart[$id]['price'] = $product['Product']['price'];
$id = '344'
$product = array()
$shopingcart = array(
(int) 344 => array(
'name' => null,
'id' => null,
'images' => 'https://tragopdidong.com.vn/img/w80/',
'sl' => (int) 1
)
)
ProductController::addshopingcart() - APP/Controller/ProductController.php, line 528
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 97
Notice (8): Undefined index: Product [APP/Controller/ProductController.php, line 530]Code Context if (isset($_POST['giasp'])) $shopingcart[$id]['price'] = $_POST['giasp']; else $shopingcart[$id]['price'] = $product['Product']['price'];
$shopingcart[$id]['content'] = $product['Product']['content'];
$id = '344'
$product = array()
$shopingcart = array(
(int) 344 => array(
'name' => null,
'id' => null,
'images' => 'https://tragopdidong.com.vn/img/w80/',
'sl' => (int) 1,
'price' => null
)
)
ProductController::addshopingcart() - APP/Controller/ProductController.php, line 530
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 97