Just another WordPress.com weblog


For Mass deletion of Coupon and change the “from” and “to” date in mass
For that we have to copy the app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php into

app/code/local/Mage/Adminhtml/Block/Promo/Quote/grid.php and following functions

protected function _prepareMassaction()
$dateFormatIso = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);

$this->getMassactionBlock()->addItem(‘delete’, array(
‘label’ => Mage::helper(‘rule’)->__(‘Delete’),
‘url’ => $this->getUrl(‘*/*/massDelete’),
‘confirm’ => Mage::helper(‘rule’)->__(‘Are you sure?’)

array_unshift($da, array(‘label’=>”, ‘value’=>”));
$this->getMassactionBlock()->addItem(‘date’, array(
‘label’=> Mage::helper(‘salesrule’)->__(‘Change Date’),
‘url’ => $this->getUrl(‘*/*/massDate’, array(‘_current’=>true)),
‘additional’ => array(
‘visibility’ => array(
‘name’ => ‘from_date’,
‘type’ => ‘date’,
‘class’ => ‘required-entry date’,
‘image’ => $this->getSkinUrl(‘images/grid-cal.gif’),
‘format’ => $dateFormatIso,
‘index’ => ‘from_date’,
‘label’ => Mage::helper(‘rule’)->__(‘From Date’)
‘name’ => ‘to_date’,
‘type’ => ‘date’,
‘class’ => ‘required-entry date’,
‘format’ => $dateFormatIso,
‘index’ => ‘to_date’,
‘image’ => $this->getSkinUrl(‘images/grid-cal.gif’),
‘label’ => Mage::helper(‘rule’)->__(‘To Date’),
//’values’ => $date


return $this;

Clear the Cache from admin Hope this will help



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: