Category: PHP

Magento Adminhtml – Setting a Custom massAction Index to Your Grid

| March 31, 2016 | 0 Comments

If you ever run into a situation where you need to set a massAction column to use a value other than the grid’s index value, all it takes is two lines In your _prepareMassAction() function. // setting the mass action value to our specified column value $this->setMassactionIdFieldOnlyIndexValue(true); $this->setMassactionIdField(’product_id’); // column index The complete function in […]

Continue Reading

Magento change order invoice status at your whim

| October 30, 2012 | 0 Comments

This was a huge problem for our customer service team and ultimately it’s a simple fix. Although you need to be careful depending on how your card processing is setup, etc. In Magento 1.6.2.0+ On line 34 change: <?php foreach ($this->getStatuses() as $_code=>$_label): ?> To: <?php foreach (Mage::getSingleton(’sales/order_config’)->getStatuses() as $_code=>$_label): ?> Shamelessly reposted from here […]

Continue Reading

Magento Paypal Payflow Pro not being able to refund line items

| October 19, 2012 | 1 Comment

If you are using Magento 1.7 and Paypal’s Payflow Pro you might have noticed that it does not let you refund line items on orders like you can do with other processors. Each processor class in Magento has a list of variables that define what it can and can’t do. For some reason Payflow Pro […]

Continue Reading