public function __construct() { $this->name = 'groupcategory'; self::$orderBy = array('seller' => $this->l('Seller'), 'price' => $this->l('Price'), 'discount' => $this->l('Discount'), 'date_add' => $this->l('Add Date'), 'position' => $this->l('Position'), 'review' => $this->l('Review'), 'view' => $this->l('View'), 'rate' => $this->l('Rates')); self::$orderWay = array('asc' => $this->l('Ascending'), 'desc' => $this->l('Descending')); self::$displayOnCondition = array('all' => $this->l('All'), 'new' => $this->l('New'), 'used' => $this->l('Used'), 'refurbished' => $this->l('Refurbished')); self::$displayOnSale = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes')); self::$displayOnNew = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes')); self::$displayOnDiscount = array('2' => $this->l('All'), '0' => $this->l('No'), '1' => $this->l('Yes')); self::$categoryType = array('auto' => $this->l('Auto'), 'manual' => $this->l('Manual')); self::$features = array('seller' => $this->l('Best Sellers'), 'view' => $this->l('Most View'), 'review' => $this->l('Most Review'), 'rate' => $this->l('Most rates'), 'special' => $this->l('Specials'), 'arrival' => $this->l('New Arrivals')); $this->arrType = array('saller' => $this->l('Best Sellers'), 'view' => $this->l('Most View'), 'special' => $this->l('Specials'), 'arrival' => $this->l('New Arrivals')); $this->secure_key = Tools::encrypt('ovic-soft[group-category]' . $this->name); $this->imageHomeSize = Image::getSize(ImageType::getFormatedName('home')); $this->arrLayout = array('default' => $this->l('Layout [default]')); $this->pathTemp = dirname(__FILE__) . '/images/temps/'; $this->pathBanner = dirname(__FILE__) . '/images/banners/'; $this->pathIcon = dirname(__FILE__) . '/images/icons/'; if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") { $this->livePath = _PS_BASE_URL_SSL_ . __PS_BASE_URI__ . 'modules/groupcategory/images/'; } else { $this->livePath = _PS_BASE_URL_ . __PS_BASE_URI__ . 'modules/groupcategory/images/'; } $this->pathImage = dirname(__FILE__) . '/images/'; if (Configuration::get('PS_SSL_ENABLED')) { $this->liveImage = _PS_BASE_URL_SSL_ . __PS_BASE_URI__ . 'modules/' . $this->name . '/images/'; } else { $this->liveImage = _PS_BASE_URL_ . __PS_BASE_URI__ . 'modules/' . $this->name . '/images/'; } $this->tab = 'front_office_features'; $this->version = '2.0'; $this->author = 'OvicSoft'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Supershop - Group Category Module'); $this->description = $this->l('Group Category Module'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); if (_PS_CACHE_ENABLED_) { $this->cache = Cache::getInstance(); } }