Exemplo n.º 1
0
 /**
  * @param bool $dontTranslate
  */
 function __construct($dontTranslate = false)
 {
     $this->name = 'CODPincode';
     $this->version = '1';
     $this->author = 'satz';
     $this->tab = 'payments_gateways';
     $this->need_instance = 1;
     $this->_html = '';
     $this->controllers = array('validation');
     $this->bootstrap = true;
     $this->conf_keys = array('COD_MINIMUM_AMOUNT', 'COD_FEE', 'SHIPPING_METHOD');
     parent::__construct();
     require_once dirname(__FILE__) . '/pincode/CSVReader.php';
     if (!$dontTranslate) {
         $this->displayName = $this->l('COD(Cash on Delivery)');
         $this->description = $this->l('COD Avialability based on pincode');
     }
     $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_);
 }