• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Checkout_Block_Onepage_Abstract类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Mage_Checkout_Block_Onepage_Abstract的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Checkout_Block_Onepage_Abstract类的具体用法?PHP Mage_Checkout_Block_Onepage_Abstract怎么用?PHP Mage_Checkout_Block_Onepage_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: _construct

 /**
  * Set the Login progress block step data
  */
 protected function _construct()
 {
     if (!$this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('login', array('label' => Mage::helper('checkout')->__('Email Address'), 'allow' => true));
     }
     Mage_Checkout_Block_Onepage_Abstract::_construct();
 }
开发者ID:jrlong,项目名称:sf9_checkout,代码行数:10,代码来源:Login.php


示例2: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('billing', array('label' => Mage::helper('advancecheckout')->__('Shipping Information'), 'is_show' => $this->isShow()));
     if ($this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('billing', 'allow', true);
     }
     Mage_Checkout_Block_Onepage_Abstract::_construct();
 }
开发者ID:supravatweb,项目名称:magento_extensions,代码行数:8,代码来源:Billing.php


示例3: _construct

 protected function _construct()
 {
     if (!$this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('login', array('label' => AO::helper('checkout')->__('Checkout method'), 'allow' => true));
     }
     parent::_construct();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:7,代码来源:Onepage_Login.php


示例4: _afterToHtml

 protected function _afterToHtml($html)
 {
     if ($this->helper('aitcheckout')->isShowCheckoutInCart() && $this->helper('aitcheckout')->isCompactDesign()) {
         $content = $this->getLayout()->getBlock('content');
         $content->setText(preg_replace('|\\<div class="totals"\\>(.*)\\</div\\>|Uis', '', $content->getText()));
     }
     return parent::_afterToHtml($html);
 }
开发者ID:Madhurabhat,项目名称:test,代码行数:8,代码来源:Checkout.php


示例5: _toHtml

 /**
  * Convert block to html.
  * Does not display if quote items count equals 0
  *
  * @return string
  */
 protected function _toHtml()
 {
     $quote = Mage::getSingleton('checkout/session')->getQuote();
     if (!$quote->getItemsCount()) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:xiaoguizhidao,项目名称:autotech_design,代码行数:14,代码来源:Block.php


示例6: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('billing', array('label' => Mage::helper('checkout')->__('Billing Information'), 'is_show' => $this->isShow()));
     if ($this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('billing', 'allow', true);
     }
     parent::_construct();
 }
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:8,代码来源:Billing.php


示例7: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('excellence', array('label' => Mage::helper('checkout')->__('Excelence Blog Review'), 'is_show' => $this->isShow()));
     if ($this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('excellence', 'allow', true);
         $this->getCheckout()->setStepData('billing', 'allow', false);
     }
     parent::_construct();
 }
开发者ID:hientruongbluecom,项目名称:mgento,代码行数:9,代码来源:Excellence.php


示例8: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('widget', array('label' => Mage::helper('checkout')->__('Pay with Amazon'), 'is_show' => $this->isShow()));
     parent::_construct();
     $this->getCheckout()->setStepData('shipping', 'is_show', true);
     // Display "Shipping Information" progress widget
     // Reset checkout steps if switching from OnePage core
     $this->getCheckout()->setStepData('billing', 'is_show', false);
     $this->getCheckout()->setStepData('payment', 'is_show', false);
 }
开发者ID:frognrainbow,项目名称:amazon-payments-magento-plugin,代码行数:10,代码来源:Widget.php


示例9: _prepareLayout

 public function _prepareLayout()
 {
     $title = Mage::getStoreConfig('onestepcheckout/general/checkout_title');
     /**
      * check codndition title is not empty
      */
     if ($title) {
         $checkoutTitle = $title;
     } else {
         $checkoutTitle = "Onestep Checkout";
     }
     $this->getLayout()->getBlock('head')->setTitle($checkoutTitle);
     return parent::_prepareLayout();
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:14,代码来源:Onestepcheckout.php


示例10: _construct

 public function _construct()
 {
     parent::_construct();
     $this->getQuote()->setIsMultiShipping(false);
     $this->email = false;
     $this->customer_after_place_order = false;
     $this->_loadConfig();
     if ($this->_isLoggedIn()) {
         $helper = Mage::helper('customer');
         $customer = $helper->getCustomer();
         $this->email = $customer->getEmail();
     }
     //we need to refactor this , not a neat way to make all in constructor
     if ($this->getSubTemplate()) {
         return true;
     }
     try {
         $this->_handlePostData();
     } catch (Exception $e) {
         die('Error: ' . $e->getMessage());
     }
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:22,代码来源:Checkout.php


示例11: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('payment', array('label' => $this->__('Payment Information'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:5,代码来源:Payment.php


示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('tweaks/newsletter.phtml');
 }
开发者ID:AleksNesh,项目名称:pandora,代码行数:5,代码来源:Newsletter.php


示例13: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('excellence7', array('label' => Mage::helper('checkout')->__('Payu Netbanking'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:5,代码来源:Excellence7.php


示例14: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping_method', array('label' => AO::helper('checkout')->__('Shipping Method'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:5,代码来源:Onepage_Shipping_Method.php


示例15: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('deliverydate', array('label' => "delivery date"));
     parent::_construct();
 }
开发者ID:victso,项目名称:magento-delivery-and-fapiao,代码行数:5,代码来源:Deliverydate.php


示例16: _construct

 /**
  * Initialize shipping address step
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping', array('label' => Mage::helper('checkout')->__('Shipping Information'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
开发者ID:votanlean,项目名称:Magento-Pruebas,代码行数:8,代码来源:Shipping.php


示例17: _construct

 public function _construct()
 {
     parent::_construct();
 }
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:4,代码来源:Loginpage.php


示例18: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('heared4us', array('label' => Mage::helper('checkout')->__('Tipo de Compra?'), 'is_show' => true));
     parent::_construct();
 }
开发者ID:Gilbertoavitia1,项目名称:AHBS,代码行数:5,代码来源:Heared4us.php


示例19: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('review', array('label' => Mage::helper('checkout')->__('Order Review'), 'is_show' => $this->isShow()));
     parent::_construct();
     $this->getQuote()->collectTotals()->save();
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:6,代码来源:Review.php


示例20: _construct

 /**
  * Initialize login step, as user may have logged in from cart page.
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('login', array('label' => Mage::helper('checkout')->__('Checkout Method'), 'allow' => true));
     parent::_construct();
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:8,代码来源:Onepage.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Mage_Checkout_Controller_Action类代码示例发布时间:2022-05-23
下一篇:
PHP Mage_Catalog_Model_Resource_Product_Collection类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap