DWP Demo Example | × |
See these functions in the file manageOrder.php:
function checkoutForm(&$items,$gateway, $hidden)---generates checkout form function cartTable(&$items,$action)---generates shopping cart display function orderTable($order)---displays order recorded in database function changeQty($order, $product, $qty)---changes quantity of an order function removeItem($order, $product)---removes an item in an order function addItem($order, $product, $qty)---adds an into to an order function newOrder($order, $customer)---creats a new order in the database function enterOrder($order, $customer, &$cart)---enters a customer order after checkout. function removeOrder($order)---removes an order from the dataase. function value_from_db($q)---retrives a value from database. function htmlCheckout(&$result_obj, $item_name, $amt_name, ... )---generates HTML for checkout display and PayPal interface.
And also see the HTML code generation.