Example #1
0
 /**
  * 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();
 }
Example #2
0
 protected function _construct()
 {
     if (!$this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('login', array('label' => AO::helper('checkout')->__('Checkout method'), 'allow' => true));
     }
     parent::_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();
 }
Example #4
0
 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);
 }
Example #5
0
 /**
  * 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();
 }
Example #6
0
 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();
 }
Example #7
0
 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();
 }
 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);
 }
 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();
 }
Example #10
0
 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());
     }
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('payment', array('label' => $this->__('Payment Information'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('tweaks/newsletter.phtml');
 }
Example #13
0
 protected function _construct()
 {
     $this->getCheckout()->setStepData('excellence7', array('label' => Mage::helper('checkout')->__('Payu Netbanking'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping_method', array('label' => AO::helper('checkout')->__('Shipping Method'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('deliverydate', array('label' => "delivery date"));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('excellence2', array('label' => Mage::helper('checkout')->__('Excelence2 Post Review'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('isgift', array('label' => $this->__('Is Gift Options'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('widget', array('label' => Mage::helper('checkout')->__('Pay with Amazon'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
Example #19
0
 /**
  * Initialize shipping address step
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping', array('label' => Mage::helper('checkout')->__('Shipping Information'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('billing_comment', array('label' => $this->__('Billing Comment'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('volumelicense', array('label' => Mage::helper('checkout')->__('Volume License Users'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
Example #22
0
 public function _construct()
 {
     parent::_construct();
 }
Example #23
0
 protected function _construct()
 {
     $this->getCheckout()->setStepData('heared4us', array('label' => Mage::helper('checkout')->__('Tipo de Compra?'), 'is_show' => true));
     parent::_construct();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shippingextra', array('label' => Mage::helper('checkout')->__('Freight Details'), 'is_show' => true));
     parent::_construct();
 }
Example #25
0
 protected function _construct()
 {
     $this->getCheckout()->setStepData('review', array('label' => Mage::helper('checkout')->__('Order Review'), 'is_show' => $this->isShow()));
     parent::_construct();
     $this->getQuote()->collectTotals()->save();
 }
 /**
  * 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();
 }
 protected function _construct()
 {
     $this->getCheckout()->setStepData('ecodes', array('label' => Mage::helper('checkout')->__('Premium Access Users'), 'is_show' => $this->isShow()));
     parent::_construct();
 }
Example #28
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('rewards/checkout/onepage/progress/sidebox.phtml');
 }
Example #29
0
 public function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
Example #30
0
 public function __construct()
 {
     parent::_construct();
     $this->getQuote()->collectTotals()->save();
 }