/** * Here we set some preferences. * * @return void * * @author Sebastian Diel <*****@*****.**>, * Sascha Koehler <*****@*****.**> * @since 26.03.2014 */ public function preferences() { $this->preferences['submitButtonTitle'] = _t('SilvercartCheckoutFormStep1NewCustomerForm.TITLE'); $this->preferences['loadShoppingcartModules'] = false; $this->preferences['createShoppingcartForms'] = false; $this->preferences['doJsValidationScrolling'] = false; parent::preferences(); }
/** * Here we set some preferences. * * @return void * * @author Sebastian Diel <*****@*****.**> * @since 16.07.2014 */ public function preferences() { $this->preferences['fillInRequestValues'] = true; $this->preferences['doJsValidationScrolling'] = false; $this->preferences['submitButtonUseButtonTag'] = true; $this->preferences['submitButtonExtraClasses'] = array('silvercart-button', 'btn', 'btn-large', 'btn-success', 'pull-right'); parent::preferences(); }
/** * Here we set some preferences. * * @return void * * @author Sascha Koehler <*****@*****.**> * @since 31.03.2011 */ public function preferences() { $this->preferences['stepIsVisible'] = false; $this->preferences['stepTitle'] = _t('SilvercartCheckoutFormStepDefaultOrderConfirmation.TITLE', 'Order Confirmation'); $this->preferences['ShowCustomHtmlFormStepNavigation'] = false; $this->preferences['createShoppingcartForms'] = false; $this->preferences['doJsValidationScrolling'] = false; parent::preferences(); }
/** * Here we set some preferences. * * @return void * * @author Sascha Koehler <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 12.02.2013 */ public function preferences() { $stepIsVisible = true; if ($this->SkipShippingStep()) { $stepIsVisible = false; } $this->preferences['stepIsVisible'] = $stepIsVisible; $this->preferences['stepTitle'] = _t('SilvercartCheckoutFormStep3.TITLE', 'Shipment'); $this->preferences['submitButtonTitle'] = _t('SilvercartCheckoutFormStep.FORWARD', 'Next'); $this->preferences['fillInRequestValues'] = true; $this->preferences['loadShoppingcartModules'] = false; $this->preferences['createShoppingcartForms'] = false; $this->preferences['doJsValidationScrolling'] = false; parent::preferences(); }
/** * Here we set some preferences. * * @return void * * @author Sascha Koehler <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 11.03.2013 */ public function preferences() { $paymentMethods = SilvercartPaymentMethod::get()->filter("isActive", 1); $stepIsVisible = true; if ($paymentMethods->count() == 0) { $this->addMessage('Keine Zahlungsarten definiert!'); } else { if ($this->SkipPaymentStep()) { $stepIsVisible = false; } $this->preferences['stepIsVisible'] = $stepIsVisible; $this->preferences['stepTitle'] = _t('SilvercartCheckoutFormStep4.TITLE', 'Payment'); $this->preferences['submitButtonTitle'] = _t('SilvercartCheckoutFormStep.FORWARD', 'Next'); $this->preferences['fillInRequestValues'] = true; $this->preferences['loadShoppingcartModules'] = false; $this->preferences['createShoppingcartForms'] = false; $this->preferences['doJsValidationScrolling'] = false; } parent::preferences(); }
/** * Here we set some preferences. * * @return void * * @author Sascha Koehler <*****@*****.**> * @since 31.03.2011 */ public function preferences() { $this->preferences['stepIsVisible'] = false; $this->preferences['createShoppingcartForms'] = false; parent::preferences(); }
/** * Here we set some preferences. * * @return void * * @author Sascha Koehler <*****@*****.**> * @since 31.03.2011 */ public function preferences() { $this->preferences['stepIsVisible'] = false; parent::preferences(); }
/** * We intercept the submit handler since we have to alter some field * checks depending on the status of the field "InvoiceAddressAsShippingAddress". * * @param SS_HTTPRequest $data submit data * @param Form $form form object * * @return ViewableData * * @author Sebastian Diel <*****@*****.**> * @since 01.07.2011 */ public function submit($data, $form) { // Disable the check instructions if the shipping address shall be // the same as the invoice address. if ($data['InvoiceAddressAsShippingAddress'] == '1') { $this->deactivateValidationFor('ShippingAddress'); } parent::submit($data, $form); }
/** * Here we set some preferences. * * @return void * * @author Sebastian Diel <*****@*****.**>, * Sascha Koehler <*****@*****.**> * @since 26.03.2014 */ public function preferences() { $this->preferences['stepIsVisible'] = self::$show_in_step_navigation; $this->preferences['stepTitle'] = _t('SilvercartCheckoutFormStep1.TITLE'); $this->preferences['submitButtonTitle'] = _t('SilvercartCheckoutFormStep.FORWARD'); $this->preferences['fillInRequestValues'] = true; $this->preferences['isConditionalStep'] = true; $this->preferences['loadModules'] = false; $this->preferences['createShoppingcartForms'] = false; $this->preferences['doJsValidationScrolling'] = false; parent::preferences(); }