shop.balmet.com

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

free_checkout.php (572B)


      1 <?php
      2 class ModelExtensionPaymentFreeCheckout extends Model {
      3 	public function getMethod($address, $total) {
      4 		$this->load->language('extension/payment/free_checkout');
      5 
      6 		if ($total <= 0.00) {
      7 			$status = true;
      8 		} else {
      9 			$status = false;
     10 		}
     11 
     12 		$method_data = array();
     13 
     14 		if ($status) {
     15 			$method_data = array(
     16 				'code'       => 'free_checkout',
     17 				'title'      => $this->language->get('text_title'),
     18 				'terms'      => '',
     19 				'sort_order' => $this->config->get('payment_free_checkout_sort_order')
     20 			);
     21 		}
     22 
     23 		return $method_data;
     24 	}
     25 }