/** * 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'); }
/** * 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'); }
/** * 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'); }
/** * 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'))); }
/** * 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()); }
/** * 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()); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[static::PARAM_LOCATION]->setValue($this->buildURL('checkout')); }
/** * Defines the button specific attributes * * @return array */ protected function getButtonAttributes() { $list = parent::getButtonAttributes(); unset($list['type']); return $list; }
/** * 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')); }