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 = 'Casatta Cake'
$id = '561f6621-c338-43f6-8405-42d76aba72de'
$city = null
$selectedItem = array(
'Item' => array(
'id' => '561f6621-c338-43f6-8405-42d76aba72de',
'name' => 'Casatta Cake',
'priority' => '0',
'sku_code' => '113',
'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' => '113.jpg',
'primary_photo_directory' => '561f6621-c338-43f6-8405-42d76aba72de',
'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:29:57'
),
'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-34d4-49e0-8928-4bbd6aba72de',
'ref_no' => 'IN000561f66212e729',
'item_id' => '561f6621-c338-43f6-8405-42d76aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '460.00',
'discount_price' => '460.00',
'discount_percentage' => '0.0',
'created' => '2015-10-15 14:08:57',
'modified' => '2015-10-15 14:08:57',
(int) 0 => array(
'id' => '561f6621-34d4-49e0-8928-4bbd6aba72de',
'ref_no' => 'IN000561f66212e729',
'item_id' => '561f6621-c338-43f6-8405-42d76aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '460.00',
'discount_price' => '460.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' => '561f6621-18f4-48cb-8555-41656aba72de',
'name' => 'Casatta Cake',
'priority' => '0',
'sku_code' => '113',
'variant' => '1',
'variant_name' => 'KGS',
'weight_in_kg' => '1.000',
'item_id' => '561f6621-c338-43f6-8405-42d76aba72de',
'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' => '55f94931-225c-42c0-8eab-1e33bf642048',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => '113.jpg',
'primary_photo_directory' => '561f6621-18f4-48cb-8555-41656aba72de',
'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' => '2019-08-08 13:19:25'
)
),
'ItemCity' => array(
(int) 0 => array(
'id' => '561f6621-5b9c-416f-aaa2-46b06aba72de',
'city_id' => '560f0dec-c7dc-4413-9c6e-461f6aba72de',
'item_id' => '561f6621-c338-43f6-8405-42d76aba72de',
'shipping_charges' => '-1',
'created' => '2015-10-15 14:08:57',
'modified' => '2015-10-15 14:08:57'
),
(int) 1 => array(
'id' => '56c1f2ff-9f44-40d1-9860-49f66aba72de',
'city_id' => '56265786-825c-4a02-ae2a-40a96aba72de',
'item_id' => '561f6621-c338-43f6-8405-42d76aba72de',
'shipping_charges' => '-1',
'created' => '2016-02-15 21:17:11',
'modified' => '2016-02-15 21:17:11'
)
),
'ItemGalleryPhoto' => array()
)
$is_midnight = false
$today = '12:10:52'
$today_arr = array(
(int) 0 => '12',
(int) 1 => '10',
(int) 2 => '52'
)
$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