本文整理汇总了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();
}
示例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();
}
示例3: _construct
public function _construct()
{
parent::_construct();
if ($this->_template_filename) {
$this->setTemplate($this->_template_filename);
}
}
示例4: _construct
protected function _construct()
{
parent::_construct();
$gateway = Mage::getSingleton('billmateinvoice/gateway');
$this->matched = $gateway->isMatched;
$this->setTemplate('billmate/changeaddress.phtml');
}
示例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('');
}
}
示例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();
}
示例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();
}
示例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();
}
示例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());
}
示例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();
}
示例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();
}
示例12: _construct
/**
* Construct
*/
protected function _construct()
{
$gateway_select = Mage::getStoreConfig("payment/msp/gateway_select");
if ($gateway_select) {
parent::_construct();
$this->setTemplate('msp/gateways.phtml');
}
}
示例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();
}
示例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('');
}
示例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();
}