本文整理汇总了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类的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();
}
示例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();
}
示例3: _construct
protected function _construct()
{
if (!$this->isCustomerLoggedIn()) {
$this->getCheckout()->setStepData('login', array('label' => AO::helper('checkout')->__('Checkout method'), 'allow' => true));
}
parent::_construct();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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());
}
}
示例11: _construct
protected function _construct()
{
$this->getCheckout()->setStepData('payment', array('label' => $this->__('Payment Information'), 'is_show' => $this->isShow()));
parent::_construct();
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->setTemplate('tweaks/newsletter.phtml');
}
示例13: _construct
protected function _construct()
{
$this->getCheckout()->setStepData('excellence7', array('label' => Mage::helper('checkout')->__('Payu Netbanking'), 'is_show' => $this->isShow()));
parent::_construct();
}
示例14: _construct
protected function _construct()
{
$this->getCheckout()->setStepData('shipping_method', array('label' => AO::helper('checkout')->__('Shipping Method'), 'is_show' => $this->isShow()));
parent::_construct();
}
示例15: _construct
protected function _construct()
{
$this->getCheckout()->setStepData('deliverydate', array('label' => "delivery date"));
parent::_construct();
}