\Checkout_Controller
Controller used to render the checkout process
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class Checkout_Controller
extends Controller
{
- // members
- private static string $url_segment = "checkout/checkout";
- private static string $class_name = "Checkout";
- private static array $allowed_actions = ;
- // methods
- public void getClassName()
- public string Link()
- public void init()
- public void index()
- public array billing()
- public void delivery()
- public redirect usememberaddress()
- public array finish()
- public MemberLoginForm LoginForm()
- public BillingDetailsForm BillingForm()
- public DeliveryDetailsForm DeliveryForm()
- public PostagePaymentForm PostagePaymentForm()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
- $class_name
—
string
Name of the current controller. Mostly used in templates for targeted styling. - $url_segment
—
string
URL Used to generate links to this controller.
Methods
public
- BillingForm() — Form to capture the users billing details
- DeliveryForm() — Form to capture users delivery details
- Link() — Get the link to this controller
- LoginForm() — Generate a login form
- PostagePaymentForm() — Form to find postage options and allow user to select payment
- billing() — Catch the default dilling information of the visitor
- delivery() — Use to catch the users delivery details, if different to their billing details
- finish() — Final step, allowing user to select postage and payment method
- getClassName()
- index() — If user logged in, redirect to billing info, else show login, register or "checkout as guest" options.
- init()
- usememberaddress() — Use the address provided via the $ID param in the URL. The $OtherID param is used to determine if the address is billing or delivery.