Internal overhaul of Cart/Checkout and other minor fixes
This commit is contained in:
16
modules/checkout/classes/Controller/Admin/Checkout.php
Normal file
16
modules/checkout/classes/Controller/Admin/Checkout.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This class provides Admin for Checkout management
|
||||
*
|
||||
* @package Checkout
|
||||
* @category Controllers/Admin
|
||||
* @author Deon George
|
||||
* @copyright (c) 2009-2013 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Controller_Admin_Checkout extends Controller_Checkout {
|
||||
protected $secure_actions = array(
|
||||
);
|
||||
}
|
||||
?>
|
@@ -28,13 +28,8 @@ class Controller_Checkout extends Controller_TemplateDefault {
|
||||
|
||||
$co = ORM::factory('Checkout',$cid);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>'Checkout',
|
||||
'body'=>$co->plugin()->before(Cart::instance()),
|
||||
));
|
||||
|
||||
// Suppress our right hand tab
|
||||
$this->template->right = ' ';
|
||||
Block::factory()
|
||||
->body($co->plugin()->before(Cart::instance()));
|
||||
}
|
||||
|
||||
public function action_after() {
|
||||
@@ -71,6 +66,7 @@ class Controller_Checkout extends Controller_TemplateDefault {
|
||||
$cno->status = 1;
|
||||
$cno->data = Request::current()->post();
|
||||
$cno->save();
|
||||
|
||||
} else {
|
||||
$cno->where('id','=',$test_id)->find();
|
||||
}
|
||||
|
Reference in New Issue
Block a user