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 = 'Pineapple Cake'
$id = '561f6621-c040-4914-b8e8-433f6aba72de'
$city = null
$selectedItem = array(
'Item' => array(
'id' => '561f6621-c040-4914-b8e8-433f6aba72de',
'name' => 'Pineapple Cake',
'priority' => '0',
'sku_code' => '99',
'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' => '55f946fb-23f8-4b01-954f-219ebf642048',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => '99.jpg',
'primary_photo_directory' => '561f6621-c040-4914-b8e8-433f6aba72de',
'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-10-25 16:28:13'
),
'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' => '55f946fb-23f8-4b01-954f-219ebf642048',
'name' => 'Popular Cakes',
'category_group_id' => null,
'priority' => '2',
'max_qty' => '-1',
'item_type_id' => '24cf3d3a-762e-11e5-859e-f23c91737a7d',
'parent_name_alias' => 'popular-cakes',
'desc' => null,
'long_description' => null,
'item_category_id' => '55f8278b-9cc0-4f94-a66b-3460bf642048',
'tags' => '',
'meta' => 'eggless cakes, buy cake online, vadodara, baroda, best cakes, bakery, cookies, muffins',
'permalink' => null,
'primary_photo' => 'popular-cakes.png',
'primary_photo_dir' => '55f946fb-23f8-4b01-954f-219ebf642048',
'category_banner' => '',
'category_banner_dir' => '',
'addon_category' => '0',
'is_active' => '0',
'created' => '2015-09-16 16:09:55',
'modified' => '2021-10-27 17:22:11'
),
'ItemStock' => array(
'id' => '561f6621-6ae4-4b9e-98e9-40cb6aba72de',
'ref_no' => 'IN000561f662124209',
'item_id' => '561f6621-c040-4914-b8e8-433f6aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '360.00',
'discount_price' => '360.00',
'discount_percentage' => '0.0',
'created' => '2015-10-15 14:08:57',
'modified' => '2015-10-15 14:08:57',
(int) 0 => array(
'id' => '561f6621-6ae4-4b9e-98e9-40cb6aba72de',
'ref_no' => 'IN000561f662124209',
'item_id' => '561f6621-c040-4914-b8e8-433f6aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '360.00',
'discount_price' => '360.00',
'discount_percentage' => '0.0',
'created' => '2015-10-15 14:08:57',
'modified' => '2015-10-15 14:08:57'
)
),
'ItemVariants' => array(
(int) 0 => array(
'id' => '5624ca15-adfc-4222-91e6-4c256aba72de',
'name' => 'Pineapple Cake',
'priority' => '0',
'sku_code' => '99',
'variant' => '1',
'variant_name' => 'KGS',
'weight_in_kg' => '1.000',
'item_id' => '561f6621-c040-4914-b8e8-433f6aba72de',
'stock_type' => '1',
'featured' => '1',
'item_features' => null,
'is_activated' => '1',
'short_desc' => null,
'long_desc' => '',
'keyword' => '',
'alias' => null,
'item_size' => null,
'item_color' => null,
'item_category_id' => '55f946fb-23f8-4b01-954f-219ebf642048',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => '99.jpg',
'primary_photo_directory' => '5624ca15-adfc-4222-91e6-4c256aba72de',
'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-10-26 11:29:25'
)
),
'ItemCity' => array(
(int) 0 => array(
'id' => '561f6621-36cc-4461-8f28-44336aba72de',
'city_id' => '560f0dec-c7dc-4413-9c6e-461f6aba72de',
'item_id' => '561f6621-c040-4914-b8e8-433f6aba72de',
'shipping_charges' => '-1',
'created' => '2015-10-15 14:08:57',
'modified' => '2015-10-15 14:08:57'
),
(int) 1 => array(
'id' => '56c1f4ed-4cd8-455d-a8eb-45ef6aba72de',
'city_id' => '56265786-825c-4a02-ae2a-40a96aba72de',
'item_id' => '561f6621-c040-4914-b8e8-433f6aba72de',
'shipping_charges' => '-1',
'created' => '2016-02-15 21:25:25',
'modified' => '2016-02-15 21:25:25'
)
),
'ItemGalleryPhoto' => array()
)
$is_midnight = false
$today = '11:53:59'
$today_arr = array(
(int) 0 => '11',
(int) 1 => '53',
(int) 2 => '59'
)
$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