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 = 'Garlic-Bread'
$id = '561b796a-d850-4ac9-93c3-49cfc0b95850'
$city = null
$selectedItem = array(
'Item' => array(
'id' => '561b796a-d850-4ac9-93c3-49cfc0b95850',
'name' => 'Garlic Bread',
'priority' => '0',
'sku_code' => '487',
'variant' => '3',
'variant_name' => 'NOS',
'weight_in_kg' => '0.000',
'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' => '5617d12e-2aa8-41db-9adb-3d4ec0b95850',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => 'Cheesy Garlic Bread 2.jpg',
'primary_photo_directory' => '561b796a-d850-4ac9-93c3-49cfc0b95850',
'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' => '2021-05-04 17:06:08'
),
'Parent' => array(
'id' => null,
'name' => null,
'priority' => null,
'sku_code' => null,
'variant' => null,
'variant_name' => null,
'weight_in_kg' => null,
'item_id' => null,
'stock_type' => null,
'featured' => null,
'item_features' => null,
'is_activated' => null,
'short_desc' => null,
'long_desc' => null,
'keyword' => null,
'alias' => null,
'item_size' => null,
'item_color' => null,
'item_category_id' => null,
'item_type_id' => null,
'tax_price' => null,
'shipping_charges' => null,
'item_added_cart' => null,
'item_viewed' => null,
'primary_photo' => null,
'primary_photo_directory' => null,
'permalink' => null,
'rating' => null,
'franchise_only' => null,
'vat_percent' => null,
'cst_percent' => null,
'cst_cform_percent' => null,
'created' => null,
'modified' => null
),
'ItemCategory' => array(
'id' => '5617d12e-2aa8-41db-9adb-3d4ec0b95850',
'name' => 'Garlic Breads',
'category_group_id' => null,
'priority' => '9',
'max_qty' => '-1',
'item_type_id' => '557ead48-1668-4eee-af4e-16bfbf642048',
'parent_name_alias' => 'garlic-breads-fast-food',
'desc' => null,
'long_description' => null,
'item_category_id' => '561b4faa-e600-487c-b318-5a54c0b95850',
'tags' => '',
'meta' => 'garlic bread, tasty garlic breads, best garlic breads, vadodara',
'permalink' => null,
'primary_photo' => 'OIP (5).jpg',
'primary_photo_dir' => '5617d12e-2aa8-41db-9adb-3d4ec0b95850',
'category_banner' => '',
'category_banner_dir' => '',
'addon_category' => '0',
'is_active' => '0',
'created' => '2015-10-09 20:07:34',
'modified' => '2021-11-01 14:45:28'
),
'ItemStock' => array(
'id' => '561b796a-5d7c-4405-84ab-4702c0b95850',
'ref_no' => 'IN000561b796a0a091',
'item_id' => '561b796a-d850-4ac9-93c3-49cfc0b95850',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '89.00',
'discount_price' => '89.00',
'discount_percentage' => '0.0',
'created' => '2015-10-12 14:42:10',
'modified' => '2015-10-12 14:42:10',
(int) 0 => array(
'id' => '561b796a-5d7c-4405-84ab-4702c0b95850',
'ref_no' => 'IN000561b796a0a091',
'item_id' => '561b796a-d850-4ac9-93c3-49cfc0b95850',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '89.00',
'discount_price' => '89.00',
'discount_percentage' => '0.0',
'created' => '2015-10-12 14:42:10',
'modified' => '2015-10-12 14:42:10'
)
),
'ItemVariants' => array(),
'ItemCity' => array(
(int) 0 => array(
'id' => '561b796a-101c-40a3-8681-4ed9c0b95850',
'city_id' => '560f0dec-c7dc-4413-9c6e-461f6aba72de',
'item_id' => '561b796a-d850-4ac9-93c3-49cfc0b95850',
'shipping_charges' => '-1',
'created' => '2015-10-12 14:42:10',
'modified' => '2015-10-12 14:42:10'
),
(int) 1 => array(
'id' => '56c1f3bc-95e0-4249-9f42-447e6aba72de',
'city_id' => '56265786-825c-4a02-ae2a-40a96aba72de',
'item_id' => '561b796a-d850-4ac9-93c3-49cfc0b95850',
'shipping_charges' => '-1',
'created' => '2016-02-15 21:20:20',
'modified' => '2016-02-15 21:20:20'
)
),
'ItemGalleryPhoto' => array()
)
$is_midnight = false
$today = '11:18:26'
$today_arr = array(
(int) 0 => '11',
(int) 1 => '18',
(int) 2 => '26'
)
$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