Exemplo n.º 1
0
 public function __construct()
 {
     $this->name = 'moussiqfree';
     $this->tab = 'Silbersaiten';
     $this->version = '1.5.4.1';
     $this->module_key = "165500ec94ed911a9e584c098e0ebe0b";
     parent::__construct();
     $this->displayName = $this->l('Moussiq FREE');
     $this->description = $this->l('Exports your products into a csv file for various price comparison engines');
     self::$_miscTranslations = array('new' => $this->l('New'), 'used' => $this->l('Used'), 'refurbished' => $this->l('Refurbished'));
 }
Exemplo n.º 2
0
 public static function getSpecificPrices($id_shop = 0)
 {
     $prices = array();
     if (MoussiqFree::tableExists(_DB_PREFIX_ . 'specific_price')) {
         $result = Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'specific_price` WHERE `id_shop` IN (0, ' . (int) $id_shop . ')');
         if ($result && sizeof($result)) {
             foreach ($result as $specificPrice) {
                 if (!array_key_exists($specificPrice['id_product'], $prices)) {
                     $prices[$specificPrice['id_product']] = array();
                 }
                 array_push($prices[$specificPrice['id_product']], $specificPrice);
             }
             return $prices;
         }
     }
     return $prices;
 }