/** * Get url for printing order * * @param Mage_Sales_Order $order * @return string */ public function getPrintUrl($order) { if (!Mage::getStoreConfig('pdfpro/config/enabled') || !Mage::getStoreConfig('pdfpro/config/allow_customer_print') || !Mage::helper('pdfpro')->getDefaultApiKey()) { return parent::getPrintUrl($order); } if (Mage::getSingleton('customer/session')->isLoggedIn()) { return $this->getUrl('pdfpro/print/order', array('order_id' => $order->getId())); } return $this->getUrl('pdfpro/guest/printOrder', array('order_id' => $order->getId())); }
protected function _construct() { parent::_construct(); $this->setTemplate('pdfinvoiceplus/sales/order/info/buttons.phtml'); }
protected function _construct() { parent::_construct(); $this->setTemplate('payperrentals/sales/order/info/buttons.phtml'); }
protected function _construct() { parent::_construct(); $this->setTemplate('nrc_layout/sales/order/info/buttons.phtml'); }
public function _construct() { parent::_construct(); $this->setTemplate('payin7payments/sales/order/payin7_buttons.phtml'); }