Code |
Context$id = "29"
$fabric = array(
"ProductFabric" => array(
"id" => "9",
"product_id" => "50",
"product_size_id" => "1",
"name" => "Fat Cord",
"slug" => "fat-cord",
"description" => "Versatile, soft and Sumptuous.
And when it gets dirty you just throw it in the wash.",
"extra" => "",
"price" => "2399.00",
"created" => "2010-05-27",
"modified" => "2010-10-22",
"active" => "1",
"image_path" => ""
),
"ProductSize" => array(
"id" => "1",
"product_id" => "50",
"price" => "4499.00",
"name" => "Large",
"slug" => "large",
"description" => "FatSak Large - we should have called this one FatSak enormous! It's big, very big so make sure you have enough space before ordering. At about 180cm diameter means there's lots of room for more than one person.",
"extra" => "Volume: 1400 litres. Diameter: 180cm. Height: 70cm.",
"created" => "2010-07-27",
"modified" => "2012-05-07",
"active" => "1",
"image_path" => "1-1291384453.jpg",
"image_path_2" => "btn-large.jpg"
),
"Product" => array(
"id" => "50",
"product_status_id" => "0",
"product_type_id" => "1",
"category_id" => "90",
"area_id" => "0",
"name" => "FatSak",
"slug" => "fatsak",
"description" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam justo orci, venenatis eu tempor quis, hendrerit vitae neque. Nulla dapibus, ligula nec posuere dictum, orci mi aliquet mi, vel placerat diam arcu vel erat. Proin nulla sapien, ultrices vitae tincidunt in, pretium vitae nisi. Nullam nunc mi, dignissim sed fermentum nec, lacinia a diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. <br />",
"warrenty_available" => null,
"warrenty_price" => null,
"on_promotion" => "0",
"lowest_selling_price" => null,
"landing_price" => null,
"dealer_price" => null,
"price" => "999.00",
"qty" => "998",
"date_of_manufactor" => null,
"brand_id" => null,
"case_type_id" => null,
"box_id" => null,
"weight" => null,
"dimensions" => null,
"accessories" => null,
"product_condition_id" => null,
"location_id" => null,
"manufacturer" => null,
"featured" => null,
"image" => null,
"thumbnail" => null,
"meta_keywords" => "FatSak, Fat Sak, beanbag, bean bag, furniture, modern beanbag, giant beanbag furniture, giant bean bags, outdoor furniture, over-sized cushions, patio furniture, sun loungers, swimming pool loungers, beanbag chairs, lounger furniture, Bean Bags, Giant Bean Bags, Bean Bag, Bean Bag Chair, sofa bean bags, office furniture, funky furniture, modern furniture, VitaFoam, Cape Town, cape town, fun furniture, comfortable furniture, alternative to furniture, chill-out furniture, chill-out beanbags, fabric beanbags, kids beanbags, family beanbags, adult beanbags, living room furniture",
"meta_description" => "Robust and durable on the outside, at a glance you'd be forgiven for thinking that FatSak is an oversized beanbag. The reality? It's not. In fact, not a single bean goes into its cleverly crafted make up.",
"serial_number" => null,
"created" => "2010-06-08 16:22:17",
"modified" => "2011-03-17 11:33:18",
"image_path" => "",
"active" => "1"
),
"ProductColour" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
)
)
$product_colour_id = 29
$options4 = array(
"ProductColour" => array(
"id" => "29",
"name" => "Flame Red",
"slug" => "flame-red",
"description" => "This is a strong vibrant red!",
"extra" => "",
"created" => "2010-08-05",
"modified" => "2010-12-03",
"active" => "1",
"hex" => "df3e2a",
"image_path" => "29-flamejpg.jpg",
"image_path2" => "29-btn_flamejpg.jpg",
"parent_id" => "0",
"lft" => "1",
"rght" => "2"
)
)
$colour = array(
"ProductColour" => array(
"id" => "29",
"name" => "Flame Red",
"slug" => "flame-red",
"description" => "This is a strong vibrant red!",
"extra" => "",
"created" => "2010-08-05",
"modified" => "2010-12-03",
"active" => "1",
"hex" => "df3e2a",
"image_path" => "29-flamejpg.jpg",
"image_path2" => "29-btn_flamejpg.jpg",
"parent_id" => "0",
"lft" => "1",
"rght" => "2"
)
)
$size = array(
"ProductSize" => array(
"id" => "5",
"product_id" => "53",
"price" => "2000.00",
"name" => "FlipSize",
"slug" => "flipsize",
"description" => "The innovative FlipSak is the answer to your TV-viewing squabbles. No room on the couch? No problem. The FlipSak's easy-to-move size and supportive 'head rest' make it a comfy antidote to crowded couch dilemmas.
",
"extra" => "Diameter: 130cm long x 100cm wide. ",
"created" => "2010-08-12",
"modified" => "2011-03-16",
"active" => "1",
"image_path" => "5-1292412262.jpg",
"image_path_2" => "btn-flipsak.jpg"
),
"Product" => array(
"id" => "53",
"product_status_id" => "0",
"product_type_id" => "1",
"category_id" => "89",
"area_id" => "0",
"name" => "FlipSak",
"slug" => "flipsak",
"description" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere neque sed felis accumsan quis facilisis neque vehicula. Mauris condimentum lacinia ipsum, eu dapibus sapien sagittis sit amet. Nam et lorem vitae sapien sodales dignissim. In ullamcorper nulla a orci scelerisque placerat. In tincidunt tempus imperdiet.<br />",
"warrenty_available" => null,
"warrenty_price" => null,
"on_promotion" => "0",
"lowest_selling_price" => null,
"landing_price" => null,
"dealer_price" => null,
"price" => "200.00",
"qty" => "999",
"date_of_manufactor" => null,
"brand_id" => null,
"case_type_id" => null,
"box_id" => null,
"weight" => null,
"dimensions" => null,
"accessories" => null,
"product_condition_id" => null,
"location_id" => null,
"manufacturer" => null,
"featured" => null,
"image" => null,
"thumbnail" => null,
"meta_keywords" => "FlipSak, Flip Sak, flip beanbag, bean bag, furniture, modern beanbag, giant beanbag furniture, giant bean bags, outdoor furniture, over-sized cushions, patio furniture, sun loungers, swimming pool loungers, beanbag chairs, lounger furniture, Bean Bags, Giant Bean Bags, Bean Bag, Bean Bag Chair, sofa bean bags, office furniture, funky furniture, modern furniture, VitaFoam, Cape Town, cape town, fun furniture, comfortable furniture, alternative to furniture, chill-out furniture, chill-out beanbags, fabric beanbags, kids beanbags, family beanbags, adult beanbags, living room furniture",
"meta_description" => "The innovative FlipSak is the answer to your TV-viewing squabbles. No room on the couch? No problem. The FlipSak's easy-to-move size and supportive 'head rest' make it a comfy antidote to crowded couch dilemmas.",
"serial_number" => null,
"created" => "2010-07-27 06:17:50",
"modified" => "2011-03-17 11:35:29",
"image_path" => "",
"active" => "1"
)
)
$colourName = "Flame Red"
$colourDescription = "This is a strong vibrant red!"
$price = "2000.00"
$product = array(
"price" => "2000.00",
"theColour" => "29"
)
$productSizes = null
$this->set('productSizes',$productSizes);
$options = $this->Product->ProductFabric->find('all', array('conditions' =>
array(/*'ProductFabric.product_size_id' => $size['ProductSize']['id'],*/'ProductFabric.product_id'=>$product['Product']['id']),'fields'=>array('ProductFabric.id','ProductFabric.name','ProductFabric.price'),'order'=>'ProductFabric.name ASC','recursive'=>1));
ProductsController::update_image2() - APP/controllers/products_controller.php, line 400
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88