Example #1
0
 /**
  * Clone profile and move profile to original profile
  *
  * @return void
  */
 protected function cloneProfile()
 {
     parent::cloneProfile();
     $this->getCart()->getProfile()->setCMSName('');
     $this->getCart()->getProfile()->setCMSProfileId(0);
 }
Example #2
0
 /**
  * Set up ec_type flag to 'mark' value if payment method selected on checkout
  *
  * @return void
  */
 protected function doActionPayment()
 {
     \XLite\Core\Session::getInstance()->ec_type = Paypal\Model\Payment\Processor\ExpressCheckout::EC_TYPE_MARK;
     parent::doActionPayment();
 }
Example #3
0
 /**
  * Update profile
  *
  * @return void
  */
 protected function doActionUpdateProfile()
 {
     parent::doActionUpdateProfile();
     $showSaveCardBox = $this->showSaveCardBox() ? 'Y' : 'N';
     $checkCheckoutAction = $this->checkCheckoutAction() ? 'Y' : 'N';
     \XLite\Core\Event::xpcEvent(array('showSaveCardBox' => $showSaveCardBox, 'checkCheckoutAction' => $checkCheckoutAction));
 }