pilibaba.php (944B)
1 <?php 2 class ModelExtensionShippingPilibaba extends Model { 3 function getQuote($address) { 4 $this->load->language('extension/shipping/pilibaba'); 5 6 $status = true; 7 8 $method_data = array(); 9 10 if ($status) { 11 $quote_data = array(); 12 13 $quote_data['pilibaba'] = array( 14 'code' => 'pilibaba.pilibaba', 15 'title' => $this->language->get('text_description'), 16 'cost' => $this->config->get('payment_pilibaba_shipping_fee'), 17 'tax_class_id' => 0, 18 'text' => $this->currency->format($this->tax->calculate($this->config->get('payment_pilibaba_shipping_fee'), 0, $this->config->get('config_tax')), $this->session->data['currency']) 19 ); 20 21 $method_data = array( 22 'code' => 'pilibaba', 23 'title' => $this->language->get('text_title'), 24 'quote' => $quote_data, 25 'sort_order' => 1, 26 'error' => false 27 ); 28 } 29 30 return $method_data; 31 } 32 }