<?php

class Checkout extends Controller {

	function __construct() {
		parent::__construct();
		Session::set('ispage', 'product-checkout');
	}

	function index($url = "") {
		if (EcommerceManager::checkout_check_data()) {
			redirect(get_bloginfo('baseurl') . "payment/");
		}
		
		EcommerceManager::checkout_page();
	}
}
