Warning (2): Missing argument 2 for CartController::add() [APP/controllers/cart_controller.php, line 719]Code |
Context }
public function add($productId, $gender, $sizeId)
$productId = "247"
CartController::add() - APP/controllers/cart_controller.php, line 719
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): Missing argument 3 for CartController::add() [APP/controllers/cart_controller.php, line 719]Code |
Context }
public function add($productId, $gender, $sizeId)
$productId = "247"
CartController::add() - APP/controllers/cart_controller.php, line 719
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Notice (8): Undefined variable: sizeId [APP/controllers/cart_controller.php, line 753]Code |
Context if ((bool) $user)
$this->Cart->save(array('user_id' => $user['User']['id'], 'id' => $cartId));
$stock = $this->ProductStock->find('first', array('conditions' => array('ProductStock.product_id' => $this->Product->id, 'ProductStock.size_id' => $sizeId, 'ProductStock.vendor_id' => Vendor::SPRINGLEAP_COM), 'fields' => array('ProductStock.id', 'ProductStock.stock')));
$productId = "247"
$PosterCanvasPrice = array(
595,
255,
159,
79,
59,
595,
255,
159,
79,
59,
1339,
599,
449
)
$status = "Failed"
$uuid = "828d58cee1072346e885b649574df881"
$cartId = "603575"
$user = null
CartController::add() - APP/controllers/cart_controller.php, line 753
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Notice (8): Undefined variable: sizeId [APP/controllers/cart_controller.php, line 773]Code |
Context $status = 'Success';
}
} elseif ($sizeId >= 100) {
$productId = "247"
$PosterCanvasPrice = array(
595,
255,
159,
79,
59,
595,
255,
159,
79,
59,
1339,
599,
449
)
$status = "Failed"
$uuid = "828d58cee1072346e885b649574df881"
$cartId = "603575"
$user = null
$stock = false
CartController::add() - APP/controllers/cart_controller.php, line 773
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
["No Stock","There is currently no available stock for the requested tshirt\/size.<\/p>
Please check your cart and retry adding the failed items.<\/p>"]