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 = 'Margarita Pizza 6"'
$id = '561b7969-a0f4-40c6-9bcf-4dd6c0b95850'
$city = null
$selectedItem = array(
'Item' => array(
'id' => '561b7969-a0f4-40c6-9bcf-4dd6c0b95850',
'name' => 'Margarita Pizza 6"',
'priority' => '0',
'sku_code' => '471',
'variant' => '1',
'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' => '560fd49a-1fc8-4bd6-83df-400e6aba72de',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => '346.jpg',
'primary_photo_directory' => '561b7969-a0f4-40c6-9bcf-4dd6c0b95850',
'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-04-12 17:21:33'
),
'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' => '560fd49a-1fc8-4bd6-83df-400e6aba72de',
'name' => 'Pizzas',
'category_group_id' => null,
'priority' => '4',
'max_qty' => '-1',
'item_type_id' => '557ead48-1668-4eee-af4e-16bfbf642048',
'parent_name_alias' => 'pizzas-fast-food',
'desc' => null,
'long_description' => null,
'item_category_id' => '560fd3fd-912c-4d4f-876e-4e486aba72de',
'tags' => '',
'meta' => 'pizza, cakes, best pizza vadodara, pizza on the go, store near vadodara',
'permalink' => null,
'primary_photo' => 'OIP (6).jpg',
'primary_photo_dir' => '560fd49a-1fc8-4bd6-83df-400e6aba72de',
'category_banner' => 'no-image-396x500.JPG',
'category_banner_dir' => '560fd49a-1fc8-4bd6-83df-400e6aba72de',
'addon_category' => '0',
'is_active' => '0',
'created' => '2015-10-03 18:44:02',
'modified' => '2021-11-01 14:56:59'
),
'ItemStock' => array(
'id' => '561b7969-f38c-4d0e-8af2-4a6dc0b95850',
'ref_no' => 'IN000561b7969a529b',
'item_id' => '561b7969-a0f4-40c6-9bcf-4dd6c0b95850',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '99.00',
'discount_price' => '99.00',
'discount_percentage' => '0.0',
'created' => '2015-10-12 14:42:09',
'modified' => '2015-10-12 14:42:09',
(int) 0 => array(
'id' => '561b7969-f38c-4d0e-8af2-4a6dc0b95850',
'ref_no' => 'IN000561b7969a529b',
'item_id' => '561b7969-a0f4-40c6-9bcf-4dd6c0b95850',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '99.00',
'discount_price' => '99.00',
'discount_percentage' => '0.0',
'created' => '2015-10-12 14:42:09',
'modified' => '2015-10-12 14:42:09'
)
),
'ItemVariants' => array(),
'ItemCity' => array(
(int) 0 => array(
'id' => '561b7969-8340-4c1e-9049-49cfc0b95850',
'city_id' => '560f0dec-c7dc-4413-9c6e-461f6aba72de',
'item_id' => '561b7969-a0f4-40c6-9bcf-4dd6c0b95850',
'shipping_charges' => '-1',
'created' => '2015-10-12 14:42:09',
'modified' => '2015-10-12 14:42:09'
),
(int) 1 => array(
'id' => '56c1f3bc-de6c-4754-89df-45496aba72de',
'city_id' => '56265786-825c-4a02-ae2a-40a96aba72de',
'item_id' => '561b7969-a0f4-40c6-9bcf-4dd6c0b95850',
'shipping_charges' => '-1',
'created' => '2016-02-15 21:20:20',
'modified' => '2016-02-15 21:20:20'
)
),
'ItemGalleryPhoto' => array()
)
$is_midnight = false
$today = '07:57:04'
$today_arr = array(
(int) 0 => '07',
(int) 1 => '57',
(int) 2 => '04'
)
$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