Exemple #1
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_LOCATION]->setValue($this->buildURL('addons_list_installed'));
     $this->widgetParams[self::PARAM_LABEL]->setValue('Show all');
     $this->widgetParams[self::PARAM_STYLE]->setValue('more-addons-button');
 }
Exemple #2
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_LOCATION]->setValue($this->buildURL('addons_list_marketplace'));
     $this->widgetParams[self::PARAM_LABEL]->setValue('More add-ons');
     $this->widgetParams[self::PARAM_STYLE]->setValue('more-addons-button');
 }
Exemple #3
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_LOCATION]->setValue($this->buildURL('checkout'));
     $this->widgetParams[self::PARAM_LABEL]->setValue('Checkout');
     $this->widgetParams[self::PARAM_STYLE]->setValue('regular-main-button checkout-button');
 }
Exemple #4
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_LOCATION]->setValue($this->buildURL('product', '', array('id' => $this->getProduct()->getProductId(), 'page' => 'product_options', 'groupId' => '0')));
 }
Exemple #5
0
 /**
  * Return CSS classes
  *
  * @return string
  */
 protected function getClass()
 {
     return parent::getClass() . ' add-shipping-carrier-link';
 }
 /**
  * getClass
  *
  * @return string
  */
 protected function getClass()
 {
     return trim(parent::getClass() . ' action continue');
 }
 /**
  * defineWidgetParams
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[static::PARAM_LOCATION] = new \XLite\Model\WidgetParam\String('Redirect to', $this->buildURL('checkout', 'start_express_checkout'));
     $this->widgetParams[static::PARAM_IN_CONTEXT] = new \XLite\Model\WidgetParam\Bool('Is In-Context checkout', $this->defineInContext());
 }
Exemple #8
0
 /**
  * JavaScript: this code will be used by default
  *
  * @return string
  */
 protected function getDefaultJSCode()
 {
     return sprintf('if (confirm(core.t("Are you sure?"))) %s', parent::getDefaultJSCode());
 }
Exemple #9
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[static::PARAM_LOCATION]->setValue($this->buildURL('checkout'));
 }
Exemple #10
0
 /**
  * Defines the button specific attributes
  *
  * @return array
  */
 protected function getButtonAttributes()
 {
     $list = parent::getButtonAttributes();
     unset($list['type']);
     return $list;
 }
Exemple #11
0
 /**
  * defineWidgetParams 
  * 
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_LOCATION] = new \XLite\Model\WidgetParam\String('Redirect to', $this->buildURL('checkout', 'start_express_checkout'));
 }