How to get Product custom options name?
$data = $this->getRequest()->getParams();
echo "<pre>"; print_r($data); die;
Array
(
[options] => Array
(
[536] => 6535
[447] => 2985
)
[qty] => 1
[product] => 543
)
In options array, 536 is option label name & 6535 is value of selected option. same for [447] is option label name => 2985 is value of selected option.
But i want option array in below format instead of option_id & value of option id.
[options] => Array
(
[color] => red
[size] => large
)
Please help. thanx in advance
Updated:
i have create my own custom controller.
Custom_Inquiry_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
$this->loadLayout(array('default'));
$data = $this->getRequest()->getParams();
echo "<pre>"; print_r($data); die;
$this->renderLayout();
}
}