\CheckoutPage_Controller

Synopsis

class CheckoutPage_Controller extends CartPage_Controller {
}

Hierarchy

Members

private

  • $allowed_actions

protected

  • $currentOrder$order
    order currently being shown on this page
  • $currentStep$currentStep
    STEP STUFF ---------------------------------------------------------------------------
  • $overrideCanView — boolean
    show the order even if canView returns false
  • $showCreateAccountFormBoolean
  • $stepsArray
  • $workedOutMessagesAndActions$workedOutMessagesAndActions
    to ensure messages and actions links are only worked out once...

Methods

protected

  • applyStepRules() — Here are some additional rules that can be applied to steps.
  • currentStepNumber() — returns the number of the current step (e.g. step 1)
  • numberOfSteps() — returns the total number of steps (e.g. 3) we add one for the confirmation page

public

  • CanCheckout() — Can the user proceed? It must be an editable order (see @link CartPage) and is must also contain items.
  • CanShowStep()
  • CheckoutSteps() — returns a dataobject set of the steps.
  • HasCheckoutSteps() — when you extend the CheckoutPage you can change this...
  • IsFinalStep() — Is this the final step in the process?
  • ModifierForm() — Catch for incompatable coding only....
  • ModifierForms() — Returns a ArrayList of {@link OrderModifierForm} objects. These forms are used in the OrderInformation HTML table for the user to fill in as needed for each modifier applied on the site.
  • OrderForm() — Returns a form allowing a user to enter their details to checkout their order.
  • OrderFormAddress() — Returns a form allowing a user to enter their details to checkout their order.
  • PercentageDone() — returns the percentage of steps done (0 - 100)
  • ShowOnlyCurrentStep() — Is this the final step in the process
  • StepsContentAbove() — returns the top of the page content for the Checkout Step
  • StepsContentBelow() — returns the bottom of the page content for the Checkout Step
  • StepsContentHeading() — returns the heading for the Checkout Step
  • checkoutstep() — sets the current checkout step if it is ajax it returns the current controller as the inner for the page.
  • init() — Standard SS function if set to false, user can edit order, if set to true, user can only review order

Inherited from CartPage_Controller

protected

public