示例#1
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!Mage::helper('udropship')->isModuleActive('Unirgy_DropshipMicrosite') || !Mage::helper('umicrosite')->getCurrentVendor()) {
         $this->getLayout()->getBlock('product_tabs')->addTab('udmulti_vendors', 'udmulti/adminhtml_product_vendors');
     }
 }
 public function __construct()
 {
     parent::__construct();
     $id = $this->getRequest()->getParam('currentProductId');
     $this->ebayListingProduct = Mage::helper('M2ePro/Component_Ebay')->getObject('Listing_Product', $id)->getChildObject();
     $this->setTemplate('M2ePro/ebay/listing/preview.phtml');
 }
示例#3
0
 protected function _prepareLayout()
 {
     $this->runUpdate();
     $this->setTemplate('googlebasefeedgenerator/system/process.phtml');
     parent::_prepareLayout();
     return $this;
 }
示例#4
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addCss(self::SYSTEM_CONFIG_EDIT_CSS_FILE);
     /**
      * For Magento 1.6 and 1.11 we need to add another css file.
      */
     $helper = Mage::helper('tig_myparcel');
     $isEnterprise = $helper->isEnterprise();
     /**
      * Get the minimum version requirement for the current Magento edition.
      */
     if ($isEnterprise) {
         $minimumVersion = '1.12.0.0';
     } else {
         $minimumVersion = '1.7.0.0';
     }
     /**
      * Check if the current version is below the minimum version requirement.
      */
     $isBelowMinimumVersion = version_compare(Mage::getVersion(), $minimumVersion, '<');
     if ($isBelowMinimumVersion) {
         $this->getLayout()->getBlock('head')->addCss(self::MAGENTO_16_CSS_FILE);
     }
     return parent::_prepareLayout();
 }
示例#5
0
 public function getOrder()
 {
     $order = parent::getOrder();
     if ($order) {
         return $order;
     }
     return Mage::registry('current_order');
 }
 /**
  * Do a few checks to see if the template should be rendered before actually rendering it.
  *
  * @return string
  *
  * @see Mage_Adminhtml_Block_Abstract::_toHtml()
  */
 protected function _toHtml()
 {
     $shipment = Mage::registry('current_shipment');
     $helper = Mage::helper('tig_myparcel');
     if (!$helper->isEnabled() || !$shipment || !$helper->shippingMethodIsMyParcel($shipment->getOrder()->getShippingMethod())) {
         return '';
     }
     return parent::_toHtml();
 }
示例#7
0
 /**
  * It was decided to use the overwritable _toHtml instead of a template
  * to be consistent with magento renderers and to increase portability
  * 
  * @return string
  */
 protected function _toHtml()
 {
     $html = parent::_toHtml();
     $html .= "<form id='{$this->getFormId()}' action='{$this->getFormAction()}' method='post' class='{$this->getFormClass()}' enctype='multipart/form-data'>";
     $minigrid = new BlueAcorn_MiniGrid_Block_System_Config_Form_Field_Minigrid();
     $html .= $minigrid->getElementHtml("ba-minigrid-form-grid", $this->getFieldName(), $this->getGridFields(), $this->getGridRowData());
     $html .= "\n            </form>\n            <script type='text/javascript'>\n                function submitMinigridForm() {\n                    \$('{$this->getFormId()}').submit();\n                }\n            </script>\n\n";
     return $html;
 }
示例#8
0
 protected function _prepareLayout()
 {
     $this->setChild('reply', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_reply'));
     $this->setChild('thread', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_thread'));
     $this->setChild('details', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_details'));
     $this->setChild('customer_summary', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerSummary'));
     $this->setChild('customer_orders', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerOrders'));
     $this->setChild('customer_tickets', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerTickets'));
     return parent::_prepareLayout();
 }
示例#9
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addJs('web2print/resourcebrowser.js');
     $this->getLayout()->getBlock('head')->addCss('css/resourcebrowser.css');
     $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/default.css');
     if (Mage::helper('web2print')->getMagentoVersionForCss()) {
         $this->getLayout()->getBlock('head')->addCss('lib/prototype/windows/themes/magento.css');
     } else {
         $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/magento.css');
     }
     $block = $this->getLayout()->createBlock('Chili_Web2print_Block_System_Config_Form_Resourcebrowserbase', 'resourcebrowser_base');
     $this->getLayout()->getBlock('content')->append($block);
     return parent::_prepareLayout();
 }
 /**
  * @see parent
  */
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('bronto/news/item.phtml');
 }
示例#11
0
 /**
  * Set template
  */
 public function __construct()
 {
     parent::_prepareLayout();
     $this->setTemplate('capayable/support.phtml');
 }
示例#12
0
 public function setParentBlock(Mage_Core_Block_Abstract $block)
 {
     $block->unsetChild('save_button');
     return parent::setParentBlock($block);
 }
示例#13
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('crm/customtab.phtml');
 }
示例#14
0
文件: Form.php 项目: relue/magento2
 /**
  * Instantiate a recurring payment profile to use it as a helper
  */
 protected function _construct()
 {
     $this->_profile = Mage::getSingleton('Mage_Sales_Model_Recurring_Profile');
     return parent::_construct();
 }
 protected function _construct()
 {
     parent::_construct();
     $this->_defaultValue = Mage::helper('customgrid')->__('<em>Updated</em>');
 }
示例#16
0
 /**
  * Internal constructor, that is called from real constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('turnkeye/all/fields.phtml');
 }
示例#17
0
 /**
  * Do a few checks to see if the template should be rendered before actually rendering it.
  *
  * @return string
  *
  * @see Mage_Adminhtml_Block_Abstract::_toHtml()
  */
 protected function _toHtml()
 {
     $shippingMethod = $this->_order->getShippingMethod();
     if (!$this->_helper->isEnabled() || !$this->_order || !$this->_helper->shippingMethodIsMyParcel($shippingMethod)) {
         return '';
     }
     return parent::_toHtml();
 }
示例#18
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('mzax/emarketing/widget/chart-tab.phtml');
 }
 /**
  * _toHtml
  *
  * @return string
  */
 public function _toHtml()
 {
     return parent::_toHtml();
 }
示例#20
0
 protected function _prepareLayout()
 {
     //placed here, instead of in layout.xml to make sure it is only loaded for Buckaroo's section
     $this->getLayout()->getBlock('head')->addCss('css/tig_buckaroo3extended/supportTab.css');
     return parent::_prepareLayout();
 }
示例#21
0
 protected function _construct()
 {
     $this->setTemplate('cloudinary/system/config/signup.phtml');
     parent::_construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('extensions/custom/load.phtml');
 }
示例#23
0
 /**
  * Instantiate a recurring payment profile to use it as a helper
  */
 protected function _construct()
 {
     $this->_profile = Mage::getSingleton('sales/recurring_profile');
     return parent::_construct();
 }
示例#24
0
 public function __construct()
 {
     parent::__construct();
 }
示例#25
0
 /**
  * Generating exceptions data
  * @return array
  */
 public function getExceptions()
 {
     if (!is_null(parent::getExceptions())) {
         return parent::getExceptions();
     }
     $exceptions = array();
     $this->getProfile()->run();
     foreach ($this->getProfile()->getExceptions() as $e) {
         switch ($e->getLevel()) {
             case Varien_Convert_Exception::FATAL:
                 $img = 'error_msg_icon.gif';
                 $liStyle = 'background-color:#FBB; ';
                 break;
             case Varien_Convert_Exception::ERROR:
                 $img = 'error_msg_icon.gif';
                 $liStyle = 'background-color:#FDD; ';
                 break;
             case Varien_Convert_Exception::WARNING:
                 $img = 'fam_bullet_error.gif';
                 $liStyle = 'background-color:#FFD; ';
                 break;
             case Varien_Convert_Exception::NOTICE:
                 $img = 'fam_bullet_success.gif';
                 $liStyle = 'background-color:#DDF; ';
                 break;
         }
         $exceptions[] = array("style" => $liStyle, "src" => Mage::getDesign()->getSkinUrl('images/' . $img), "message" => $e->getMessage(), "position" => $e->getPosition());
     }
     parent::setExceptions($exceptions);
     return $exceptions;
 }
示例#26
0
 public function __construct()
 {
     $this->_headerText = $this->__('Validate Javascript');
     parent::__construct();
 }
示例#27
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate(self::TEMPLATE_PATH);
 }
示例#28
0
文件: Info.php 项目: nemphys/magento2
 /**
  * Set data to block
  *
  * @return string
  */
 protected function _toHtml()
 {
     $agreement = $this->_getBillingAgreement();
     $this->setReferenceId($agreement->getReferenceId());
     $customer = Mage::getModel('Mage_Customer_Model_Customer')->load($agreement->getCustomerId());
     $this->setCustomerUrl($this->getUrl('*/customer/edit', array('id' => $customer->getId())));
     $this->setCustomerEmail($customer->getEmail());
     $this->setStatus($agreement->getStatusLabel());
     $this->setCreatedAt($this->helper('Mage_Core_Helper_Data')->formatDate($agreement->getCreatedAt(), 'short', true));
     $this->setUpdatedAt($agreement->getUpdatedAt() ? $this->helper('Mage_Core_Helper_Data')->formatDate($agreement->getUpdatedAt(), 'short', true) : $this->__('N/A'));
     return parent::_toHtml();
 }
示例#29
0
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('bronto/verify/permissionchecker/index.phtml');
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('noworriesturf_shippingg/configuration.phtml');
 }