当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Payment_Block_Form::_construct方法代码示例

本文整理汇总了PHP中Mage_Payment_Block_Form::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Block_Form::_construct方法的具体用法?PHP Mage_Payment_Block_Form::_construct怎么用?PHP Mage_Payment_Block_Form::_construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Payment_Block_Form的用法示例。


在下文中一共展示了Mage_Payment_Block_Form::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _construct

 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->setTemplate('payu_account/form.phtml');
     $this->setMethodTitle('');
     $this->setMethodLabelAfterHtml("<img src='{$this->getThumbnailSrc()}' height='20' alt='{$this->__('PayU account')}'/> {$this->__('PayU account')}");
     return parent::_construct();
 }
开发者ID:eggman64,项目名称:plugin_magento,代码行数:10,代码来源:Form.php

示例2: _construct

 protected function _construct()
 {
     $session = Mage::getSingleton('checkout/session');
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $quote = Mage::getModel('checkout/session')->getQuote();
     $quoteData = $quote->getData();
     $amount = $quoteData['grand_total'];
     $config = Mage::getStoreConfig('payment/pagantis');
     $this->setData('iframe', $config['iframe']);
     $discount = $config['discount'];
     if ($discount == 'true') {
         $this->setData('discount', 1);
     } else {
         $this->setData('discount', 0);
     }
     switch ($config['environment']) {
         case Pagantis_Pagantis_Model_Webservice_Client::ENV_TESTING:
             $this->setData('public_key', $config['account_code_test']);
             break;
         case Pagantis_Pagantis_Model_Webservice_Client::ENV_PRODUCTION:
             $this->setData('public_key', $config['account_code_real']);
             break;
     }
     $end_of_month = $config['end_of_month'];
     $title = $config['title'];
     $this->setData('total', $amount);
     $mark->setTemplate('pagantis/form.phtml');
     $this->setTemplate('pagantis/pagantis.phtml')->setMethodLabelAfterHtml($mark->toHtml())->setMethodTitle($title);
     return parent::_construct();
 }
开发者ID:pagantis,项目名称:pagamastarde-magento,代码行数:31,代码来源:Form.php

示例3: _construct

 public function _construct()
 {
     parent::_construct();
     if ($this->_template_filename) {
         $this->setTemplate($this->_template_filename);
     }
 }
开发者ID:payin7-payments,项目名称:payin7-magento,代码行数:7,代码来源:Payin7.php

示例4: _construct

 protected function _construct()
 {
     parent::_construct();
     $gateway = Mage::getSingleton('billmateinvoice/gateway');
     $this->matched = $gateway->isMatched;
     $this->setTemplate('billmate/changeaddress.phtml');
 }
开发者ID:ext,项目名称:magento,代码行数:7,代码来源:Changeaddress.php

示例5: _construct

 protected function _construct()
 {
     parent::_construct();
     if (Mage::getStoreConfig('payment/adyen_abstract/title_renderer') == Adyen_Payment_Model_Source_Rendermode::MODE_TITLE_IMAGE) {
         $this->setMethodTitle('');
     }
 }
开发者ID:Maikel-Koek,项目名称:magento,代码行数:7,代码来源:Abstract.php

示例6: _construct

 protected function _construct()
 {
     if ($logoUrl = $this->getLogoUrl()) {
         $this->setMethodLabelAfterHtml('<div class="svea-payment-logos"><img class="svea-method-logo" src="' . $logoUrl . '"></div>');
     }
     return parent::_construct();
 }
开发者ID:LybeAB,项目名称:magento-module,代码行数:7,代码来源:Abstract.php

示例7: _construct

 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->setTemplate('payu_account/form.phtml');
     $this->setMethodTitle('');
     $this->setMethodLabelAfterHtml('<img src="' . Mage::getModel('payu_account/config')->getThumbnailSrc() . '" height="20" alt="PayU"/> ' . Mage::helper('payu_account')->__('PayU account'));
     return parent::_construct();
 }
开发者ID:par-orillonsoft,项目名称:plugin_magento,代码行数:10,代码来源:Form.php

示例8: _construct

 /**
  * Create the form block (Checkout Onepage) and assign the template to it.
  */
 protected function _construct()
 {
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('barzahlen/mark.phtml');
     $this->setTemplate('barzahlen/form.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
     return parent::_construct();
 }
开发者ID:KaiBerkemeyer,项目名称:Barzahlen-Magento-1,代码行数:11,代码来源:Form.php

示例9: _construct

 protected function _construct()
 {
     parent::_construct();
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('vpayment/form/logo.phtml');
     $this->setTemplate('vpayment/form/vpayment.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
 }
开发者ID:sonyy,项目名称:tesisecommerce,代码行数:8,代码来源:Vpayment.php

示例10: _construct

 protected function _construct()
 {
     $logo = Mage::getConfig()->getBlockClassName('core/template');
     $logo = new $logo();
     $logo->setTemplate('flexshopper/payment/logo.phtml')->setFlexHref('http://www.flexshopper.com/')->setFlexLogoSrc('http://cdn.flexshopper.com/media/wysiwyg/plugin/fs_badge_pay.png');
     $this->setTemplate('flexshopper/payment/form.phtml')->setRedirectMessage()->setMethodTitle('')->setMethodLabelAfterHtml($logo->toHtml());
     return parent::_construct();
 }
开发者ID:RabeaWahab,项目名称:Magento_FlexPrice,代码行数:8,代码来源:Form.php

示例11: _construct

 /**
  * Init default template for block
  */
 protected function _construct()
 {
     $this->setTemplate('pnsofortueberweisung/form/ideal.phtml');
     // replace title with image
     $this->setMethodTitle('');
     $this->setMethodLabelAfterHtml('<img src="' . Mage::helper('pnsofortueberweisung')->__('https://images.sofort.com/en/ideal/logo_155x50.png') . '">');
     return parent::_construct();
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:11,代码来源:Ideal.php

示例12: _construct

 /**
  * Construct
  */
 protected function _construct()
 {
     $gateway_select = Mage::getStoreConfig("payment/msp/gateway_select");
     if ($gateway_select) {
         parent::_construct();
         $this->setTemplate('msp/gateways.phtml');
     }
 }
开发者ID:xiaoguizhidao,项目名称:storebaby.it,代码行数:11,代码来源:Gateways.php

示例13: _construct

 /**
  * Init default template for block
  */
 protected function _construct()
 {
     $this->setTemplate('pnsofortueberweisung/form/sofortlastschrift.phtml');
     if ($this->isDisplayText()) {
         $this->setMethodTitle('');
         $this->setMethodLabelAfterHtml('<img src="' . Mage::helper('pnsofortueberweisung')->__('https://images.sofort.com/de/sl/logo_155x50.png') . '">');
     }
     return parent::_construct();
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:12,代码来源:Sofortlastschrift.php

示例14: _construct

 protected function _construct()
 {
     parent::_construct();
     // Acceptance Mark/Badge
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('amazon_payments/mark.phtml');
     $this->setTemplate('amazon_payments/form.phtml')->setMethodLabelAfterHtml($mark->toHtml())->setMethodTitle('');
 }
开发者ID:frognrainbow,项目名称:amazon-payments-magento-plugin,代码行数:9,代码来源:Form.php

示例15: _construct

 /**
  * construct method
  */
 protected function _construct()
 {
     $session = Mage::getSingleton('checkout/session');
     $this->setSession($session);
     $this->setCustomer(Mage::getSingleton('customer/session')->getCustomer());
     $this->setAddress($session->getQuote()->getBillingAddress());
     $this->setQuote($session->getQuote());
     return parent::_construct();
 }
开发者ID:technomagegithub,项目名称:olgo.nl,代码行数:12,代码来源:Abstract.php


注:本文中的Mage_Payment_Block_Form::_construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。