While creating order programmatically, attribute of Configurable product are not saved, I have a configurable product which entity id is 64 and having one attribute which id is 136 and the id of option value is 10, When I run this code I see in magento admin panel that the order was placed but attribute are not added and price was default as set for parent product.
$customer_id = 5;
$quote = Mage::getModel('sales/quote');
$customer = Mage::getModel('customer/customer')->load($customer_id);
$quote->assignCustomer($customer);
$quote->setStore(Mage::app()->getStore());
$product = Mage::getModel('catalog/product')->load(64);
$quoteItem = Mage::getModel('sales/quote_item')->setProduct($product);
$quoteItem->setQuote($quote);
$quoteItem->setQty(1);
$options = array(
"product"=>$product,
"super_attribute"=>array(
136=>10
)
);
$quoteItem->addOption(new Varien_Object($options)); //$quoteItem->setProductOptions($options); tried both
$quote->addItem($quoteItem);
Magento Admin Order Page
Parent Product is showing without configurable options and their price.