/** * Sets the preferences for this form * * @return array * * @author Sebastian Diel <*****@*****.**> * @since 09.10.2012 */ public function preferences() { parent::preferences(); if ($this->controller->class == 'SilvercartCheckoutStep_Controller') { $this->CancelLink = $this->controller->Link(); } else { $this->CancelLink = $this->controller->Parent()->Link(); } }
/** * Here we set some preferences. * * @return void * * @author Sascha Koehler <*****@*****.**> * @since 31.03.2011 */ public function preferences() { parent::preferences(); $this->preferences['stepIsVisible'] = true; $this->preferences['stepTitle'] = _t('SilvercartCheckoutFormStep2.TITLE', 'Addresses'); $this->preferences['submitButtonTitle'] = _t('SilvercartCheckoutFormStep.FORWARD', 'Next'); $this->preferences['fillInRequestValues'] = true; $this->preferences['loadShoppingcartModules'] = false; $this->preferences['createShoppingcartForms'] = false; $this->preferences['doJsValidationScrolling'] = false; return $this->preferences; }