SilverCart\Checkout\CheckoutStep6
Checkout step 6.
Default checkout step to finalize the order.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class CheckoutStep6
extends CheckoutStep
{
- // members
- private static bool $is_visible = false;
- // Inherited members from CheckoutStep
- protected static array $customOutput;
- protected Checkout $checkout;
- protected Controller $controller;
- // methods
- public void init()
- public void process()
- public ShoppingCart getShoppingCart()
- // Inherited methods from CheckoutStep
- public void __construct()
- public void doInit()
- public void init()
- public void process()
- public void complete()
- public array getTemplates()
- public DBHTMLText forTemplate()
- public array allowedActions()
- public bool hasAction()
- public bool IsVisible()
- public bool IsCurrentStep()
- public bool IsCompleted()
- public bool IsPreviousStepCompleted()
- public bool IsAccessible()
- public int StepNumber()
- public int getStepIndex()
- public int VisibleStepNumber()
- public string StepTitle()
- public Checkout getCheckout()
- public Controller getController()
- public CheckoutStep setController()
- public static void addCustomOutput()
- public string CustomOutput()
- public bool canAccess()
- public void resetNextSteps()
- public void redirectToNextStep()
- // Inherited methods from PaymentCheckoutStep
- public PaymentMethod getPaymentMethod()
- public CheckoutStep setPaymentMethod()
- public CheckoutStep initPaymentMethod()
- public CheckoutStep resetPaymentProgress()
- // Inherited methods from ShippingCheckoutStep
- public ShippingMethod getShippingMethod()
- public CheckoutStep setShippingMethod()
- public CheckoutStep initShippingMethod()
- // Inherited methods from AddressCheckoutStep
- public Address getInvoiceAddress()
- public Address getShippingAddress()
- public bool getInvoiceAddressIsShippingAddress()
- public CheckoutStep setInvoiceAddress()
- public CheckoutStep setShippingAddress()
- public CheckoutStep setInvoiceAddressIsShippingAddress()
- public CheckoutStep initAddressData()
- public Address initAddress()
Hierarchy
Extends
Uses
- SilverCart\Checkout\PaymentCheckoutStep
- SilverCart\Checkout\ShippingCheckoutStep
- SilverCart\Checkout\AddressCheckoutStep
- SilverCart\Checkout\OrderCheckoutStep
Members
private
- $is_visible
—
SilverCart\Checkout\bool
Is this step visible? (default: true)
protected
- $checkout
—
SilverCart\Checkout\Checkout
Checkout. - $controller
—
SilverStripe\Control\Controller
Controller. - $customOutput
—
array
A list of custom output to add to the content area. - $invoiceAddress
—
\SilverCart\Model\Customer\Address
Invoice address. - $invoiceAddressIsShippingAddress
—
SilverCart\Checkout\bool
Determines whether the invoice address is also used as shipping address. - $paymentMethod
—
\SilverCart\Model\Payment\PaymentMethod
Chosen payment method. - $shippingAddress
—
\SilverCart\Model\Customer\Address
Shipping address. - $shippingMethod
—
\SilverCart\Model\Shipment\ShippingMethod
Chosen shipping method.
Methods
public
- getShoppingCart() — Returns the current shopping cart.
- init() — Optional method to initialize a checkout step.
- process() — Processes this checkout step.
Inherited from SilverCart\Checkout\CheckoutStep
public
- CustomOutput() — Returns the combined custom output snippets as string.
- IsAccessible() — Returns whether this step is accessible.
- IsCompleted() — Returns whether this step is completed.
- IsCurrentStep() — Returns whether this step is the current step.
- IsPreviousStepCompleted() — Returns whether the previous step is completed.
- IsVisible() — Returns whether this step is visible.
- StepNumber() — Returns this step's number.
- StepTitle() — Returns the step title.
- VisibleStepNumber() — Returns this step's number respecting its visibility.
- addCustomOutput() — Add a custom output snippet.
- allowedActions() — Get a array of allowed actions defined on this step, any parent classes or extensions.
- canAccess() — Returns whether this step can be accessed.
- complete() — Marks this step as completed.
- doInit() — Optional method to initialize a checkout step.
- forTemplate() — Return a rendered version of this step.
- getCheckout() — Returns the checkout.
- getController() — Returns the controller.
- getStepIndex() — Returns this step's index.
- getTemplates() — Returs the ordered list of preferred templates for rendering this form If the template isn't set, then default to the form class name e.g "Form".
- hasAction() — Returns whether the given $action exists on this checkout step.
- init() — Optional method to initialize a checkout step.
- process() — Custom checkout step processor.
- redirectToNextStep() — Redirects to the next step.
- resetNextSteps() — Removes all following steps out of completed step list.
- setController() — Sets the controller.
Inherited from SilverCart\Checkout\PaymentCheckoutStep
public
- getPaymentMethod() — Returns the chosen payment method.
- initPaymentMethod() — Initializes the payment method by using the checkout data.
- resetPaymentProgress() — Resets the payment specific progress information.
- setPaymentMethod() — Sets the chosen payment method.
Inherited from SilverCart\Checkout\ShippingCheckoutStep
public
- getShippingMethod() — Returns the chosen shipping method.
- initShippingMethod() — Initializes the shipping method by using the checkout data.
- setShippingMethod() — Sets the chosen shipping method.
Inherited from SilverCart\Checkout\AddressCheckoutStep
public
- getInvoiceAddress() — Returns the invoice address.
- getInvoiceAddressIsShippingAddress() — Returns whether the invoice address is also used as shipping address.
- getShippingAddress() — Returns the shipping address.
- initAddress() — Initializes a single address (either invoice or shipping).
- initAddressData() — Initializes the address data.
- setInvoiceAddress() — Sets the invoice address.
- setInvoiceAddressIsShippingAddress() — Sets whether the invoice address is also used as shipping address.
- setShippingAddress() — Sets the shipping address.