\Checkout_Controller
Controller used to render the checkout process
Synopsis
class Checkout_Controller
extends Commerce_Controller
{
- // members
- private static string $class_name = "Checkout";
- private static string $url_segment = "commerce/checkout";
- private static array $allowed_actions = ;
- // Inherited members from Commerce_Controller
- protected $dataRecord;
- // methods
- public void getClassName()
- 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()
- // Inherited methods from Commerce_Controller
- public void data()
- public void getDataRecord()
- public void setDataRecord()
- public void Link()
- public void init()
- public void getPostageAreas()
- public void results()
Hierarchy
Extends
Members
private
- $allowed_actions
- $class_name
—
string
Name of the current controller. Mostly used in templates for targeted styling. - $url_segment — string
protected
- $dataRecord
Methods
public
- BillingForm() — Form to capture the users billing details
- DeliveryForm() — Form to capture users delivery details
- 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() — User the address provided via the $ID param in the URL. The $OtherID param is used to determine if the address is billing or delivery.
Inherited from Commerce_Controller
public
- Link()
- data() — Returns the associated database record
- getDataRecord()
- getPostageAreas() — Function to find relevent postage rates, based on supplied country and zip/postal code data.
- init() — Init actions that happen globally to all commerce interfaces.
- results() — Process and render search results. This has been hacked a bit to load products into the list (if they exists). Will need to come up with a more elegant solution to dealing with complex searches of objects though.
- setDataRecord()