GENTLE MONSTER - LANG

GENTLE MONSTER - LANG

Prix 175,00 €
GENTLE MONSTER - LANG

GENTLE MONSTER - LANG

Prix 175,00 €
GENTLE MONSTER - MYMA

GENTLE MONSTER - MYMA

Prix 175,00 €
GENTLE MONSTER - MYMA

GENTLE MONSTER - MYMA

Prix 175,00 €
GENTLE MONSTER - MYMA

GENTLE MONSTER - MYMA

Prix 175,00 €
GENTLE MONSTER - MYMA

GENTLE MONSTER - MYMA

Prix 175,00 €
GENTLE MONSTER - MYMA

GENTLE MONSTER - MYMA

Prix 175,00 €
GENTLE MONSTER - DREAMER 17 01

GENTLE MONSTER - DREAMER 17 01

Prix 175,00 €
GENTLE MONSTER - DREAMER 17 T1

GENTLE MONSTER - DREAMER 17 T1

Prix 175,00 €
GENTLE MONSTER - SOLO

GENTLE MONSTER - SOLO

Prix 175,00 €
GENTLE MONSTER - CHAPSSAL

GENTLE MONSTER - CHAPSSAL

Prix 175,00 €
GENTLE MONSTER - JACKBYE

GENTLE MONSTER - JACKBYE

Prix 175,00 €
GENTLE MONSTER - BLACK PETER

GENTLE MONSTER - BLACK PETER

Prix 175,00 €
GENTLE MONSTER - JACK HI

GENTLE MONSTER - JACK HI

Prix 175,00 €
GENTLE MONSTER - HER

GENTLE MONSTER - HER

Prix 183,33 €
Load Time831 ms - OK... for a shared hosting
Querying Time157 ms
Queries676
Memory Peak Usage50.2 Mb
Included Files748 files - 9.60 Mb
PrestaShop Cache- Mb
Global vars0.71 Mb
PrestaShop Version1.7.6.5
PHP Version7.2.34-8+0~20201103.52+debian9~1.gbpafa084 (OK)
MySQL Version10.2.36-MariaDB-10.2.36+maria~stretch-log (OK)
Memory Limit1024M
Max Execution Time0s
Smarty Cachedisabled
Smarty Compilationforce compile
 TimeCumulated TimeMemory UsageMemory Peak Usage
config 81 ms 81 ms 16.04 Mb 16.08 Mb
__construct 0 ms 81 ms - Mb 16.08 Mb
init 48 ms 130 ms 5.63 Mb 22.55 Mb
checkAccess 0 ms 130 ms - Mb 22.55 Mb
setMedia 5 ms 135 ms 0.56 Mb 22.55 Mb
postProcess 0 ms 135 ms - Mb 22.55 Mb
initHeader 0 ms 135 ms - Mb 22.55 Mb
initContent 211 ms 346 ms 14.58 Mb 36.86 Mb
initFooter 1 ms 347 ms 0.12 Mb 36.95 Mb
display 485 ms 831 ms 13.06 Mb 50.22 Mb
Hook Time Memory Usage
0 hooks - ms - Mb
Module Time Memory Usage
0 modules - ms - Mb

Stopwatch SQL - 676 queries

Query Time (ms) Rows Filesort Group By Location
SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) AS quantity, IFNULL(product_attribute_shop.id_product_attribute, 0) AS id_product_attribute,
product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, pl.`description`, pl.`description_short`, pl.`available_now`,
pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, image_shop.`id_image` id_image,
il.`legend` as legend, m.`name` AS manufacturer_name, cl.`name` AS category_default,
DATEDIFF(product_shop.`date_add`, DATE_SUB("2020-12-02 00:00:00",
INTERVAL 20 DAY)) > 0 AS new, product_shop.price AS orderprice
FROM `ps_category_product` cp
LEFT JOIN `ps_product` p
ON p.`id_product` = cp.`id_product`
INNER JOIN ps_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1) LEFT JOIN `ps_product_attribute_shop` product_attribute_shop
ON (p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1)
LEFT JOIN ps_stock_available stock
ON (stock.id_product = `p`.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
LEFT JOIN `ps_category` c ON (c.`id_category` = cp.`id_category`
AND c.nleft >= 17 AND c.nright <= 18)
LEFT JOIN `ps_category_lang` cl
ON (product_shop.`id_category_default` = cl.`id_category`
AND cl.`id_lang` = 1 AND cl.id_shop = 1 )
LEFT JOIN `ps_product_lang` pl
ON (p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 1 AND pl.id_shop = 1 )
LEFT JOIN `ps_image_shop` image_shop
ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
LEFT JOIN `ps_image_lang` il
ON (image_shop.`id_image` = il.`id_image`
AND il.`id_lang` = 1)
LEFT JOIN `ps_manufacturer` m
ON m.`id_manufacturer` = p.`id_manufacturer`
WHERE c.id_category > 0
AND product_shop.`id_shop` = 1 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") GROUP BY cp.id_product ORDER BY m.`name` ASC
LIMIT 0,15
7.8 863 Yes Yes /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE s.`seo_key`, s.`id_seo`, sl.`seo_url`
FROM `ps_pm_advancedsearch_seo` s
JOIN `ps_pm_advancedsearch_seo_lang` sl ON (s.`id_seo`=sl.`id_seo` AND sl.`id_lang`=1)
WHERE s.`seo_key` IN ("768a67cab59c0c17e5498c28c9c0056f","f23cd42cc0f5417bbc5891065b567045","faacc185c8a559428eb862acb0f0fe49","400434d7fc88484ccf5159033ded769a")
AND s.`deleted`=0
3.6 1 /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
FROM `ps_configuration` c
LEFT JOIN `ps_configuration_lang` cl ON (c.`id_configuration` = cl.`id_configuration`)
2.2 1258 /classes/Configuration.php:160
SELECT SQL_NO_CACHE ac.*, aclink.`id_criterion_linked` , acl.id_lang, acl.icon, acl.`value`, acl.`decimal_value`, (COUNT(DISTINCT acpc3.`id_cache_product`)) AS nb_product
FROM `ps_pm_advancedsearch_criterion_1` ac
JOIN `ps_pm_advancedsearch_criterion_1_link` aclink ON (ac.`id_criterion` = aclink.`id_criterion`)
JOIN `ps_pm_advancedsearch_criterion_1_list` aclist ON (ac.`id_criterion` = aclist.`id_criterion_parent`)
LEFT JOIN `ps_pm_advancedsearch_criterion_1_lang` acl ON (ac.`id_criterion` = acl.`id_criterion` AND acl.`id_lang` = 1)JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc ON (aclist.`id_criterion` = acpc.`id_criterion`)
LEFT JOIN `ps_pm_advancedsearch_cache_product_1` acp ON (acp.`id_cache_product` = acpc.`id_cache_product`)
JOIN `ps_product_shop` ps ON (
ps.id_shop IN (1)
AND ps.`id_product` = acp.`id_product`
)
JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc3 ON ( acp.`id_cache_product` = acpc3.`id_cache_product` AND acpc3.`id_criterion` IN (70)) WHERE ps.`active` = 1
AND ps.`visibility` IN ("both", "search")
AND ac.`id_criterion_group` = 6
AND ac.`visible` = 1 GROUP BY ac.`id_criterion`
ORDER BY `position` ASC
1.7 72 Yes /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE ac.*, aclink.`id_criterion_linked` , acl.id_lang, acl.icon, acl.`value`, acl.`decimal_value`, (COUNT(DISTINCT acpc3.`id_cache_product`)) AS nb_product
FROM `ps_pm_advancedsearch_criterion_1` ac
JOIN `ps_pm_advancedsearch_criterion_1_link` aclink ON (ac.`id_criterion` = aclink.`id_criterion`)
JOIN `ps_pm_advancedsearch_criterion_1_list` aclist ON (ac.`id_criterion` = aclist.`id_criterion_parent`)
LEFT JOIN `ps_pm_advancedsearch_criterion_1_lang` acl ON (ac.`id_criterion` = acl.`id_criterion` AND acl.`id_lang` = 1)JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc ON (aclist.`id_criterion` = acpc.`id_criterion`)
LEFT JOIN `ps_pm_advancedsearch_cache_product_1` acp ON (acp.`id_cache_product` = acpc.`id_cache_product`)
JOIN `ps_product_shop` ps ON (
ps.id_shop IN (1)
AND ps.`id_product` = acp.`id_product`
)
JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc3 ON ( acp.`id_cache_product` = acpc3.`id_cache_product` AND acpc3.`id_criterion` IN (70)) WHERE ps.`active` = 1
AND ps.`visibility` IN ("both", "search")
AND ac.`id_criterion_group` = 7
AND ac.`visible` = 1 GROUP BY ac.`id_criterion`
ORDER BY `position` ASC
1.7 72 Yes /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE cl.*,c.*, cl.`name` country, z.`name` zone
FROM `ps_country` c  INNER JOIN ps_country_shop country_shop
ON (country_shop.id_country = c.id_country AND country_shop.id_shop = 1)
LEFT JOIN `ps_country_lang` cl ON (c.`id_country` = cl.`id_country` AND cl.`id_lang` = 1)
LEFT JOIN `ps_zone` z ON (z.`id_zone` = c.`id_zone`)
WHERE 1
ORDER BY cl.name ASC
1.2 244 Yes /classes/Country.php:147
SELECT SQL_NO_CACHE h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module
FROM `ps_module` m
INNER JOIN ps_module_shop module_shop
ON (module_shop.id_module = m.id_module AND module_shop.id_shop = 1 AND module_shop.enable_device & 1)
INNER JOIN `ps_module_shop` `ms` ON ms.`id_module` = m.`id_module`
INNER JOIN `ps_hook_module` `hm` ON hm.`id_module` = m.`id_module`
INNER JOIN `ps_hook` `h` ON hm.`id_hook` = h.`id_hook`
LEFT JOIN `ps_module_group` `mg` ON mg.`id_module` = m.`id_module`
WHERE (h.`name` != "paymentOptions") AND (hm.`id_shop` = 1) AND (mg.id_shop = 1 AND  mg.`id_group` IN (1))
GROUP BY hm.id_hook, hm.id_module
ORDER BY hm.`position`
1.1 156 Yes Yes /override/classes/Hook.php:185
SELECT SQL_NO_CACHE ac.*, aclink.`id_criterion_linked` , acl.id_lang, acl.icon, acl.`value`, acl.`decimal_value`, (COUNT(DISTINCT acpc3.`id_cache_product`)) AS nb_product
FROM `ps_pm_advancedsearch_criterion_1` ac
JOIN `ps_pm_advancedsearch_criterion_1_link` aclink ON (ac.`id_criterion` = aclink.`id_criterion`)
JOIN `ps_pm_advancedsearch_criterion_1_list` aclist ON (ac.`id_criterion` = aclist.`id_criterion_parent`)
LEFT JOIN `ps_pm_advancedsearch_criterion_1_lang` acl ON (ac.`id_criterion` = acl.`id_criterion` AND acl.`id_lang` = 1)JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc ON (aclist.`id_criterion` = acpc.`id_criterion`)
LEFT JOIN `ps_pm_advancedsearch_cache_product_1` acp ON (acp.`id_cache_product` = acpc.`id_cache_product`)
JOIN `ps_product_shop` ps ON (
ps.id_shop IN (1)
AND ps.`id_product` = acp.`id_product`
)
JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc3 ON ( acp.`id_cache_product` = acpc3.`id_cache_product` AND acpc3.`id_criterion` IN (70)) WHERE ps.`active` = 1
AND ps.`visibility` IN ("both", "search")
AND ac.`id_criterion_group` = 5
AND ac.`visible` = 1 GROUP BY ac.`id_criterion`
ORDER BY `position` ASC
0.9 180 Yes /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE h.id_hook, h.name as h_name, title, description, h.position, hm.position as hm_position, m.id_module, m.name, active
FROM `ps_hook_module` hm
STRAIGHT_JOIN `ps_hook` h ON (h.id_hook = hm.id_hook AND hm.id_shop = 1)
STRAIGHT_JOIN `ps_module` as m ON (m.id_module = hm.id_module)
ORDER BY hm.position
0.9 327 /classes/Hook.php:407
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 998 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 998)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.9 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 984 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 984)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.8 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE `id_hook`, `name`
FROM `ps_hook`
UNION
SELECT `id_hook`, ha.`alias` as name
FROM `ps_hook_alias` ha
INNER JOIN `ps_hook` h ON ha.name = h.name
0.8 0 /classes/Hook.php:194
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 993 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 993)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.8 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 986 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 986)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.8 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 996 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 996)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE ac.*, aclink.`id_criterion_linked` , acl.id_lang, acl.icon, acl.`value`, acl.`decimal_value`, (COUNT(DISTINCT acpc3.`id_cache_product`)) AS nb_product
FROM `ps_pm_advancedsearch_criterion_1` ac
JOIN `ps_pm_advancedsearch_criterion_1_link` aclink ON (ac.`id_criterion` = aclink.`id_criterion`)
JOIN `ps_pm_advancedsearch_criterion_1_list` aclist ON (ac.`id_criterion` = aclist.`id_criterion_parent`)
LEFT JOIN `ps_pm_advancedsearch_criterion_1_lang` acl ON (ac.`id_criterion` = acl.`id_criterion` AND acl.`id_lang` = 1)JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc ON (aclist.`id_criterion` = acpc.`id_criterion`)
LEFT JOIN `ps_pm_advancedsearch_cache_product_1` acp ON (acp.`id_cache_product` = acpc.`id_cache_product`)
JOIN `ps_product_shop` ps ON (
ps.id_shop IN (1)
AND ps.`id_product` = acp.`id_product`
)
JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc3 ON ( acp.`id_cache_product` = acpc3.`id_cache_product` AND acpc3.`id_criterion` IN (70)) WHERE ps.`active` = 1
AND ps.`visibility` IN ("both", "search")
AND ac.`id_criterion_group` = 8
AND ac.`visible` = 1 GROUP BY ac.`id_criterion`
ORDER BY `position` ASC
0.7 108 Yes /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 995 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 995)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 988 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 988)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 997 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 997)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 994 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 994)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 991 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 991)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 985 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 985)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 992 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 992)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 987 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 987)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 990 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 990)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.7 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
(SELECT SQL_NO_CACHE * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`id_customer` = 0  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%") UNION (SELECT * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`group_restriction` = 1  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%")
0.7 1 /classes/CartRule.php:401
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, p.priority, p.id_shop, IFNULL(p.start_date, "") as start_date, IFNULL(p.end_date, "") as end_date,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) LEFT JOIN ps_productlabel_item as i ON i.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE ((i.id_item = 989 AND i.type_item = "Product") OR
(i.id_item = 14 AND i.type_item = "Category") OR
(i.type_item = "Category" AND i.id_item = (SELECT DISTINCT(cp.id_category) FROM ps_category_product as cp
WHERE cp.id_category = i.id_item AND cp.id_product = 989)))
AND p.status = 1
AND p.id_shop = 1
AND ((start_date <= "2020-12-02" OR start_date = "0000-00-00")
AND (end_date >= "2020-12-02" OR end_date = "0000-00-00"))
ORDER BY p.priority ASC LIMIT 1
0.6 8 Yes /modules/productlabel/classes/ProductLabelDAO.php:651
(SELECT SQL_NO_CACHE * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`id_customer` = 0  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%") UNION (SELECT * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`group_restriction` = 1  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%")
0.6 1 /classes/CartRule.php:401
(SELECT SQL_NO_CACHE * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`id_customer` = 0  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%") UNION (SELECT * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`group_restriction` = 1  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%")
0.6 1 /classes/CartRule.php:401
(SELECT SQL_NO_CACHE * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`id_customer` = 0  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%") UNION (SELECT * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`group_restriction` = 1  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%")
0.6 1 /classes/CartRule.php:401
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.6 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.6 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.6 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.6 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.6 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.6 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE * FROM `ps_state` ORDER BY `name` ASC
0.6 324 Yes /classes/Country.php:154
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (984) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
(SELECT SQL_NO_CACHE * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`id_customer` = 0  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%") UNION (SELECT * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`group_restriction` = 1  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND cr.`quantity` > 0 AND highlight = 1 AND code NOT LIKE "BO_ORDER_%")
0.5 1 /classes/CartRule.php:401
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (996) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (995) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
(SELECT SQL_NO_CACHE * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`id_customer` = 0  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND free_shipping = 1 AND carrier_restriction = 1) UNION (SELECT * FROM `ps_cart_rule` cr
LEFT JOIN `ps_cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = 1) WHERE cr.`group_restriction` = 1  AND NOW() BETWEEN cr.date_from AND cr.date_to
AND cr.`active` = 1
AND free_shipping = 1 AND carrier_restriction = 1)
0.5 1 /classes/CartRule.php:401
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (997) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, GROUP_CONCAT(CONCAT(a.attribute, ",", a.attribute_value) separator ";") as attr, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 3
AND p.status = 1
AND p.id_shop = 1
GROUP BY p.id_product_label
ORDER BY p.priority ASC, p.id_product_label DESC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:812
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (991) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (994) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (992) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE c.*, cl.*
FROM `ps_category` c
INNER JOIN ps_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `ps_category_lang` cl ON c.`id_category` = cl.`id_category` AND cl.id_shop = 1 
LEFT JOIN `ps_category_group` cg ON c.`id_category` = cg.`id_category`
RIGHT JOIN `ps_category` c2 ON c2.`id_category` = 12 AND c.`nleft` >= c2.`nleft` AND c.`nright` <= c2.`nright`
WHERE 1  AND `id_lang` = 1
AND c.`active` = 1
AND cg.`id_group` IN (1)
GROUP BY c.`id_category`
ORDER BY c.`level_depth` ASC
, category_shop.`position` ASC
0.5 4 Yes Yes /classes/Category.php:783
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.5 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (993) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.5 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (998) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite
FROM `ps_category` c
INNER JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND cl.`id_lang` = 1 AND cl.id_shop = 1 )
INNER JOIN `ps_category_shop` cs ON (cs.`id_category` = c.`id_category` AND cs.`id_shop` = 1)
WHERE (c.`active` = 1 OR c.`id_category` = 2)
AND c.`id_category` != 1
AND `level_depth` <= 6
AND nleft >= 17 AND nright <= 18
AND c.id_category IN (
SELECT id_category
FROM `ps_category_group`
WHERE `id_group` IN (1)
)
ORDER BY `level_depth` ASC, cs.`position` ASC
0.4 18 Yes /modules/ps_categorytree/ps_categorytree.php:117
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE s.id_store AS `id`, s.*, sl.*
FROM ps_store s
INNER JOIN ps_store_shop store_shop
ON (store_shop.id_store = s.id_store AND store_shop.id_shop = 1)
LEFT JOIN ps_store_lang sl ON (
sl.id_store = s.id_store
AND sl.id_lang = 1
)
WHERE s.active = 1 ORDER BY sl.positions
0.4 18 Yes /classes/Store.php:153
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (986) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (985) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (987) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 990
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.4 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (990) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color FROM ps_productlabel as p LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 2
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:696
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE p.id_product_label, p.id_type, a.attribute, a.attribute_value, p.priority, p.id_shop,
IFNULL(lt.text_content, IFNULL(lt2.text_content, NULL)) as label_text_content,
l.bg_color as label_bg_color, l.text_font as label_text_font, l.text_color as label_text_color,
l.text_size as label_text_size, l.position as label_position, l.is_resize as label_is_resize,
IFNULL(ba.id_background, IFNULL(ba2.id_background, NULL)) as id_background,
IFNULL(ba.image, IFNULL(ba2.image, NULL)) as image,
IFNULL(ba.is_perso, IFNULL(ba2.is_perso, NULL)) as is_perso,
IFNULL(ba.id_lang, IFNULL(ba2.id_lang, NULL)) as id_lang , bt.id_lang, IFNULL(bt.text_content, IFNULL(bt2.text_content, NULL)) as banner_text_content,
b.text_color as banner_text_color, b.bg_color as banner_bg_color
FROM ps_productlabel as p
LEFT JOIN ps_productlabel_banner as b ON b.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_banner_text as bt ON (bt.id_banner = b.id_banner AND bt.id_lang = 1)
LEFT JOIN ps_productlabel_banner_text as bt2 ON (bt2.id_banner = b.id_banner AND bt2.id_lang = 1) RIGHT JOIN ps_productlabel_attribute as a ON a.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label as l ON l.id_product_label = p.id_product_label
LEFT JOIN ps_productlabel_label_text as lt ON (lt.id_label = l.id_label AND lt.id_lang = 1)
LEFT JOIN ps_productlabel_label_text as lt2 ON (lt2.id_label = l.id_label AND lt2.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba ON (ba.id_label = l.id_label AND ba.id_lang = 1)
LEFT JOIN ps_productlabel_background as ba2 ON (ba2.id_label = l.id_label AND ba2.id_lang = 1)
WHERE p.id_type = 5
AND p.status = 1
AND p.id_shop = 1
ORDER BY p.priority ASC LIMIT 1
0.4 4 Yes /modules/productlabel/classes/ProductLabelDAO.php:754
SELECT SQL_NO_CACHE hs.`id_tab` as id_tab, hssl.`title`, hssl.`label`, hssl.`url`,
hss.`position`,  hss.`active_label`, hss.`url_type`, hss.`id_url`, hss.`icon_type`, hss.`icon_class`, hss.`icon`, hss.`legend_icon`,
hss.`new_window`, hss.`float`, hss.`submenu_type`, hss.`submenu_content`, hss.`submenu_width`, hss.`group_access`
FROM ps_iqitmegamenu_tabs_shop hs
LEFT JOIN ps_iqitmegamenu_tabs hss ON (hs.id_tab = hss.id_tab)
LEFT JOIN ps_iqitmegamenu_tabs_lang hssl ON (hss.id_tab = hssl.id_tab)
WHERE id_shop = 1 AND menu_type = 1 AND active = 1
AND hssl.id_lang = 1
ORDER BY hss.position
0.4 8 Yes /modules/iqitmegamenu/models/IqitMenuTab.php:178
SELECT SQL_NO_CACHE m.page, ml.url_rewrite, ml.id_lang
FROM `ps_meta` m
LEFT JOIN `ps_meta_lang` ml ON (m.id_meta = ml.id_meta AND ml.id_shop = 1 )
ORDER BY LENGTH(ml.url_rewrite) DESC
0.4 51 Yes /classes/Dispatcher.php:640
SELECT SQL_NO_CACHE c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description`
FROM `ps_category` c
INNER JOIN ps_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1  AND cl.id_shop = 1 )
LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`)
WHERE `id_parent` = 14
AND `active` = 1
AND cg.`id_group` =1
GROUP BY c.`id_category`
ORDER BY `level_depth` ASC, category_shop.`position` ASC
0.4 1 Yes Yes /classes/Category.php:909
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (984) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (996) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (989) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (997) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE c.*, cl.*
FROM `ps_category` c
INNER JOIN ps_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `ps_category_lang` cl ON c.`id_category` = cl.`id_category` AND cl.id_shop = 1 
LEFT JOIN `ps_category_group` cg ON c.`id_category` = cg.`id_category`
RIGHT JOIN `ps_category` c2 ON c2.`id_category` = 11 AND c.`nleft` >= c2.`nleft` AND c.`nright` <= c2.`nright`
WHERE 1  AND `id_lang` = 1
AND c.`active` = 1
AND cg.`id_group` IN (1)
GROUP BY c.`id_category`
ORDER BY c.`level_depth` ASC
, category_shop.`position` ASC
0.4 5 Yes Yes /classes/Category.php:783
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (988) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (992) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (994) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (995) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (991) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.4 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE COUNT(DISTINCT cp.`id_product`) AS total
FROM `ps_product` p
INNER JOIN ps_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN `ps_category_product` cp ON p.`id_product` = cp.`id_product`
LEFT JOIN `ps_category` c ON (c.`id_category` = cp.`id_category`
AND c.nleft >= 17 AND c.nright <= 18)
WHERE c.id_category > 0  AND product_shop.`visibility` IN ("both", "catalog") AND product_shop.`active` = 1 LIMIT 1
0.4 936 /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:49
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 985
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE COUNT(DISTINCT acp.`id_product`) as total
FROM `ps_pm_advancedsearch_cache_product_1` acp
JOIN `ps_product_shop` ps ON (
ps.id_shop IN (1)
AND ps.`id_product` = acp.`id_product`
)
JOIN `ps_pm_advancedsearch_cache_product_criterion_1` acpc3 ON ( acp.`id_cache_product` = acpc3.`id_cache_product` AND acpc3.`id_criterion` IN (70))
LEFT JOIN `ps_tax_rule` tr ON (ps.`id_tax_rules_group` = tr.`id_tax_rules_group` AND tr.`id_country` = 21 AND tr.`id_state` = 0)
LEFT JOIN `ps_tax` t ON (t.`id_tax` = tr.`id_tax`)
LEFT JOIN `ps_group_reduction` grc ON (grc.`id_group`=1 AND ps.`id_category_default` = grc.`id_category`)WHERE ps.`active` = 1
AND ps.`visibility` IN ("both", "search") LIMIT 1
0.3 36 /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:47
SELECT SQL_NO_CACHE m.`id_module`, m.`name`, ms.`id_module`as `mshop`
FROM `ps_module` m
LEFT JOIN `ps_module_shop` ms
ON m.`id_module` = ms.`id_module`
AND ms.`id_shop` = 1
0.3 75 /classes/module/Module.php:307
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 996
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (993) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE c.*, cl.*
FROM `ps_category` c
INNER JOIN ps_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `ps_category_lang` cl ON c.`id_category` = cl.`id_category` AND cl.id_shop = 1 
LEFT JOIN `ps_category_group` cg ON c.`id_category` = cg.`id_category`
RIGHT JOIN `ps_category` c2 ON c2.`id_category` = 10 AND c.`nleft` >= c2.`nleft` AND c.`nright` <= c2.`nright`
WHERE 1  AND `id_lang` = 1
AND c.`active` = 1
AND cg.`id_group` IN (1)
GROUP BY c.`id_category`
ORDER BY c.`level_depth` ASC
, category_shop.`position` ASC
0.3 4 Yes Yes /classes/Category.php:783
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (998) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 993
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 991
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 986
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 998
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE *
FROM `ps_pm_advancedsearch` a
LEFT JOIN `ps_pm_advancedsearch_shop` `c` ON a.`id_search` = c.`id_search` AND c.`id_shop` = 1
WHERE (a.`id_search` = 1) LIMIT 1
0.3 1 /src/Adapter/EntityMapper.php:75
SELECT SQL_NO_CACHE c.*, cl.*
FROM `ps_category` c
INNER JOIN ps_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `ps_category_lang` cl ON c.`id_category` = cl.`id_category` AND cl.id_shop = 1 
LEFT JOIN `ps_category_group` cg ON c.`id_category` = cg.`id_category`
RIGHT JOIN `ps_category` c2 ON c2.`id_category` = 14 AND c.`nleft` >= c2.`nleft` AND c.`nright` <= c2.`nright`
WHERE 1  AND `id_lang` = 1
AND c.`active` = 1
AND cg.`id_group` IN (1)
GROUP BY c.`id_category`
ORDER BY c.`level_depth` ASC
, category_shop.`position` ASC
0.3 3 Yes Yes /classes/Category.php:783
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (985) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (990) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (986) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (987) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 987
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 988
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 995
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (988) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE hs.`id_tab` as id_tab, hssl.`title`, hssl.`label`, hssl.`url`,
hss.`position`,  hss.`active_label`, hss.`url_type`, hss.`id_url`, hss.`icon_type`, hss.`icon_class`, hss.`icon`, hss.`legend_icon`,
hss.`new_window`, hss.`float`, hss.`submenu_type`, hss.`submenu_content`, hss.`submenu_width`, hss.`group_access`
FROM ps_iqitmegamenu_tabs_shop hs
LEFT JOIN ps_iqitmegamenu_tabs hss ON (hs.id_tab = hss.id_tab)
LEFT JOIN ps_iqitmegamenu_tabs_lang hssl ON (hss.id_tab = hssl.id_tab)
WHERE id_shop = 1 AND menu_type = 1 AND active = 1
AND hssl.id_lang = 1
ORDER BY hss.position
0.3 8 Yes /modules/iqitmegamenu/models/IqitMenuTab.php:178
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 997
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.`id_product`, a.`color`, pac.`id_product_attribute`, SUM(IF(stock.`quantity` > 0, 1, 0)) qty, a.`id_attribute`, al.`name`, IF(color = "", a.id_attribute, color) group_by
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1) LEFT JOIN ps_stock_available stock
ON (stock.id_product = `pa`.id_product AND stock.id_product_attribute = IFNULL(`pa`.id_product_attribute, 0) AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
JOIN `ps_product_attribute_combination` pac ON (pac.`id_product_attribute` = product_attribute_shop.`id_product_attribute`)
JOIN `ps_attribute` a ON (a.`id_attribute` = pac.`id_attribute`)
JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
JOIN `ps_attribute_group` ag ON (a.id_attribute_group = ag.`id_attribute_group`)
WHERE pa.`id_product` IN (989) AND ag.`is_color_group` = 1
GROUP BY pa.`id_product`, a.`id_attribute`, `group_by`
HAVING qty > 0
ORDER BY a.`position` ASC;
0.3 1 Yes /classes/Product.php:3887
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 994
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 992
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 989
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE m.`id_module`, m.`name`, ms.`id_module`as `mshop`
FROM `ps_module` m
LEFT JOIN `ps_module_shop` ms
ON m.`id_module` = ms.`id_module`
AND ms.`id_shop` = 1
0.3 75 /classes/module/Module.php:307
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 984 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 984 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.3 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE m.`id_module`, m.`name`, ms.`id_module`as `mshop`
FROM `ps_module` m
LEFT JOIN `ps_module_shop` ms
ON m.`id_module` = ms.`id_module`
AND ms.`id_shop` = 1
0.3 75 /classes/module/Module.php:307
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 998 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 998 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.3 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE m.`id_module`, m.`name`, ms.`id_module`as `mshop`
FROM `ps_module` m
LEFT JOIN `ps_module_shop` ms
ON m.`id_module` = ms.`id_module`
AND ms.`id_shop` = 1
0.3 75 /classes/module/Module.php:307
SELECT SQL_NO_CACHE *
FROM `ps_category` a
LEFT JOIN `ps_category_lang` `b` ON a.`id_category` = b.`id_category` AND b.`id_lang` = 1
LEFT JOIN `ps_category_shop` `c` ON a.`id_category` = c.`id_category` AND c.`id_shop` = 1
WHERE (a.`id_category` = 2) AND (b.`id_shop` = 1) LIMIT 1
0.3 1 /src/Adapter/EntityMapper.php:75
SELECT SQL_NO_CACHE l.id_iqitmenulinks, l.new_window, s.name, ll.link, ll.label
FROM ps_iqitmenulinks l
LEFT JOIN ps_iqitmenulinks_lang ll ON (l.id_iqitmenulinks = ll.id_iqitmenulinks AND ll.id_lang = 1 AND ll.id_shop=1)
LEFT JOIN ps_shop s ON l.id_shop = s.id_shop
WHERE 1  AND l.id_iqitmenulinks = "9"
AND l.id_shop IN (0, 1)
0.3 1 /modules/iqitmegamenu/models/IqitMenuLinks.php:25
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 991
0.3 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE *
FROM `ps_cms` a
LEFT JOIN `ps_cms_lang` `b` ON a.`id_cms` = b.`id_cms` AND b.`id_lang` = 1
LEFT JOIN `ps_cms_shop` `c` ON a.`id_cms` = c.`id_cms` AND c.`id_shop` = 1
WHERE (a.`id_cms` = 4) AND (b.`id_shop` = 1) LIMIT 1
0.3 1 /src/Adapter/EntityMapper.php:75
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 990
0.3 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 985
0.3 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE pa.*, product_attribute_shop.*, ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, al.`name` AS attribute_name,
a.`id_attribute`
FROM `ps_product_attribute` pa
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_product_attribute_combination` pac ON pac.`id_product_attribute` = pa.`id_product_attribute`
LEFT JOIN `ps_attribute` a ON a.`id_attribute` = pac.`id_attribute`
LEFT JOIN `ps_attribute_group` ag ON ag.`id_attribute_group` = a.`id_attribute_group`
LEFT JOIN `ps_attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 984
GROUP BY pa.`id_product_attribute`,ag.`id_attribute_group`
ORDER BY pa.`id_product_attribute`
0.3 1 Yes Yes /classes/Product.php:2397
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 987
0.3 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE `related_products` FROM `ps_colorrelatedproduct` WHERE id_product = '' LIMIT 1
0.3 457 /modules/colorrelatedproduct/colorrelatedproduct.php:427
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 1230
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 989 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 1230
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 989 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.3 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 1237
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 996 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 1237
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 996 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.3 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 986 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 986 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.2 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 993
0.2 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 997 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 997 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.2 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 994
0.2 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE *
FROM `ps_product` a
LEFT JOIN `ps_product_lang` `b` ON a.`id_product` = b.`id_product` AND b.`id_lang` = 1
LEFT JOIN `ps_product_shop` `c` ON a.`id_product` = c.`id_product` AND c.`id_shop` = 1
WHERE (a.`id_product` = 984) AND (b.`id_shop` = 1) LIMIT 1
0.2 1 /src/Adapter/EntityMapper.php:75
SELECT SQL_NO_CACHE a.`id_attribute`, a.`id_attribute_group`, al.`name`, agl.`name` as `group`, pa.`reference`, pa.`ean13`, pa.`isbn`,pa.`upc`
FROM `ps_attribute` a
LEFT JOIN `ps_attribute_lang` al
ON (al.`id_attribute` = a.`id_attribute` AND al.`id_lang` = 1)
LEFT JOIN `ps_product_attribute_combination` pac
ON (pac.`id_attribute` = a.`id_attribute`)
LEFT JOIN `ps_product_attribute` pa
ON (pa.`id_product_attribute` = pac.`id_product_attribute`)
INNER JOIN ps_product_attribute_shop product_attribute_shop
ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1)
LEFT JOIN `ps_attribute_group_lang` agl
ON (a.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = 1)
WHERE pa.`id_product` = 998
AND pac.`id_product_attribute` = 1
AND agl.`id_lang` = 1
0.2 0 /classes/Product.php:6258
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 998
0.2 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
FROM ps_shop_url su
LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop)
WHERE (su.domain = 'www.marclebihan.fr' OR su.domain_ssl = 'www.marclebihan.fr')
AND s.active = 1
AND s.deleted = 0
ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
0.2 1 Yes /classes/shop/Shop.php:345
SELECT SQL_NO_CACHE *
FROM `ps_category` a0
LEFT JOIN `ps_category_lang` `a1` ON (a0.`id_category` = a1.`id_category`)
WHERE (a0.`nleft` < 17) AND (a0.`nright` > 18) AND (a1.`id_lang` = 1)
ORDER BY a0.`nleft` asc
0.2 18 Yes /classes/PrestaShopCollection.php:381
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 991 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 0
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 991 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.2 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE COALESCE(SUM(first_level_quantity) + SUM(pack_quantity), 0) as deep_quantity,
COALESCE(SUM(first_level_quantity), 0) as quantity
FROM (SELECT cp.`quantity` as first_level_quantity, 0 as pack_quantity
FROM `ps_cart_product` cp
WHERE cp.`id_product_attribute` = 1225
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND cp.`id_product` = 984 UNION SELECT 0 as first_level_quantity, cp.`quantity` * p.`quantity` as pack_quantity
FROM `ps_cart_product` cp JOIN `ps_pack` p ON cp.`id_product` = p.`id_product_pack` JOIN `ps_product` pr ON p.`id_product_pack` = pr.`id_product`
WHERE cp.`id_product_attribute` = 1225
AND cp.`id_customization` = 0
AND cp.`id_cart` = 0 AND p.`id_product_item` = 984 AND (pr.`pack_stock_type` IN (1,2) OR (
pr.`pack_stock_type` = 3
AND 0 = 1
))) as q LIMIT 1
0.2 0 /classes/Cart.php:1238
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 989
0.2 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 984
0.2 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE name, value, pf.id_feature, f.position
FROM ps_feature_product pf
LEFT JOIN ps_feature_lang fl ON (fl.id_feature = pf.id_feature AND fl.id_lang = 1)
LEFT JOIN ps_feature_value_lang fvl ON (fvl.id_feature_value = pf.id_feature_value AND fvl.id_lang = 1)
LEFT JOIN ps_feature f ON (f.id_feature = pf.id_feature AND fl.id_lang = 1)
INNER JOIN ps_feature_shop feature_shop
ON (feature_shop.id_feature = f.id_feature AND feature_shop.id_shop = 1)
WHERE pf.id_product = 984
ORDER BY f.position ASC
0.2 7 Yes /classes/Product.php:5020
SELECT SQL_NO_CACHE ads.`id_search`, ads.`id_hook`, ads.`unique_search`
FROM `ps_pm_advancedsearch` ads
JOIN `ps_pm_advancedsearch_shop` adss ON (ads.`id_search`=adss.`id_search` AND adss.`id_shop`=1)  WHERE 1  AND ads.`active`=1  ORDER BY ads.`position`
0.2 1 Yes /modules/pm_advancedsearch4/classes/As4SearchEngineDb.php:45
SELECT SQL_NO_CACHE p.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2020-12-02 00:00:00',
INTERVAL 20 DAY
)
) > 0) as new
FROM ps_product p
LEFT JOIN ps_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 1
LEFT JOIN ps_stock_available sa
ON sa.id_product = p.id_product 
AND sa.id_shop = 1
WHERE p.id_product = 988
0.2 2 /classes/ProductAssembler.php:90
SELECT SQL_NO_CACHE a.`id_attribute`, a.`id_attribute_group`, al.`name`, agl.`name` as `group`, pa.`reference`, pa.`ean13`, pa.`isbn`,pa.`upc`
FROM `ps_attribute` a
LEFT JOIN `ps_attribute_lang` al
ON (al.`id