Code |
Context }
$product['Product']['props'] .= $product['Property'][$i]['value'];
$id = "444"
$product = array(
"Product" => array(
"id" => "444",
"title" => "Куртка мужская",
"url" => "kurtka-muzhskaya.html",
"articul" => "A-L1607",
"category_id" => "21",
"producer_id" => "0",
"instock" => "1",
"novelty" => "0",
"status" => "1",
"order" => "7",
"created" => "2017-03-25 23:14:46",
"modified" => "2020-12-01 21:59:08",
"image" => "2",
"price" => "5990.00",
"price_RUR" => "5990.00",
"price_USD" => "89.40",
"price_EUR" => "77.79",
"price_fake" => "0.00",
"rate" => "RUR",
"about_yml" => "",
"about" => "",
"text" => "",
"recommend" => "",
"seo_title" => "",
"seo_keywords" => "",
"seo_description" => "",
"props" => ""
),
"Category" => array(
"id" => "21",
"title" => "Мужские",
"header" => "",
"url" => "muzhskie.html",
"about" => "",
"text" => "",
"image" => "1",
"order" => "1",
"product_count" => "41",
"parent_id" => "3",
"lft" => "10",
"rght" => "11",
"seo_title" => "",
"seo_keywords" => "",
"seo_description" => ""
),
"Producer" => array(
"id" => null,
"title" => null,
"url" => null,
"image" => null,
"about" => null,
"text" => null,
"seo_title" => null,
"seo_keywords" => null,
"seo_description" => null
),
"ProductsProperty" => array(
array(),
array(),
array(),
array()
),
"Property" => array(
array(),
array(),
array(),
array()
)
)
$i = 0
$prop = array(
"id" => "38",
"category_id" => "3",
"title" => "Размеры",
"type" => "multiple",
"values" => "{"1":"S","2":"M","3":"L","4":"XL","5":"2XL","6":"3XL","7":"4XL","8":"5XL","9":"6XL","10":"8","11":"10","12":"12","13":"14","14":"16"}",
"images" => "",
"recursive" => "1",
"catalog" => "1",
"filter" => "0",
"public" => "1",
"order" => "1",
"ProductsProperty" => array(
"id" => "1720",
"product_id" => "444",
"property_id" => "38",
"value" => "2|3|4|5|6",
"model" => "",
"price" => "0"
)
)
ProductsController::view_ajax() - APP/controllers/products_controller.php, line 151
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
require - APP/webroot/index.php, line 83
[main] - CORE/index.php, line 55