function getEmailLink($type = "Order_StatusEmail")
 {
     if (!isset($_REQUEST["print"])) {
         if ($this->IsSubmitted()) {
             return Director::AbsoluteURL(OrderConfirmationPage::get_email_link($this->ID, $this->MyStep()->getEmailClassName(), $actuallySendEmail = true));
         }
     }
 }
 function getEmailLink()
 {
     if (!isset($_REQUEST["print"])) {
         if ($this->IsSubmitted()) {
             return Director::AbsoluteURL(OrderConfirmationPage::get_email_link($this->ID));
         }
     }
 }
 /**
  * returns a link that can be used to test
  * the email being sent during this step
  * this method returns NULL if no email
  * is being sent OR if there is no suitable Order
  * to test with...
  * @return String
  */
 protected function testEmailLink()
 {
     if ($this->getEmailClassName()) {
         $orders = Order::get()->where("\"OrderStep\".\"Sort\" >= " . $this->Sort)->sort("IF(\"OrderStep\".\"Sort\" > " . $this->Sort . ", 0, 1) ASC, \"OrderStep\".\"Sort\" ASC, RAND() ASC")->innerJoin("OrderStep", "\"OrderStep\".\"ID\" = \"Order\".\"StatusID\"");
         if ($orders->count()) {
             if ($order = $orders->First()) {
                 return OrderConfirmationPage::get_email_link($order->ID, $this->getEmailClassName(), $actuallySendEmail = false, $alternativeOrderStepID = $this->ID);
             }
         }
     }
 }