I need to create an order programmatically.
I tried this code:
$params = array(
'product' => $productId,
'qty' => 1,
'options[99]' =>time(),
);
$cart = Mage::getSingleton('checkout/cart');
$product = new Mage_Catalog_Model_Product();
$product->load($productId);
$product->setSpecialPrice(250);
$cart->addProduct($product, $params);
$cart->save();
But it is not adding custom option value.
Also I tried this code:
$params = array(
'product' => $productId,
'qty' => 1,
'options_99' =>time(),
);
But no luck, can someone suggest?