public function render(Varien_Object $_order) { if (!$_order->isEnabled()) { return; } if ($msg = $_order->has_errors()) { echo $msg; return; } if ($_order->getData('reminder_sent')) { ?> We have emailed you a reminder for this order.<?php } if (Mage::helper('recorder')->dateHasPassedOrIsToday($_order->getData('start_date'))) { ?> Your order #<?php echo $_order->getId(); ?> has passed all checks and is ready to be placed tonight!<?php return; } if ($_order->canSendReminder()) { ?> Tonight we'll be sending you a reminder email about this recurring order.<?php } }
/** * * @param Varien_Object $recurring * @return type */ public function render(Varien_Object $recurring) { $helper = Mage::helper('recorder'); if (!$recurring->isEnabled()) { echo '<span class="bar-lightgray"><span>Disabled</span></span>'; return; } if ($msg = $recurring->has_errors()) { echo '<span class="grid-severity-critical"><span>Has Errors</span></span>'; return; } if ($recurring->canProcess()) { echo '<span class="grid-severity-notice"><span>Firing Next Run</span></span>'; return; } if ($recurring->getData('reminder_sent')) { echo '<span class="bar-lightblue"><span>Reminder Sent</span></span>'; } elseif ($recurring->canSendReminder()) { echo '<span class="bar-lightblue"><span>Reminder will be sent</span></span>'; } echo '<span class="grid-severity-notice"><span>Waiting to Process</span></span>'; }