Wednesday, 18 September 2013

Magento Admin Create Order not showing Custom Options

Magento Admin Create Order not showing Custom Options

I have simple products with custom options in my store. They work
perfectly from the front end, but if I try to add an order from the admin
section, The custom options do not show up.
I only have this problem if the type of custom option is a dropdown, multi
select, radio buttons, or check boxes. If it is a text field, date or
anything else, it works fine.
I am assumming i need to make some changes to something in the
/www/app/design/adminhtml/default/default/template/sales/order/create
area, but no clue what i should try.

Looking a bit further, I found this
/www/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/grid.php
file controls the configure window at about line 320 which calls the
configure window up. Not sure if this helps any
/**
* Return html button which calls configure window
*
* @param $item
* @return string
*/
public function getConfigureButtonHtml($item)
{
$product = $item->getProduct();
$options = array('label' => Mage::helper('sales')->__('Configure'));
if ($product->canConfigure()) {
$options['onclick'] =
sprintf('order.showQuoteItemConfiguration(%s)', $item->getId());
} else {
$options['class'] = ' disabled';
$options['title'] = Mage::helper('sales')->__('This product does
not have any configurable options');
}
return $this->getLayout()->createBlock('adminhtml/widget_button')
->setData($options)
->toHtml();
}

No comments:

Post a Comment