Magento extension Backoffice grid with conditional action by Quadra
MageCloud partnered with Quadra to offer Backoffice grid with conditional action in your MageCloud panel for our simple 1-click installation option. To install this extension - create your account with MageCloud and launch a new Magento store. It takes only 3 minutes.
Quadra always provides support for customers who have installed Backoffice grid with conditional action Magento module. Feel free to leave a review for the company and the extension so we can offer you better products and services in the future.
You may want to check other Quadra Magento extensions available at MageCloud and even get extensions from hundreds of other Magento developers using our marketplace.
Enable conditional action (link) in backoffice Grid class
Compatible with Magento 1.x
Backoffice grid with conditional action
This extension allows backoffice developers to add, on Grid, actions (links) that display only according to a condition.
Example : on the orders list, you can add an "print" action that displays only on ligns with orders in "complete" status.
To do that, you have to add a lign "condition" in the array, when declaring the action. Example :
array('caption' => Mage::helper('sales')->__('Print'),
'url' => array('base'=>'*/*/print'),
'field' => 'order_id',
'condition' => array('data' => 'status', 'operator' => 'eq', 'value' => 'processing'),
)
The "operator" lign can have several values :
eq : equalneq : not equal
gt : greater than
lt : lesser than
gteq : greater than or equal
lteq : lesser than or equal
This extension also allows to display several actions (links) lign per lign instead of in a select tag.
The "type" attribute of the column must be "multipleaction" instead of "action".