swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: CheckoutPage_Controller

Source Location: /code/customer/CheckoutPage.php

Class Overview

Page_Controller
   |
   --CheckoutPage_Controller

Display the checkout page, with order form. Process the order - send the order details off to the Payment class.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 111]
Display the checkout page, with order form. Process the order - send the order details off to the Payment class.



Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Methods


method index [line 120]

Array index( )

Include some CSS and javascript for the checkout page

TODO why didn't I use init() here?




Tags:

return:  Contents for page rendering


[ Top ]

method OrderForm [line 141]

CheckoutForm OrderForm( )

Create an order form for customers to fill out their details and pass the order on to the payment class.



Tags:

return:  The checkout/order form


[ Top ]

method ProcessOrder [line 393]

void ProcessOrder( Array $data, Form $form)

Process the order by sending form information to Payment class.

TODO send emails from this function after payment is processed




Parameters:

Array   $data   Submitted form data via POST
Form   $form   Form data was submitted from

[ Top ]

method updateOrderFormCart [line 528]

String updateOrderFormCart( SS_HTTPRequest $data)

Update the order form cart, called via AJAX with current order form data.

Renders the cart and sends that back for displaying on the order form page.




Tags:

return:  Rendered cart for the order form, template include 'CheckoutFormOrder'.


Parameters:

SS_HTTPRequest   $data   Form data sent via AJAX POST.

[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:25 +1300 by phpDocumentor 1.4.4