aboutsummaryrefslogtreecommitdiffstats
path: root/public/catalog/controller/extension/payment/free_checkout.php
blob: f4674c490853558bc2b91e1cad596e8aa6aeff50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
class ControllerExtensionPaymentFreeCheckout extends Controller {
	public function index() {
		$data['continue'] = $this->url->link('checkout/success');

		return $this->load->view('extension/payment/free_checkout', $data);
	}

	public function confirm() {
		if ($this->session->data['payment_method']['code'] == 'free_checkout') {
			$this->load->model('checkout/order');

			$this->model_checkout_order->addOrderHistory($this->session->data['order_id'], $this->config->get('payment_free_checkout_order_status_id'));
		}
	}
}