SilverCart\Model\Pages\CheckoutStepController
Checkout step page controller.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class CheckoutStepController
extends PageController
{
- // members
- private static array $allowed_actions = ;
- private static array $allowed_thanks_actions = ;
- protected Checkout $checkout = NULL;
- // methods
- protected void init()
- public array getAccessibleSteps()
- public array allowedActions()
- public bool hasAction()
- protected DBHTMLText handleAction()
- public DBHTMLText|null step()
- public DBHTMLText|null thanks()
- public HTTPResponse welcome()
- public void deleteAddress()
- public AddAddressForm AddAddressForm()
- public EditAddressForm EditAddressForm()
- public Checkout getCheckout()
- public Address|null getInvoiceAddress()
- public Address|null getShippingAddress()
- public Address|null getAddress()
- public bool currentStepIsPaymentStep()
- public int getAddressStepNumber()
- public int getShipmentStepNumber()
- public int getPaymentStepNumber()
- public int getLastStepNumber()
- public int getAddressStepLink()
- public int getShipmentStepLink()
- public int getPaymentStepLink()
- public int getLastStepLink()
- public bool SkipPaymentStep()
- public bool SkipShippingStep()
- public boolean getEditableShoppingCart()
- public void canCheckout()
- public string getCheckoutErrorMessage()
Hierarchy
Extends
- PageController
Members
private
- $allowed_actions
—
array
Allowed actions. - $allowed_thanks_actions
—
array
Allowed thanks actions.
protected
- $checkout
—
SilverCart\Checkout\Checkout
Checkout.
Methods
protected
- handleAction() — Controller's default action handler. It will call the method named in "$Action", if that method exists. If "$Action" isn't given, it will use "index" as a default.
- init() — Initializes the controller.
public
- AddAddressForm() — Returns the AddAddressForm.
- EditAddressForm() — Returns the EditAddressForm.
- SkipPaymentStep() — Returns whether to skip payment step or not.
- SkipShippingStep() — Returns whether to skip shipping step or not.
- allowedActions() — Adds the current checkout step actions to the allowed actions.
- canCheckout() — Returns whether the current customer can checkout or not.
- currentStepIsPaymentStep() — Checks whether the current step is the payment step
- deleteAddress() — Action to delete an address. Checks, whether the given address is related to the logged in customer and deletes it.
- getAccessibleSteps() — Returns the accessible steps.
- getAddress() — Returns the shipping or invoice address set in checkout
- getAddressStepLink() — Returns the address step number.
- getAddressStepNumber() — Returns the address step number.
- getCheckout() — Returns the checkout.
- getCheckoutErrorMessage() — Returns a checkout error message.
- getEditableShoppingCart() — Indicates wether ui elements for removing items and altering their quantity should be shown in the shopping cart templates.
- getInvoiceAddress() — Returns the invoice address set in checkout
- getLastStepLink() — Returns the payment step number.
- getLastStepNumber() — Returns the payment step number.
- getPaymentStepLink() — Returns the payment step number.
- getPaymentStepNumber() — Returns the payment step number.
- getShipmentStepLink() — Returns the shippment step number.
- getShipmentStepNumber() — Returns the shippment step number.
- getShippingAddress() — Returns the shipping address set in checkout
- hasAction() — Returns whether this controller or the current checkout step has the given action.
- step() — Action to handle the checkout step.
- thanks() — Action to show the order thanks page after placing an order.
- welcome() — Welcome action after finishing the registration in checkout.