[+] Project : adding Features detachables in order to improve performance

// clean code
This commit is contained in:
aFolletete
2011-09-03 17:21:32 +00:00
parent a4491c9897
commit 230bebc7c7
51 changed files with 1081 additions and 419 deletions
+6
View File
@@ -307,6 +307,9 @@ class SearchCore
public static function getAttributes($db, $id_product, $id_lang)
{
if (!Cobmination::isFeatureActive())
return '';
$attributes = '';
$attributesArray = $db->ExecuteS('
SELECT al.name FROM '._DB_PREFIX_.'product_attribute pa
@@ -320,6 +323,9 @@ class SearchCore
public static function getFeatures($db, $id_product, $id_lang)
{
if (!Feature::isFeatureActive())
return '';
$features = '';
$featuresArray = $db->ExecuteS('
SELECT fvl.value FROM '._DB_PREFIX_.'feature_product fp