product->id_category_default; $sale = Sale::getSaleFromCategory($id_category); self::$smarty->assign(array( 'sale' => $sale, 'HOOK_PRIVATESALES_PRODUCT' => Module::hookExec('privatesales_product', array('sale' => $sale)), 'is_sale_home' => ($sale? $sale->id_category == $id_category: FALSE), )); } $bestSaleCart = Module::hookExec('bestSaleCart'); self::$smarty->assign(array( 'bestSaleCart' => $bestSaleCart, 'product' => $this->product, 'coverImage' => Product::getCover($this->product->id), )); } public function setMedia() { parent::setMedia(); global $css_files; $css_files = array_slice($css_files, 0, 1); } }