shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

free_checkout.php (549B)


      1 <?php
      2 class ControllerExtensionPaymentFreeCheckout extends Controller {
      3 	public function index() {
      4 		$data['continue'] = $this->url->link('checkout/success');
      5 
      6 		return $this->load->view('extension/payment/free_checkout', $data);
      7 	}
      8 
      9 	public function confirm() {
     10 		if ($this->session->data['payment_method']['code'] == 'free_checkout') {
     11 			$this->load->model('checkout/order');
     12 
     13 			$this->model_checkout_order->addOrderHistory($this->session->data['order_id'], $this->config->get('payment_free_checkout_order_status_id'));
     14 		}
     15 	}
     16 }