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


PHP Mage_Checkout_Block_Onepage_Abstract::_construct方法代码示例

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


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

示例3: _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

示例4: _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

示例5: _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

示例6: _construct

 public function _construct()
 {
     parent::_construct();
     $rates = $this->getEstimateRates();
     $defaut_country = Mage::getStoreConfig('oscheckout/general/default_country_id');
     if (!$defaut_country) {
         $defaut_country = Mage::getStoreConfig('general/country/default');
     }
     $this->getQuote()->getShippingAddress()->setCountryId($defaut_country)->setCollectShippingRates(true)->save();
 }
开发者ID:ramantalkin,项目名称:tmp01skin,代码行数:10,代码来源:Oscheckout.php

示例7: _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

示例8: _construct

 /**
  * get default country and set estimate rates
  *
  * @return void
  */
 public function _construct()
 {
     parent::_construct();
     $defaut_country = Mage::getStoreConfig('onestepcheckout/general/default_country_id');
     /**
      * check condition default country is not empty 
      */
     if (!$defaut_country) {
         $defaut_country = 'US';
     }
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:16,代码来源:Onestepcheckout.php

示例9: _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

示例10: _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

示例11: _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

示例12: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('shippingextra', array('label' => Mage::helper('checkout')->__('Freight Details'), 'is_show' => true));
     parent::_construct();
 }
开发者ID:htecvc2x,项目名称:htecvc2x-mage-training,代码行数:5,代码来源:Shippingextra.php

示例13: _construct

 protected function _construct()
 {
     $this->getCheckout()->setStepData('isgift', array('label' => $this->__('Is Gift Options'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
开发者ID:AlexandrVolkov,项目名称:tasks_addgifttocheckout,代码行数:5,代码来源:IsGift.php

示例14: _construct

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

示例15: _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


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