Internal overhaul of Cart/Checkout and other minor fixes

This commit is contained in:
Deon George
2013-12-02 15:16:28 +11:00
parent f8a5b153cf
commit 06b87c5135
26 changed files with 256 additions and 228 deletions

View File

@@ -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();
}