Code Context
// check if parent category in city or not.
$cate_in_city = $this->ItemCategoryCity->find('first',array('conditions'=>array('ItemCategoryCity.item_category_id'=>$selectedItem['ItemCategory']['item_category_id'],'ItemCategoryCity.city_id'=>$selectedCity_details['City']['id'])));
$item_name = 'Choco-Delight'
$id = '561f6622-cee4-4e2b-ad92-4dfc6aba72de'
$city = null
$selectedItem = array(
'Item' => array(
'id' => '561f6622-cee4-4e2b-ad92-4dfc6aba72de',
'name' => 'Choco Delight Crunch',
'priority' => '0',
'sku_code' => '353',
'variant' => '1',
'variant_name' => 'KGS',
'weight_in_kg' => '1.000',
'item_id' => '561f6621-9f9c-47ec-90d3-4aeb6aba72de',
'stock_type' => '1',
'featured' => '0',
'item_features' => null,
'is_activated' => '1',
'short_desc' => null,
'long_desc' => '',
'keyword' => '',
'alias' => null,
'item_size' => null,
'item_color' => null,
'item_category_id' => '561b3e87-2344-4d37-a872-47f3c0b95850',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => '383.jpg',
'primary_photo_directory' => '561f6622-cee4-4e2b-ad92-4dfc6aba72de',
'permalink' => null,
'rating' => '0.0',
'franchise_only' => '0',
'vat_percent' => '0.00',
'cst_percent' => '0.00',
'cst_cform_percent' => '0.00',
'created' => '0000-00-00 00:00:00',
'modified' => '2018-12-11 10:40:20'
),
'Parent' => array(
'id' => '561f6621-9f9c-47ec-90d3-4aeb6aba72de',
'name' => 'Choco Delight Crunch',
'priority' => '0',
'sku_code' => '353',
'variant' => '500',
'variant_name' => 'GMS',
'weight_in_kg' => '0.500',
'item_id' => null,
'stock_type' => '1',
'featured' => '0',
'item_features' => null,
'is_activated' => '1',
'short_desc' => null,
'long_desc' => '',
'keyword' => '',
'alias' => null,
'item_size' => null,
'item_color' => null,
'item_category_id' => '561b3e87-2344-4d37-a872-47f3c0b95850',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => '383.jpg',
'primary_photo_directory' => '561f6621-9f9c-47ec-90d3-4aeb6aba72de',
'permalink' => null,
'rating' => '0.0',
'franchise_only' => '0',
'vat_percent' => '0.00',
'cst_percent' => '0.00',
'cst_cform_percent' => '0.00',
'created' => '0000-00-00 00:00:00',
'modified' => '2018-12-11 10:43:54'
),
'ItemCategory' => array(
'id' => '561b3e87-2344-4d37-a872-47f3c0b95850',
'name' => 'Chocolate',
'category_group_id' => null,
'priority' => '3',
'max_qty' => '-1',
'item_type_id' => 'f132fe4d-68f7-11e5-859e-f23c91737a7d',
'parent_name_alias' => 'chocolate-cakes',
'desc' => null,
'long_description' => null,
'item_category_id' => null,
'tags' => '',
'meta' => 'eggless cakes, buy cake online, vadodara, baroda, best cakes, bakery, cookies, muffins',
'permalink' => null,
'primary_photo' => 'chocolate-cakes.png',
'primary_photo_dir' => '561b3e87-2344-4d37-a872-47f3c0b95850',
'category_banner' => '',
'category_banner_dir' => '',
'addon_category' => '0',
'is_active' => '0',
'created' => '2015-10-12 10:30:55',
'modified' => '2020-08-04 03:02:41'
),
'ItemStock' => array(
'id' => '561f6622-e000-40ff-95e0-4b586aba72de',
'ref_no' => 'IN000561f66222761a',
'item_id' => '561f6622-cee4-4e2b-ad92-4dfc6aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '770.00',
'discount_price' => '770.00',
'discount_percentage' => '0.0',
'created' => '2015-10-15 14:08:58',
'modified' => '2015-10-15 14:08:58',
(int) 0 => array(
'id' => '561f6622-e000-40ff-95e0-4b586aba72de',
'ref_no' => 'IN000561f66222761a',
'item_id' => '561f6622-cee4-4e2b-ad92-4dfc6aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '770.00',
'discount_price' => '770.00',
'discount_percentage' => '0.0',
'created' => '2015-10-15 14:08:58',
'modified' => '2015-10-15 14:08:58'
)
),
'ItemVariants' => array(),
'ItemCity' => array(
(int) 0 => array(
'id' => '561f6622-0efc-489c-bde5-4d216aba72de',
'city_id' => '560f0dec-c7dc-4413-9c6e-461f6aba72de',
'item_id' => '561f6622-cee4-4e2b-ad92-4dfc6aba72de',
'shipping_charges' => '-1',
'created' => '2015-10-15 14:08:58',
'modified' => '2015-10-15 14:08:58'
),
(int) 1 => array(
'id' => '56c1f2ff-afb8-46ee-971e-40646aba72de',
'city_id' => '56265786-825c-4a02-ae2a-40a96aba72de',
'item_id' => '561f6622-cee4-4e2b-ad92-4dfc6aba72de',
'shipping_charges' => '-1',
'created' => '2016-02-15 21:17:11',
'modified' => '2016-02-15 21:17:11'
)
),
'ItemGalleryPhoto' => array()
)
$is_midnight = false
$today = '19:59:28'
$today_arr = array(
(int) 0 => '19',
(int) 1 => '59',
(int) 2 => '28'
)
$selectedCity = null
$selectedCity_details = array()
ItemsController::index() - APP/Controller/ItemsController.php, line 75
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118