[*] FO : lots of performance improvements (removed or merged useless SQL queries)

This commit is contained in:
Damien Metzger
2013-07-19 10:58:51 +02:00
parent 219ec6e8be
commit bd4ece095b
4 changed files with 74 additions and 48 deletions
+7
View File
@@ -70,6 +70,13 @@ class GroupCore extends ObjectModel
protected $webserviceParameters = array();
public function __construct($id = null, $id_lang = null, $id_shop = null)
{
parent::__construct($id, $id_lang, $id_shop);
if ($this->id && !isset(Group::$group_price_display_method[$this->id]))
self::$group_price_display_method[$this->id] = $this->price_display_method;
}
public static function getGroups($id_lang, $id_shop = false)
{
$shop_criteria = '';