aa Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT

Pieejamība: Ir pieejams Noliktavā 3
Modelis aa3829013

5.06€
/ gab
(Bez PVN: 4.18€)
Ieteicamā pārdošanas cena:  5.06€ (Bez PVN: 4.18€ )

Apmaksas iespējas
  
Piegādes iespējas
     

Attēls Produkta nosaukums Cena Modelis Noliktavā Daudzums
Lenovo ThinkPad L480 20LS001APB Lenovo ThinkPad L480 20LS001APB 928.19€ Lenovo ThinkPad L480 20LS001APB
Ir pieejams Noliktavā 996
HP EliteBook 850 G5 HP EliteBook 850 G5 900.00€ 123456
Ir pieejams Noliktavā 20
bb Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT bb Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT 5.06€ / gab bb3829013
Ir pieejams Noliktavā 4
/ gab
HP EliteBook 840 G5 Silver HP EliteBook 840 G5 Silver 599.00€ / pak. HP EliteBook 840 G5 Silver
Ir pieejams Noliktavā 222
/ pak.
Lenovo ThinkPad X1 Carbon 6th Gen Black Lenovo ThinkPad X1 Carbon 6th Gen Black 1,976.05€ Lenovo ThinkPad X1 Carbon 6th Gen Black
Ir pieejams Noliktavā 988
Preces krāsa var atšķirties no attēlā redzamās. Produkta apraksts ir vispārīgs, tajā ne vienmēr ir minētas visas produkta īpašības. Produktu cenas e-veikalā var atšķirties no cenām lielveikalos un servisa centros. Preču atlikums noliktavā un e-veikalā var atšķirties, tāpēc šādos gadījumos piegādes nosacījumi var atšķirties no tiem, kas norādīti pasūtījuma veikšanas brīdī un / vai nevarēsim izpildīt Jūsu pasūtījumu vai tikai daļēji izpildīt (tādos gadījumos Pircējs tiek informēts nekavējoties).
Pamanījāt kļūdu? Ziņojiet mums
Queries: 146, Total time: 214.414 ms [By time] [By id] [By file]
1 (0.219)
SET time_zone = '+03:00'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/time_settings.php:139
2 (1.069)
SELECT tr1.tax_class_id, tr2.tax_rate_id, tr2.name, tr2.rate, tr2.type, tr1.priority
FROM oc_tax_rule tr1
LEFT JOIN oc_tax_rate tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id)
INNER JOIN oc_tax_rate_to_customer_group tr2cg ON (tr2.tax_rate_id = tr2cg.tax_rate_id)
LEFT JOIN oc_zone_to_geo_zone z2gz ON (tr2.geo_zone_id = z2gz.geo_zone_id)
LEFT JOIN oc_geo_zone gz ON (tr2.geo_zone_id = gz.geo_zone_id)
WHERE tr1.based = 'shipping' AND tr2cg.customer_group_id = '1' AND z2gz.country_id = '117' AND (z2gz.zone_id = '0' OR z2gz.zone_id = '4060')
ORDER BY tr1.priority ASC
/var/www/elvijs.nomasveikals.lv/web/system/library/cart/tax.php:25
3 (0.853)
SELECT tr1.tax_class_id, tr2.tax_rate_id, tr2.name, tr2.rate, tr2.type, tr1.priority
FROM oc_tax_rule tr1
LEFT JOIN oc_tax_rate tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id)
INNER JOIN oc_tax_rate_to_customer_group tr2cg ON (tr2.tax_rate_id = tr2cg.tax_rate_id)
LEFT JOIN oc_zone_to_geo_zone z2gz ON (tr2.geo_zone_id = z2gz.geo_zone_id)
LEFT JOIN oc_geo_zone gz ON (tr2.geo_zone_id = gz.geo_zone_id)
WHERE tr1.based = 'store' AND tr2cg.customer_group_id = '1' AND z2gz.country_id = '117' AND (z2gz.zone_id = '0' OR z2gz.zone_id = '4060')
ORDER BY tr1.priority ASC
/var/www/elvijs.nomasveikals.lv/web/system/library/cart/tax.php:53
4 (0.501)
SELECT *
FROM oc_cart
WHERE api_id = '0' AND customer_id = '0' AND session_id = '104a00043867a2c15e2296704c3d6ceb'
/var/www/elvijs.nomasveikals.lv/web/system/library/cart/cart.php:157
5 (0.593)
SELECT *
FROM `oc_event`
WHERE `trigger` LIKE 'catalog/%' AND status = '1'
ORDER BY `event_id` ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/extension/event.php:4
6 (0.980)
SELECT p.*, pd.*, m.*, pd.name AS name, p.image, m.name AS manufacturer, md.seo_keyword AS manufacturer_seo_keyword, prw.points AS reward, wcd.unit AS weight_class, lcd.unit AS length_class, AVG(r.rating) AS rating, COUNT(DISTINCT r.review_id) AS reviews, p.sort_order
FROM oc_product p
LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id)
LEFT JOIN oc_manufacturer m ON (p.manufacturer_id = m.manufacturer_id)
LEFT JOIN oc_manufacturer_description md ON (p.manufacturer_id = md.manufacturer_id AND md.language_id = '1')
LEFT JOIN oc_product_reward prw ON (prw.product_id = p.product_id AND prw.customer_group_id = '1')
LEFT JOIN oc_weight_class_description wcd ON (p.weight_class_id = wcd.weight_class_id AND wcd.language_id = '1')
LEFT JOIN oc_length_class_description lcd ON (p.length_class_id = lcd.length_class_id AND lcd.language_id = '1')
LEFT JOIN oc_review r ON (r.product_id = p.product_id AND r.status = '1')
WHERE p.product_id = '331' AND pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() GROUP BY p.product_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:36
7 (31.489)
WITH RECURSIVE cgd AS ( SELECT cgd.percentage
FROM `oc_customer_group_discount` AS cgd
WHERE cgd.status = '1' AND cgd.customer_group_id = '0' AND (cgd.date_start = '0000-00-00' OR cgd.date_start < NOW())
ORDER BY cgd.priority ASC, cgd.percentage ASC LIMIT 0, 1), cat_anc AS (SELECT c.category_id AS desc_id, c.category_id AS anc_id, 0 AS depth
FROM `oc_category` c UNION ALL SELECT a.desc_id, c.parent_id AS anc_id, a.depth + 1
FROM cat_anc a
INNER JOIN `oc_category` c ON c.category_id = a.anc_id
WHERE c.parent_id != 0) SELECT p.product_id, CASE WHEN psf.price IS NOT NULL THEN p.price WHEN psp.percentage IS NOT NULL THEN p.price WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END AS `before`, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END) AS discount, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END * IF(psf.price IS NULL AND psp.percentage IS NULL AND (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0))) < 100, (100 - (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0)))) / 100, 1)) AS final
FROM `oc_product` AS p
LEFT JOIN cgd ON (1)
LEFT JOIN `oc_product_special` AS psf ON (psf.product_id = p.product_id AND psf.discount_type = 'F' AND psf.price > 0 AND (psf.date_start = '0000-00-00' OR psf.date_start < NOW()) AND (psf.date_end = '0000-00-00' OR psf.date_end >= CURDATE()) AND psf.customer_group_id = '1')
LEFT JOIN `oc_product_special` AS psp ON (psp.product_id = p.product_id AND psp.discount_type = 'P' AND psp.percentage > 0 AND (psp.date_start = '0000-00-00' OR psp.date_start < NOW()) AND (psp.date_end = '0000-00-00' OR psp.date_end >= CURDATE()) AND psp.customer_group_id = '1')
LEFT JOIN `oc_product_discount` AS pdf ON (pdf.product_id = p.product_id AND pdf.quantity <= p.minimum AND pdf.discount_type = 'F' AND pdf.price > 0 AND (pdf.date_start = '0000-00-00' OR pdf.date_start < NOW()) AND pdf.customer_group_id = '1')
LEFT JOIN `oc_product_discount` AS pdp ON (pdp.product_id = p.product_id AND pdp.quantity <= p.minimum AND pdp.discount_type = 'P' AND pdp.percentage > 0 AND (pdp.date_start = '0000-00-00' OR pdp.date_start < NOW()) AND pdp.customer_group_id = '1')
LEFT JOIN `oc_product_to_category` AS ptc ON (ptc.product_id = p.product_id)
LEFT JOIN cat_anc ON (cat_anc.desc_id = ptc.category_id)
LEFT JOIN `oc_category_discount` AS cd ON ((cd.category_id = cat_anc.anc_id AND (cat_anc.depth = 0 OR cd.affect = '1')) AND cd.status = '1' AND cd.customer_group_id = '1' AND cd.qty <= p.minimum AND cd.qty IS NOT NULL AND (cd.date_start = '0000-00-00' OR cd.date_start < NOW()))
LEFT JOIN `oc_vendor_discount` AS vnd ON (vnd.vendor = p.vendor AND vnd.status = '1' AND vnd.customer_group_id = '1' AND vnd.qty <= p.minimum AND (vnd.date_start = '0000-00-00' OR vnd.date_start <= CURDATE()) AND (vnd.date_end = '0000-00-00' OR vnd.date_end >= CURDATE()))
WHERE p.status = '1' AND p.date_available <= NOW() AND p.product_id IN ('331') GROUP BY p.product_id
ORDER BY psf.priority ASC, psp.priority ASC, psf.price ASC, psp.percentage DESC, pdf.priority ASC, pdp.priority ASC, pdf.price ASC, pdp.percentage DESC, cd.priority ASC, cd.percentage DESC, vnd.priority ASC, vnd.percentage DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1422
8 (0.505)
SELECT *
FROM oc_product p
WHERE p.product_id IN (331)
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2567
9 (21.129)
WITH RECURSIVE cgd AS ( SELECT cgd.percentage
FROM `oc_customer_group_discount` AS cgd
WHERE cgd.status = '1' AND cgd.customer_group_id = '11' AND (cgd.date_start = '0000-00-00' OR cgd.date_start < NOW())
ORDER BY cgd.priority ASC, cgd.percentage ASC LIMIT 0, 1), cat_anc AS (SELECT c.category_id AS desc_id, c.category_id AS anc_id, 0 AS depth
FROM `oc_category` c UNION ALL SELECT a.desc_id, c.parent_id AS anc_id, a.depth + 1
FROM cat_anc a
INNER JOIN `oc_category` c ON c.category_id = a.anc_id
WHERE c.parent_id != 0) SELECT p.product_id, CASE WHEN psf.price IS NOT NULL THEN p.price WHEN psp.percentage IS NOT NULL THEN p.price WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END AS `before`, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END) AS discount, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END * IF(psf.price IS NULL AND psp.percentage IS NULL AND (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0))) < 100, (100 - (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0)))) / 100, 1)) AS final
FROM `oc_product` AS p
LEFT JOIN cgd ON (1)
LEFT JOIN `oc_product_special` AS psf ON (psf.product_id = p.product_id AND psf.discount_type = 'F' AND psf.price > 0 AND (psf.date_start = '0000-00-00' OR psf.date_start < NOW()) AND (psf.date_end = '0000-00-00' OR psf.date_end >= CURDATE()) AND psf.customer_group_id = '11')
LEFT JOIN `oc_product_special` AS psp ON (psp.product_id = p.product_id AND psp.discount_type = 'P' AND psp.percentage > 0 AND (psp.date_start = '0000-00-00' OR psp.date_start < NOW()) AND (psp.date_end = '0000-00-00' OR psp.date_end >= CURDATE()) AND psp.customer_group_id = '11')
LEFT JOIN `oc_product_discount` AS pdf ON (pdf.product_id = p.product_id AND pdf.quantity <= p.minimum AND pdf.discount_type = 'F' AND pdf.price > 0 AND (pdf.date_start = '0000-00-00' OR pdf.date_start < NOW()) AND pdf.customer_group_id = '11')
LEFT JOIN `oc_product_discount` AS pdp ON (pdp.product_id = p.product_id AND pdp.quantity <= p.minimum AND pdp.discount_type = 'P' AND pdp.percentage > 0 AND (pdp.date_start = '0000-00-00' OR pdp.date_start < NOW()) AND pdp.customer_group_id = '11')
LEFT JOIN `oc_product_to_category` AS ptc ON (ptc.product_id = p.product_id)
LEFT JOIN cat_anc ON (cat_anc.desc_id = ptc.category_id)
LEFT JOIN `oc_category_discount` AS cd ON ((cd.category_id = cat_anc.anc_id AND (cat_anc.depth = 0 OR cd.affect = '1')) AND cd.status = '1' AND cd.customer_group_id = '11' AND cd.qty <= p.minimum AND cd.qty IS NOT NULL AND (cd.date_start = '0000-00-00' OR cd.date_start < NOW()))
LEFT JOIN `oc_vendor_discount` AS vnd ON (vnd.vendor = p.vendor AND vnd.status = '1' AND vnd.customer_group_id = '11' AND vnd.qty <= p.minimum AND (vnd.date_start = '0000-00-00' OR vnd.date_start <= CURDATE()) AND (vnd.date_end = '0000-00-00' OR vnd.date_end >= CURDATE()))
WHERE p.status = '1' AND p.date_available <= NOW() AND p.product_id IN ('331') GROUP BY p.product_id
ORDER BY psf.priority ASC, psp.priority ASC, psf.price ASC, psp.percentage DESC, pdf.priority ASC, pdp.priority ASC, pdf.price ASC, pdp.percentage DESC, cd.priority ASC, cd.percentage DESC, vnd.priority ASC, vnd.percentage DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1422
10 (1.122)
SHOW TABLES LIKE 'oc_vehicle_application'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3108
11 (0.783)
SHOW TABLES LIKE 'oc_product_fitment'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3109
12 (0.189)
SELECT COUNT(*) AS total
FROM `oc_product_fitment`
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1540
13 (0.269)
SELECT pf.note, va.year, va.make, va.model, va.trim, va.engine
FROM `oc_product_fitment` pf
INNER JOIN `oc_vehicle_application` va ON (va.vehicle_application_id = pf.vehicle_application_id)
WHERE pf.product_id = '331'
ORDER BY va.year DESC, va.make ASC, va.model ASC, va.trim ASC, va.engine ASC LIMIT 0, 20
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1576
14 (0.222)
SELECT *
FROM oc_product_to_category
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
15 (0.317)
SELECT pc.category_id, t1.parent_id, (!ISNULL(t1.parent_id) + !ISNULL(t2.parent_id) + !ISNULL(t3.parent_id) + !ISNULL(t4.parent_id) + !ISNULL(t5.parent_id))*1000 + IF(t1.sort_order>0,(1000-t1.sort_order),0) + IF(t2.sort_order>0,(1000-t2.sort_order),0) + IF(t3.sort_order>0,(1000-t3.sort_order),0) + IF(t4.sort_order>0,(1000-t4.sort_order),0) + IF(t5.sort_order>0,(1000-t5.sort_order),0) AS priority
FROM oc_product_to_category pc
LEFT JOIN oc_category t1 ON t1.category_id = pc.category_id
LEFT JOIN oc_category t2 ON t1.parent_id = t2.category_id
LEFT JOIN oc_category t3 ON t2.parent_id = t3.category_id
LEFT JOIN oc_category t4 ON t3.parent_id = t4.category_id
LEFT JOIN oc_category t5 ON t4.parent_id = t5.category_id
WHERE product_id = '331'
ORDER BY priority DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2549
16 (0.278)
SELECT cp.path_id AS category_id, cd.name, cd.seo_keyword
FROM oc_category_path cp
INNER JOIN oc_category c ON (cp.path_id = c.category_id)
INNER JOIN oc_category_description cd ON (cp.path_id = cd.category_id)
WHERE cp.category_id = '65' AND cd.language_id = '1' AND c.status = '1'
ORDER BY cp.level
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:29
17 (0.832)
SHOW TABLES LIKE 'oc_sales_document'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:968
18 (0.580)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'code'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
19 (0.502)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'name'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
20 (0.497)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'filename'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
21 (0.468)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'relative_path'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
22 (0.460)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'extension'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
23 (0.424)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'mime_type'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
24 (0.438)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'source'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
25 (0.448)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'date_added'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
26 (0.442)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'date_modified'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
27 (0.553)
SHOW INDEX
FROM `oc_sales_document`
WHERE Key_name = 'code'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
28 (0.491)
SHOW INDEX
FROM `oc_sales_document`
WHERE Key_name = 'extension'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
29 (0.491)
SHOW INDEX
FROM `oc_sales_document`
WHERE Key_name = 'source'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
30 (0.489)
SHOW INDEX
FROM `oc_sales_document`
WHERE Key_name = 'date_added'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
31 (0.779)
SHOW TABLES LIKE 'oc_sales_document_link'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:968
32 (0.487)
SHOW COLUMNS
FROM `oc_sales_document_link` LIKE 'sales_document_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
33 (0.443)
SHOW COLUMNS
FROM `oc_sales_document_link` LIKE 'entity_type'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
34 (0.473)
SHOW COLUMNS
FROM `oc_sales_document_link` LIKE 'entity_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
35 (0.428)
SHOW COLUMNS
FROM `oc_sales_document_link` LIKE 'context'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
36 (0.437)
SHOW COLUMNS
FROM `oc_sales_document_link` LIKE 'date_added'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
37 (0.534)
SHOW INDEX
FROM `oc_sales_document_link`
WHERE Key_name = 'uniq_link'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
38 (0.509)
SHOW INDEX
FROM `oc_sales_document_link`
WHERE Key_name = 'entity_lookup'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
39 (0.465)
SHOW INDEX
FROM `oc_sales_document_link`
WHERE Key_name = 'sales_document_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:990
40 (0.275)
SELECT sd.*, GROUP_CONCAT(DISTINCT CONCAT(sdl.entity_type, ':', sdl.entity_id, ':', sdl.context) SEPARATOR '||') AS links
FROM `oc_sales_document` sd
INNER JOIN `oc_sales_document_link` sdl ON (sdl.sales_document_id = sd.sales_document_id)
WHERE sdl.entity_type = 'product' AND sdl.entity_id = '331' AND sdl.context = 'catalog_download' GROUP BY sd.sales_document_id
ORDER BY sd.date_added DESC, sd.sales_document_id DESC
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:353
41 (0.201)
SELECT DISTINCT *
FROM oc_manufacturer m
LEFT JOIN oc_manufacturer_description md ON (m.manufacturer_id = md.manufacturer_id AND md.language_id = '1')
WHERE m.manufacturer_id = '0' AND m.status = '1'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/manufacturer.php:4
42 (1.878)
CREATE TABLE IF NOT EXISTS `oc_product_customtab` ( `product_customtab_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `sort_order` int(11) NOT NULL, `status` tinyint(1) NOT NULL, PRIMARY KEY (`product_customtab_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3425
43 (1.355)
CREATE TABLE IF NOT EXISTS `oc_product_customtab_description` ( `product_customtab_id` int(11) NOT NULL, `language_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `title` varchar(255) CHARACTER SET utf8 NOT NULL, `description` text CHARACTER SET utf8 NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3433
44 (0.247)
SELECT *
FROM oc_product_customtab pc
LEFT JOIN oc_product_customtab_description pcd ON (pc.product_customtab_id = pcd.product_customtab_id)
WHERE pc.product_id = '331' AND pcd.language_id = '1' AND pc.status > 0
ORDER BY pc.sort_order ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1183
45 (0.163)
SELECT *
FROM oc_product_image
WHERE product_id = '331'
ORDER BY sort_order ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1189
46 (0.311)
SELECT *
FROM oc_unit_class uc
LEFT JOIN oc_unit_class_description ucd ON (uc.unit_class_id = ucd.unit_class_id)
WHERE uc.unit_class_id = '4' AND ucd.language_id = '1'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1957
47 (0.347)
SELECT *
FROM oc_product_option po
LEFT JOIN `oc_option` o ON (po.option_id = o.option_id)
LEFT JOIN oc_option_description od ON (o.option_id = od.option_id)
WHERE po.product_id = '331' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
48 (1.903)
SHOW TABLES LIKE 'oc_product_upsell'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1264
49 (0.569)
SELECT pu.*, p.minimum AS upsell_minimum
FROM oc_product_upsell pu
INNER JOIN oc_product p ON (p.product_id = pu.upsell_product_id)
WHERE pu.product_id = '331' AND pu.status = '1' AND (pu.date_start = '0000-00-00' OR pu.date_start <= CURDATE()) AND (pu.date_end = '0000-00-00' OR pu.date_end >= CURDATE()) AND p.status = '1' AND p.date_available <= NOW() AND p.type NOT LIKE 'option'
ORDER BY pu.sort_order ASC, pu.product_upsell_id ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1320
50 (1.924)
CREATE TABLE IF NOT EXISTS `oc_rental_reservation` ( `rental_reservation_id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) NOT NULL DEFAULT '0', `order_product_id` int(11) NOT NULL DEFAULT '0', `product_id` int(11) NOT NULL, `quantity` int(11) NOT NULL DEFAULT '0', `rental_unit` varchar(16) NOT NULL DEFAULT 'day', `starts_at_utc` datetime NOT NULL, `ends_at_utc` datetime NOT NULL, `blocked_from_utc` datetime NOT NULL, `blocked_until_utc` datetime NOT NULL, `billing_units` decimal(15,4) NOT NULL DEFAULT '0.0000', `base_rate` decimal(15,4) NOT NULL DEFAULT '0.0000', `unit_price` decimal(15,4) NOT NULL DEFAULT '0.0000', `discount_percent` decimal(15,4) NOT NULL DEFAULT '0.0000', `subtotal` decimal(15,4) NOT NULL DEFAULT '0.0000', `deposit_amount` decimal(15,4) NOT NULL DEFAULT '0.0000', `deposit_total` decimal(15,4) NOT NULL DEFAULT '0.0000', `deposit_status` varchar(32) NOT NULL DEFAULT 'pending', `order_status_id` int(11) NOT NULL DEFAULT '0', `is_blocking` tinyint(1) NOT NULL DEFAULT '0', `metadata_json` mediumtext, `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`rental_reservation_id`), UNIQUE KEY `order_product_id` (`order_product_id`), KEY `product_block_window` (`product_id`,`blocked_from_utc`,`blocked_until_utc`,`is_blocking`), KEY `order_id` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:21
51 (1.627)
CREATE TABLE IF NOT EXISTS `oc_rental_blackout` ( `rental_blackout_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `blocked_qty` int(11) NOT NULL DEFAULT '0', `starts_at_utc` datetime NOT NULL, `ends_at_utc` datetime NOT NULL, `reason` varchar(255) NOT NULL DEFAULT '', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`rental_blackout_id`), KEY `product_window` (`product_id`,`starts_at_utc`,`ends_at_utc`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:51
52 (1.367)
CREATE TABLE IF NOT EXISTS `oc_rental_maintenance_type` ( `maintenance_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `name_json` mediumtext, `color` varchar(16) NOT NULL DEFAULT '#7A8A99', `default_duration_minutes` int(11) NOT NULL DEFAULT '0', `sort_order` int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`maintenance_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:64
53 (1.393)
CREATE TABLE IF NOT EXISTS `oc_rental_maintenance_event` ( `maintenance_event_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `maintenance_type_id` int(11) NOT NULL DEFAULT '0', `blocked_qty` int(11) NOT NULL DEFAULT '0', `starts_at_utc` datetime NOT NULL, `ends_at_utc` datetime NOT NULL, `note` text, `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`maintenance_event_id`), KEY `product_window` (`product_id`,`starts_at_utc`,`ends_at_utc`), KEY `maintenance_type_id` (`maintenance_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:77
54 (1.311)
SHOW COLUMNS
FROM `oc_rental_maintenance_type` LIKE 'name_json'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:100
55 (0.215)
SELECT language_id, code
FROM `oc_language`
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:109
56 (0.174)
SELECT maintenance_type_id, name_json
FROM `oc_rental_maintenance_type`
WHERE name = 'Cleaning' OR name = 'Tirisana' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:163
57 (0.148)
SELECT maintenance_type_id, name_json
FROM `oc_rental_maintenance_type`
WHERE name = 'Full service' OR name = 'Pilna apkope' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:163
58 (0.156)
SELECT maintenance_type_id, name_json
FROM `oc_rental_maintenance_type`
WHERE name = 'Full technical service' OR name = 'Pilna tehniska apkope' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:163
59 (0.151)
SELECT maintenance_type_id, name_json
FROM `oc_rental_maintenance_type`
WHERE name = 'Other' OR name = 'Cits' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:163
60 (0.184)
SELECT `key`, `value`, `serialized`
FROM `oc_setting`
WHERE `code` = 'rental_inventory' AND store_id IN (0, '0')
ORDER BY store_id ASC
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/config_service.php:76
61 (1.763)
CREATE TABLE IF NOT EXISTS `oc_booking_location` ( `booking_location_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(191) NOT NULL, `slug` varchar(191) NOT NULL, `address_line` varchar(255) NOT NULL DEFAULT '', `city` varchar(128) NOT NULL DEFAULT '', `phone` varchar(64) NOT NULL DEFAULT '', `email` varchar(191) NOT NULL DEFAULT '', `description` mediumtext, `seo_title` varchar(255) NOT NULL DEFAULT '', `seo_description` varchar(255) NOT NULL DEFAULT '', `faq_json` mediumtext, `sort_order` int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_location_id`), UNIQUE KEY `slug` (`slug`), KEY `status_sort` (`status`,`sort_order`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:21
62 (1.664)
CREATE TABLE IF NOT EXISTS `oc_booking_service` ( `booking_service_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(191) NOT NULL, `slug` varchar(191) NOT NULL, `description` mediumtext, `seo_title` varchar(255) NOT NULL DEFAULT '', `seo_description` varchar(255) NOT NULL DEFAULT '', `price_from` decimal(15,4) NOT NULL DEFAULT '0.0000', `required_resource_type` varchar(16) NOT NULL DEFAULT '', `sort_order` int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_service_id`), UNIQUE KEY `slug` (`slug`), KEY `status_sort` (`status`,`sort_order`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:42
63 (1.923)
CREATE TABLE IF NOT EXISTS `oc_booking_service_location` ( `booking_service_location_id` int(11) NOT NULL AUTO_INCREMENT, `service_id` int(11) NOT NULL, `location_id` int(11) NOT NULL, `resource_id` int(11) NOT NULL DEFAULT '0', `duration_minutes` int(11) NOT NULL DEFAULT '60', `buffer_before` int(11) NOT NULL DEFAULT '0', `buffer_after` int(11) NOT NULL DEFAULT '0', `payment_mode` varchar(16) NOT NULL DEFAULT 'none', `allow_standalone` tinyint(1) NOT NULL DEFAULT '1', `allow_checkout_attach` tinyint(1) NOT NULL DEFAULT '0', `resource_type` varchar(16) NOT NULL DEFAULT '', `slot_step_minutes` int(11) NOT NULL DEFAULT '30', `checkout_product_id` int(11) NOT NULL DEFAULT '0', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_service_location_id`), UNIQUE KEY `service_location` (`service_id`,`location_id`), KEY `location_id` (`location_id`), KEY `resource_id` (`resource_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:60
64 (1.665)
CREATE TABLE IF NOT EXISTS `oc_booking_resource` ( `booking_resource_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `name` varchar(191) NOT NULL, `type` varchar(16) NOT NULL DEFAULT 'bay', `capacity` int(11) NOT NULL DEFAULT '1', `status` tinyint(1) NOT NULL DEFAULT '1', `sort_order` int(11) NOT NULL DEFAULT '0', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_resource_id`), KEY `location_type_status` (`location_id`,`type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:82
65 (2.380)
CREATE TABLE IF NOT EXISTS `oc_booking_resource_schedule` ( `booking_resource_schedule_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `resource_id` int(11) NOT NULL DEFAULT '0', `day_of_week` tinyint(1) NOT NULL DEFAULT '1', `start_time_local` time NOT NULL, `end_time_local` time NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_resource_schedule_id`), KEY `location_day` (`location_id`,`day_of_week`,`status`), KEY `resource_day` (`resource_id`,`day_of_week`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:96
66 (1.487)
CREATE TABLE IF NOT EXISTS `oc_booking_blackout` ( `booking_blackout_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `service_id` int(11) NOT NULL DEFAULT '0', `resource_id` int(11) NOT NULL DEFAULT '0', `title` varchar(191) NOT NULL DEFAULT '', `reason` varchar(255) NOT NULL DEFAULT '', `start_at_utc` datetime NOT NULL, `end_at_utc` datetime NOT NULL, `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_blackout_id`), KEY `window_lookup` (`location_id`,`resource_id`,`start_at_utc`,`end_at_utc`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:111
67 (1.609)
CREATE TABLE IF NOT EXISTS `oc_booking` ( `booking_id` int(11) NOT NULL AUTO_INCREMENT, `booking_service_location_id` int(11) NOT NULL DEFAULT '0', `location_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, `resource_id` int(11) NOT NULL DEFAULT '0', `order_id` int(11) NOT NULL DEFAULT '0', `order_product_id` int(11) NULL DEFAULT NULL, `source_type` varchar(32) NOT NULL DEFAULT 'standalone', `tire_source` varchar(32) NOT NULL DEFAULT '', `payment_mode` varchar(16) NOT NULL DEFAULT 'none', `payment_state` varchar(32) NOT NULL DEFAULT 'not_required', `status` varchar(32) NOT NULL DEFAULT 'scheduled', `starts_at_utc` datetime NOT NULL, `ends_at_utc` datetime NOT NULL, `buffer_start_utc` datetime NOT NULL, `buffer_end_utc` datetime NOT NULL, `vehicle_registration_no` varchar(64) NOT NULL DEFAULT '', `vehicle_make` varchar(128) NOT NULL DEFAULT '', `vehicle_model` varchar(128) NOT NULL DEFAULT '', `vehicle_year` varchar(16) NOT NULL DEFAULT '', `customer_name` varchar(191) NOT NULL DEFAULT '', `customer_email` varchar(191) NOT NULL DEFAULT '', `customer_phone` varchar(64) NOT NULL DEFAULT '', `customer_comment` text, `consent_terms` tinyint(1) NOT NULL DEFAULT '0', `consent_marketing` tinyint(1) NOT NULL DEFAULT '0', `metadata_json` mediumtext, `order_status_id` int(11) NOT NULL DEFAULT '0', `is_blocking` tinyint(1) NOT NULL DEFAULT '0', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_id`), UNIQUE KEY `order_product_id` (`order_product_id`), KEY `location_window_status` (`location_id`,`starts_at_utc`,`ends_at_utc`,`status`,`is_blocking`), KEY `resource_window_status` (`resource_id`,`starts_at_utc`,`ends_at_utc`,`status`,`is_blocking`), KEY `order_id` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:126
68 (1.565)
CREATE TABLE IF NOT EXISTS `oc_booking_item` ( `booking_item_id` int(11) NOT NULL AUTO_INCREMENT, `booking_id` int(11) NOT NULL, `product_id` int(11) NOT NULL DEFAULT '0', `quantity` int(11) NOT NULL DEFAULT '1', `source` varchar(32) NOT NULL DEFAULT 'cart', `date_added` datetime NOT NULL, PRIMARY KEY (`booking_item_id`), KEY `booking_id` (`booking_id`), KEY `product_id` (`product_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:165
69 (1.569)
CREATE TABLE IF NOT EXISTS `oc_booking_status_history` ( `booking_status_history_id` int(11) NOT NULL AUTO_INCREMENT, `booking_id` int(11) NOT NULL, `status` varchar(32) NOT NULL, `comment` text, `actor` varchar(64) NOT NULL DEFAULT 'system', `date_added` datetime NOT NULL, PRIMARY KEY (`booking_status_history_id`), KEY `booking_id` (`booking_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:177
70 (1.069)
SHOW COLUMNS
FROM `oc_booking_service_location` LIKE 'resource_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:196
71 (0.974)
SHOW COLUMNS
FROM `oc_booking` LIKE 'order_product_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:210
72 (0.256)
UPDATE `oc_booking` SET order_product_id = NULL
WHERE order_product_id = '0'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:225
73 (1.043)
SHOW INDEX
FROM `oc_booking`
WHERE Key_name = 'order_product_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:229
74 (1.568)
SHOW TABLES LIKE 'oc_url_alias'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:239
75 (0.291)
SELECT language_id, code
FROM `oc_language`
WHERE status = '1'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:245
76 (0.518)
SELECT query
FROM `oc_url_alias`
WHERE query = 'booking/booking' AND language_id = '1' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:256
77 (0.403)
SELECT query
FROM `oc_url_alias`
WHERE query = 'booking/booking' AND language_id = '2' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:256
78 (0.452)
SELECT query
FROM `oc_url_alias`
WHERE query = 'booking/booking' AND language_id = '3' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:256
79 (0.299)
SELECT `key`, `value`, `serialized`
FROM `oc_setting`
WHERE `code` = 'booking_module' AND store_id IN (0, '0')
ORDER BY store_id ASC
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/config_service.php:56
80 (1.936)
CREATE TABLE IF NOT EXISTS `oc_booking_location` ( `booking_location_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(191) NOT NULL, `slug` varchar(191) NOT NULL, `address_line` varchar(255) NOT NULL DEFAULT '', `city` varchar(128) NOT NULL DEFAULT '', `phone` varchar(64) NOT NULL DEFAULT '', `email` varchar(191) NOT NULL DEFAULT '', `description` mediumtext, `seo_title` varchar(255) NOT NULL DEFAULT '', `seo_description` varchar(255) NOT NULL DEFAULT '', `faq_json` mediumtext, `sort_order` int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_location_id`), UNIQUE KEY `slug` (`slug`), KEY `status_sort` (`status`,`sort_order`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:21
81 (1.780)
CREATE TABLE IF NOT EXISTS `oc_booking_service` ( `booking_service_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(191) NOT NULL, `slug` varchar(191) NOT NULL, `description` mediumtext, `seo_title` varchar(255) NOT NULL DEFAULT '', `seo_description` varchar(255) NOT NULL DEFAULT '', `price_from` decimal(15,4) NOT NULL DEFAULT '0.0000', `required_resource_type` varchar(16) NOT NULL DEFAULT '', `sort_order` int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_service_id`), UNIQUE KEY `slug` (`slug`), KEY `status_sort` (`status`,`sort_order`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:42
82 (1.802)
CREATE TABLE IF NOT EXISTS `oc_booking_service_location` ( `booking_service_location_id` int(11) NOT NULL AUTO_INCREMENT, `service_id` int(11) NOT NULL, `location_id` int(11) NOT NULL, `resource_id` int(11) NOT NULL DEFAULT '0', `duration_minutes` int(11) NOT NULL DEFAULT '60', `buffer_before` int(11) NOT NULL DEFAULT '0', `buffer_after` int(11) NOT NULL DEFAULT '0', `payment_mode` varchar(16) NOT NULL DEFAULT 'none', `allow_standalone` tinyint(1) NOT NULL DEFAULT '1', `allow_checkout_attach` tinyint(1) NOT NULL DEFAULT '0', `resource_type` varchar(16) NOT NULL DEFAULT '', `slot_step_minutes` int(11) NOT NULL DEFAULT '30', `checkout_product_id` int(11) NOT NULL DEFAULT '0', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_service_location_id`), UNIQUE KEY `service_location` (`service_id`,`location_id`), KEY `location_id` (`location_id`), KEY `resource_id` (`resource_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:60
83 (1.748)
CREATE TABLE IF NOT EXISTS `oc_booking_resource` ( `booking_resource_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `name` varchar(191) NOT NULL, `type` varchar(16) NOT NULL DEFAULT 'bay', `capacity` int(11) NOT NULL DEFAULT '1', `status` tinyint(1) NOT NULL DEFAULT '1', `sort_order` int(11) NOT NULL DEFAULT '0', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_resource_id`), KEY `location_type_status` (`location_id`,`type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:82
84 (1.609)
CREATE TABLE IF NOT EXISTS `oc_booking_resource_schedule` ( `booking_resource_schedule_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `resource_id` int(11) NOT NULL DEFAULT '0', `day_of_week` tinyint(1) NOT NULL DEFAULT '1', `start_time_local` time NOT NULL, `end_time_local` time NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_resource_schedule_id`), KEY `location_day` (`location_id`,`day_of_week`,`status`), KEY `resource_day` (`resource_id`,`day_of_week`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:96
85 (2.054)
CREATE TABLE IF NOT EXISTS `oc_booking_blackout` ( `booking_blackout_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `service_id` int(11) NOT NULL DEFAULT '0', `resource_id` int(11) NOT NULL DEFAULT '0', `title` varchar(191) NOT NULL DEFAULT '', `reason` varchar(255) NOT NULL DEFAULT '', `start_at_utc` datetime NOT NULL, `end_at_utc` datetime NOT NULL, `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_blackout_id`), KEY `window_lookup` (`location_id`,`resource_id`,`start_at_utc`,`end_at_utc`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:111
86 (1.893)
CREATE TABLE IF NOT EXISTS `oc_booking` ( `booking_id` int(11) NOT NULL AUTO_INCREMENT, `booking_service_location_id` int(11) NOT NULL DEFAULT '0', `location_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, `resource_id` int(11) NOT NULL DEFAULT '0', `order_id` int(11) NOT NULL DEFAULT '0', `order_product_id` int(11) NULL DEFAULT NULL, `source_type` varchar(32) NOT NULL DEFAULT 'standalone', `tire_source` varchar(32) NOT NULL DEFAULT '', `payment_mode` varchar(16) NOT NULL DEFAULT 'none', `payment_state` varchar(32) NOT NULL DEFAULT 'not_required', `status` varchar(32) NOT NULL DEFAULT 'scheduled', `starts_at_utc` datetime NOT NULL, `ends_at_utc` datetime NOT NULL, `buffer_start_utc` datetime NOT NULL, `buffer_end_utc` datetime NOT NULL, `vehicle_registration_no` varchar(64) NOT NULL DEFAULT '', `vehicle_make` varchar(128) NOT NULL DEFAULT '', `vehicle_model` varchar(128) NOT NULL DEFAULT '', `vehicle_year` varchar(16) NOT NULL DEFAULT '', `customer_name` varchar(191) NOT NULL DEFAULT '', `customer_email` varchar(191) NOT NULL DEFAULT '', `customer_phone` varchar(64) NOT NULL DEFAULT '', `customer_comment` text, `consent_terms` tinyint(1) NOT NULL DEFAULT '0', `consent_marketing` tinyint(1) NOT NULL DEFAULT '0', `metadata_json` mediumtext, `order_status_id` int(11) NOT NULL DEFAULT '0', `is_blocking` tinyint(1) NOT NULL DEFAULT '0', `date_added` datetime NOT NULL, `date_modified` datetime NOT NULL, PRIMARY KEY (`booking_id`), UNIQUE KEY `order_product_id` (`order_product_id`), KEY `location_window_status` (`location_id`,`starts_at_utc`,`ends_at_utc`,`status`,`is_blocking`), KEY `resource_window_status` (`resource_id`,`starts_at_utc`,`ends_at_utc`,`status`,`is_blocking`), KEY `order_id` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:126
87 (1.945)
CREATE TABLE IF NOT EXISTS `oc_booking_item` ( `booking_item_id` int(11) NOT NULL AUTO_INCREMENT, `booking_id` int(11) NOT NULL, `product_id` int(11) NOT NULL DEFAULT '0', `quantity` int(11) NOT NULL DEFAULT '1', `source` varchar(32) NOT NULL DEFAULT 'cart', `date_added` datetime NOT NULL, PRIMARY KEY (`booking_item_id`), KEY `booking_id` (`booking_id`), KEY `product_id` (`product_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:165
88 (1.889)
CREATE TABLE IF NOT EXISTS `oc_booking_status_history` ( `booking_status_history_id` int(11) NOT NULL AUTO_INCREMENT, `booking_id` int(11) NOT NULL, `status` varchar(32) NOT NULL, `comment` text, `actor` varchar(64) NOT NULL DEFAULT 'system', `date_added` datetime NOT NULL, PRIMARY KEY (`booking_status_history_id`), KEY `booking_id` (`booking_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:177
89 (1.321)
SHOW COLUMNS
FROM `oc_booking_service_location` LIKE 'resource_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:196
90 (1.329)
SHOW COLUMNS
FROM `oc_booking` LIKE 'order_product_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:210
91 (0.323)
UPDATE `oc_booking` SET order_product_id = NULL
WHERE order_product_id = '0'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:225
92 (1.245)
SHOW INDEX
FROM `oc_booking`
WHERE Key_name = 'order_product_id'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:229
93 (2.493)
SHOW TABLES LIKE 'oc_url_alias'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:239
94 (0.379)
SELECT language_id, code
FROM `oc_language`
WHERE status = '1'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:245
95 (0.435)
SELECT query
FROM `oc_url_alias`
WHERE query = 'booking/booking' AND language_id = '1' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:256
96 (0.454)
SELECT query
FROM `oc_url_alias`
WHERE query = 'booking/booking' AND language_id = '2' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:256
97 (0.396)
SELECT query
FROM `oc_url_alias`
WHERE query = 'booking/booking' AND language_id = '3' LIMIT 1
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:256
98 (0.369)
SELECT *
FROM `oc_booking_location`
WHERE status = '1'
ORDER BY sort_order ASC, name ASC
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/config_repository.php:23
99 (0.593)
SELECT sl.*, l.name AS location_name, s.name AS service_name, s.slug AS service_slug, l.slug AS location_slug, s.description AS service_description, s.price_from, s.required_resource_type, r.name AS resource_name, r.type AS resource_rule_type
FROM `oc_booking_service_location` sl
INNER JOIN `oc_booking_location` l ON (l.booking_location_id = sl.location_id)
INNER JOIN `oc_booking_service` s ON (s.booking_service_id = sl.service_id)
LEFT JOIN `oc_booking_resource` r ON (r.booking_resource_id = sl.resource_id)
WHERE 1 = 1 AND sl.allow_checkout_attach = '1'
ORDER BY l.sort_order ASC, s.sort_order ASC, s.name ASC
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/config_repository.php:177
100 (0.523)
SELECT ag.attribute_group_id, agd.name
FROM oc_product_attribute pa
LEFT JOIN oc_attribute a ON (pa.attribute_id = a.attribute_id)
LEFT JOIN oc_attribute_group ag ON (a.attribute_group_id = ag.attribute_group_id)
LEFT JOIN oc_attribute_group_description agd ON (ag.attribute_group_id = agd.attribute_group_id)
WHERE pa.product_id = '331' AND agd.language_id = '1' GROUP BY ag.attribute_group_id
ORDER BY ag.sort_order, agd.name
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1000
101 (0.336)
SELECT *
FROM oc_product_to_layout
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1466
102 (0.609)
SELECT *
FROM oc_layout_module
WHERE layout_id = '2'
ORDER BY sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/design/layout.php:29
103 (0.534)
SELECT seo_keyword
FROM `oc_product_description`
WHERE `product_id` = '331' AND (`language_id` = '1' OR `language_id` = 0)
ORDER BY language_id DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/controller/startup/seo_url.php:361
104 (0.340)
SELECT seo_keyword
FROM `oc_product_description`
WHERE `product_id` = '331' AND (`language_id` = '2' OR `language_id` = 0)
ORDER BY language_id DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/controller/startup/seo_url.php:361
105 (0.326)
SELECT seo_keyword
FROM `oc_product_description`
WHERE `product_id` = '331' AND (`language_id` = '3' OR `language_id` = 0)
ORDER BY language_id DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/controller/startup/seo_url.php:361
106 (0.367)
SELECT SUM(amount) AS total
FROM oc_customer_transaction
WHERE customer_id = '0'
/var/www/elvijs.nomasveikals.lv/web/system/library/cart/customer.php:146
107 (0.627)
SELECT *
FROM oc_unit_class uc
LEFT JOIN oc_unit_class_description ucd ON (uc.unit_class_id = ucd.unit_class_id)
WHERE ucd.language_id = '1'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1963
108 (0.498)
SELECT *
FROM oc_product_related pr
LEFT JOIN oc_product p ON (pr.related_id = p.product_id)
WHERE pr.product_id = '331' AND p.status = '1' AND p.date_available <= NOW() AND p.type NOT LIKE 'option'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1243
109 (1.243)
SELECT *
FROM oc_product p
LEFT JOIN oc_product_to_category p2c ON (p.product_id = p2c.product_id)
WHERE p.product_id != '331' AND p.status = '1' AND p.type NOT LIKE 'option'AND (p2c.category_id = '65'OR p2c.category_id = '243')
ORDER BY rand() LIMIT 5
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1455
110 (35.346)
WITH RECURSIVE cgd AS ( SELECT cgd.percentage
FROM `oc_customer_group_discount` AS cgd
WHERE cgd.status = '1' AND cgd.customer_group_id = '0' AND (cgd.date_start = '0000-00-00' OR cgd.date_start < NOW())
ORDER BY cgd.priority ASC, cgd.percentage ASC LIMIT 0, 1), cat_anc AS (SELECT c.category_id AS desc_id, c.category_id AS anc_id, 0 AS depth
FROM `oc_category` c UNION ALL SELECT a.desc_id, c.parent_id AS anc_id, a.depth + 1
FROM cat_anc a
INNER JOIN `oc_category` c ON c.category_id = a.anc_id
WHERE c.parent_id != 0) SELECT p.product_id, CASE WHEN psf.price IS NOT NULL THEN p.price WHEN psp.percentage IS NOT NULL THEN p.price WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END AS `before`, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END) AS discount, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END * IF(psf.price IS NULL AND psp.percentage IS NULL AND (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0))) < 100, (100 - (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0)))) / 100, 1)) AS final
FROM `oc_product` AS p
LEFT JOIN cgd ON (1)
LEFT JOIN `oc_product_special` AS psf ON (psf.product_id = p.product_id AND psf.discount_type = 'F' AND psf.price > 0 AND (psf.date_start = '0000-00-00' OR psf.date_start < NOW()) AND (psf.date_end = '0000-00-00' OR psf.date_end >= CURDATE()) AND psf.customer_group_id = '1')
LEFT JOIN `oc_product_special` AS psp ON (psp.product_id = p.product_id AND psp.discount_type = 'P' AND psp.percentage > 0 AND (psp.date_start = '0000-00-00' OR psp.date_start < NOW()) AND (psp.date_end = '0000-00-00' OR psp.date_end >= CURDATE()) AND psp.customer_group_id = '1')
LEFT JOIN `oc_product_discount` AS pdf ON (pdf.product_id = p.product_id AND pdf.quantity <= p.minimum AND pdf.discount_type = 'F' AND pdf.price > 0 AND (pdf.date_start = '0000-00-00' OR pdf.date_start < NOW()) AND pdf.customer_group_id = '1')
LEFT JOIN `oc_product_discount` AS pdp ON (pdp.product_id = p.product_id AND pdp.quantity <= p.minimum AND pdp.discount_type = 'P' AND pdp.percentage > 0 AND (pdp.date_start = '0000-00-00' OR pdp.date_start < NOW()) AND pdp.customer_group_id = '1')
LEFT JOIN `oc_product_to_category` AS ptc ON (ptc.product_id = p.product_id)
LEFT JOIN cat_anc ON (cat_anc.desc_id = ptc.category_id)
LEFT JOIN `oc_category_discount` AS cd ON ((cd.category_id = cat_anc.anc_id AND (cat_anc.depth = 0 OR cd.affect = '1')) AND cd.status = '1' AND cd.customer_group_id = '1' AND cd.qty <= p.minimum AND cd.qty IS NOT NULL AND (cd.date_start = '0000-00-00' OR cd.date_start < NOW()))
LEFT JOIN `oc_vendor_discount` AS vnd ON (vnd.vendor = p.vendor AND vnd.status = '1' AND vnd.customer_group_id = '1' AND vnd.qty <= p.minimum AND (vnd.date_start = '0000-00-00' OR vnd.date_start <= CURDATE()) AND (vnd.date_end = '0000-00-00' OR vnd.date_end >= CURDATE()))
WHERE p.status = '1' AND p.date_available <= NOW() AND p.product_id IN ('13','310','332','9','18') GROUP BY p.product_id
ORDER BY psf.priority ASC, psp.priority ASC, psf.price ASC, psp.percentage DESC, pdf.priority ASC, pdp.priority ASC, pdf.price ASC, pdp.percentage DESC, cd.priority ASC, cd.percentage DESC, vnd.priority ASC, vnd.percentage DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1422
111 (2.032)
SELECT p.*, pd.*, m.*, pd.name AS name, p.image, m.name AS manufacturer, md.seo_keyword AS manufacturer_seo_keyword, prw.points AS reward, wcd.unit AS weight_class, lcd.unit AS length_class, AVG(r.rating) AS rating, COUNT(DISTINCT r.review_id) AS reviews, p.sort_order
FROM oc_product p
LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id)
LEFT JOIN oc_manufacturer m ON (p.manufacturer_id = m.manufacturer_id)
LEFT JOIN oc_manufacturer_description md ON (p.manufacturer_id = md.manufacturer_id AND md.language_id = '1')
LEFT JOIN oc_product_reward prw ON (prw.product_id = p.product_id AND prw.customer_group_id = '1')
LEFT JOIN oc_weight_class_description wcd ON (p.weight_class_id = wcd.weight_class_id AND wcd.language_id = '1')
LEFT JOIN oc_length_class_description lcd ON (p.length_class_id = lcd.length_class_id AND lcd.language_id = '1')
LEFT JOIN oc_review r ON (r.product_id = p.product_id AND r.status = '1')
WHERE p.product_id IN (13,310,332,9,18) AND pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() GROUP BY p.product_id
ORDER BY FIELD(p.product_id,13,310,332,9,18)
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2619
112 (0.483)
SELECT *
FROM oc_product p
WHERE p.product_id IN (13,310,332,9,18)
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2567
113 (21.431)
WITH RECURSIVE cgd AS ( SELECT cgd.percentage
FROM `oc_customer_group_discount` AS cgd
WHERE cgd.status = '1' AND cgd.customer_group_id = '11' AND (cgd.date_start = '0000-00-00' OR cgd.date_start < NOW())
ORDER BY cgd.priority ASC, cgd.percentage ASC LIMIT 0, 1), cat_anc AS (SELECT c.category_id AS desc_id, c.category_id AS anc_id, 0 AS depth
FROM `oc_category` c UNION ALL SELECT a.desc_id, c.parent_id AS anc_id, a.depth + 1
FROM cat_anc a
INNER JOIN `oc_category` c ON c.category_id = a.anc_id
WHERE c.parent_id != 0) SELECT p.product_id, CASE WHEN psf.price IS NOT NULL THEN p.price WHEN psp.percentage IS NOT NULL THEN p.price WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END AS `before`, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END) AS discount, (CASE WHEN psf.price IS NOT NULL THEN psf.price WHEN psp.percentage IS NOT NULL THEN (100 - psp.percentage) * p.price / 100 WHEN pdf.price IS NOT NULL THEN pdf.price WHEN pdp.percentage IS NOT NULL THEN (100 - pdp.percentage) * p.price / 100 ELSE p.price END * IF(psf.price IS NULL AND psp.percentage IS NULL AND (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0))) < 100, (100 - (MAX(IFNULL(cgd.percentage, 0)) + MAX(IFNULL(cd.percentage, 0)) + MAX(IFNULL(vnd.percentage, 0)))) / 100, 1)) AS final
FROM `oc_product` AS p
LEFT JOIN cgd ON (1)
LEFT JOIN `oc_product_special` AS psf ON (psf.product_id = p.product_id AND psf.discount_type = 'F' AND psf.price > 0 AND (psf.date_start = '0000-00-00' OR psf.date_start < NOW()) AND (psf.date_end = '0000-00-00' OR psf.date_end >= CURDATE()) AND psf.customer_group_id = '11')
LEFT JOIN `oc_product_special` AS psp ON (psp.product_id = p.product_id AND psp.discount_type = 'P' AND psp.percentage > 0 AND (psp.date_start = '0000-00-00' OR psp.date_start < NOW()) AND (psp.date_end = '0000-00-00' OR psp.date_end >= CURDATE()) AND psp.customer_group_id = '11')
LEFT JOIN `oc_product_discount` AS pdf ON (pdf.product_id = p.product_id AND pdf.quantity <= p.minimum AND pdf.discount_type = 'F' AND pdf.price > 0 AND (pdf.date_start = '0000-00-00' OR pdf.date_start < NOW()) AND pdf.customer_group_id = '11')
LEFT JOIN `oc_product_discount` AS pdp ON (pdp.product_id = p.product_id AND pdp.quantity <= p.minimum AND pdp.discount_type = 'P' AND pdp.percentage > 0 AND (pdp.date_start = '0000-00-00' OR pdp.date_start < NOW()) AND pdp.customer_group_id = '11')
LEFT JOIN `oc_product_to_category` AS ptc ON (ptc.product_id = p.product_id)
LEFT JOIN cat_anc ON (cat_anc.desc_id = ptc.category_id)
LEFT JOIN `oc_category_discount` AS cd ON ((cd.category_id = cat_anc.anc_id AND (cat_anc.depth = 0 OR cd.affect = '1')) AND cd.status = '1' AND cd.customer_group_id = '11' AND cd.qty <= p.minimum AND cd.qty IS NOT NULL AND (cd.date_start = '0000-00-00' OR cd.date_start < NOW()))
LEFT JOIN `oc_vendor_discount` AS vnd ON (vnd.vendor = p.vendor AND vnd.status = '1' AND vnd.customer_group_id = '11' AND vnd.qty <= p.minimum AND (vnd.date_start = '0000-00-00' OR vnd.date_start <= CURDATE()) AND (vnd.date_end = '0000-00-00' OR vnd.date_end >= CURDATE()))
WHERE p.status = '1' AND p.date_available <= NOW() AND p.product_id IN ('9','13','18','310','332') GROUP BY p.product_id
ORDER BY psf.priority ASC, psp.priority ASC, psf.price ASC, psp.percentage DESC, pdf.priority ASC, pdp.priority ASC, pdf.price ASC, pdp.percentage DESC, cd.priority ASC, cd.percentage DESC, vnd.priority ASC, vnd.percentage DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1422
114 (0.259)
SELECT *
FROM oc_product_to_category
WHERE product_id = '13'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
115 (0.312)
SELECT DISTINCT c.*, cd.*, GROUP_CONCAT(cep.parent_id
ORDER BY cep.sort_order ASC) as parent_ids
FROM oc_category c
LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id)
LEFT JOIN oc_category_extra_parents cep ON (c.category_id = cep.category_id)
WHERE c.category_id = '65' AND cd.language_id = '1' AND c.status = '1' GROUP BY c.category_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:4
116 (0.256)
SELECT *
FROM oc_product_option po
LEFT JOIN `oc_option` o ON (po.option_id = o.option_id)
LEFT JOIN oc_option_description od ON (o.option_id = od.option_id)
WHERE po.product_id = '13' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
117 (0.181)
SELECT *
FROM oc_product_label pl
WHERE pl.status = 1
ORDER BY pl.sort_order ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:75
118 (0.172)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '13'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
119 (0.146)
SELECT *
FROM oc_product_to_category
WHERE product_id = '310'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
120 (0.266)
SELECT DISTINCT c.*, cd.*, GROUP_CONCAT(cep.parent_id
ORDER BY cep.sort_order ASC) as parent_ids
FROM oc_category c
LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id)
LEFT JOIN oc_category_extra_parents cep ON (c.category_id = cep.category_id)
WHERE c.category_id = '65' AND cd.language_id = '1' AND c.status = '1' GROUP BY c.category_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:4
121 (0.227)
SELECT *
FROM oc_product_option po
LEFT JOIN `oc_option` o ON (po.option_id = o.option_id)
LEFT JOIN oc_option_description od ON (o.option_id = od.option_id)
WHERE po.product_id = '310' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
122 (0.168)
SELECT *
FROM oc_product_to_category
WHERE product_id = '332'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
123 (0.311)
SELECT DISTINCT c.*, cd.*, GROUP_CONCAT(cep.parent_id
ORDER BY cep.sort_order ASC) as parent_ids
FROM oc_category c
LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id)
LEFT JOIN oc_category_extra_parents cep ON (c.category_id = cep.category_id)
WHERE c.category_id = '65' AND cd.language_id = '1' AND c.status = '1' GROUP BY c.category_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:4
124 (0.221)
SELECT *
FROM oc_product_option po
LEFT JOIN `oc_option` o ON (po.option_id = o.option_id)
LEFT JOIN oc_option_description od ON (o.option_id = od.option_id)
WHERE po.product_id = '332' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
125 (0.186)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '332'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
126 (0.147)
SELECT *
FROM oc_product_to_category
WHERE product_id = '9'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
127 (0.367)
SELECT DISTINCT c.*, cd.*, GROUP_CONCAT(cep.parent_id
ORDER BY cep.sort_order ASC) as parent_ids
FROM oc_category c
LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id)
LEFT JOIN oc_category_extra_parents cep ON (c.category_id = cep.category_id)
WHERE c.category_id = '65' AND cd.language_id = '1' AND c.status = '1' GROUP BY c.category_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:4
128 (0.244)
SELECT *
FROM oc_product_option po
LEFT JOIN `oc_option` o ON (po.option_id = o.option_id)
LEFT JOIN oc_option_description od ON (o.option_id = od.option_id)
WHERE po.product_id = '9' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
129 (0.177)
SELECT *
FROM oc_product_to_category
WHERE product_id = '18'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
130 (0.301)
SELECT DISTINCT c.*, cd.*, GROUP_CONCAT(cep.parent_id
ORDER BY cep.sort_order ASC) as parent_ids
FROM oc_category c
LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id)
LEFT JOIN oc_category_extra_parents cep ON (c.category_id = cep.category_id)
WHERE c.category_id = '65' AND cd.language_id = '1' AND c.status = '1' GROUP BY c.category_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:4
131 (0.290)
SELECT *
FROM oc_product_option po
LEFT JOIN `oc_option` o ON (po.option_id = o.option_id)
LEFT JOIN oc_option_description od ON (o.option_id = od.option_id)
WHERE po.product_id = '18' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
132 (0.170)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
133 (0.168)
SELECT product_id
FROM `oc_product_option_value`
WHERE o2p_ids = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/controller/product/product.php:1539
134 (1.664)
CREATE TABLE IF NOT EXISTS `oc_tabs` ( `tabs_id` int(11) NOT NULL AUTO_INCREMENT, `products` text NOT NULL, `categories` text NOT NULL, `manufactures` text NOT NULL, `vendors` text NOT NULL, `stock_statuses` text NOT NULL, `special_filter` tinyint(1) NOT NULL DEFAULT '0', `customer_groups` text NOT NULL, `customer_group_all` tinyint(1) NOT NULL DEFAULT '1', `include_subcategories` tinyint(1) NOT NULL DEFAULT '0', `ingore_products` text NOT NULL, `ignore_categories` text NOT NULL, `ignore_manufacturers` text NOT NULL, `ignore_vendors` text NOT NULL, `stores` text NOT NULL, `allproducts` tinyint(4) NOT NULL, `status` int(11) NOT NULL, `sort_order` int(11) NOT NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`tabs_id`) ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3355
135 (1.355)
CREATE TABLE IF NOT EXISTS `oc_tabs_description` ( `tabs_id` int(11) NOT NULL, `language_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `description` text NOT NULL ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3378
136 (1.632)
CREATE TABLE IF NOT EXISTS `oc_blocks` ( `blocks_id` int(11) NOT NULL AUTO_INCREMENT, `products` text NOT NULL, `categories` text NOT NULL, `manufacturers` text NOT NULL, `vendors` text NOT NULL, `stock_statuses` text NOT NULL, `special_filter` tinyint(1) NOT NULL DEFAULT '0', `customer_groups` text NOT NULL, `customer_group_all` tinyint(1) NOT NULL DEFAULT '1', `include_subcategories` tinyint(1) NOT NULL DEFAULT '0', `ingore_products` text NOT NULL, `ignore_categories` text NOT NULL, `ignore_manufacturers` text NOT NULL, `ignore_vendors` text NOT NULL, `stores` text NOT NULL, `allproducts` tinyint(4) NOT NULL, `status` int(11) NOT NULL, `sort_order` int(11) NOT NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`blocks_id`) ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3385
137 (1.453)
CREATE TABLE IF NOT EXISTS `oc_blocks_description` ( `blocks_id` int(11) NOT NULL, `language_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `description` text NOT NULL ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3408
138 (0.185)
SELECT *
FROM oc_product_to_category
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
139 (0.212)
SELECT *
FROM oc_tabs t
LEFT JOIN oc_tabs_description td ON (t.tabs_id = td.tabs_id)
WHERE t.status = 1 AND td.language_id = '1'
ORDER BY t.sort_order ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3156
140 (0.173)
SELECT *
FROM oc_product_to_category
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
141 (0.296)
SELECT *
FROM oc_blocks t
LEFT JOIN oc_blocks_description td ON (t.blocks_id = td.blocks_id)
WHERE t.status = 1 AND td.language_id = '1'
ORDER BY t.sort_order ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3156
142 (0.308)
SELECT DISTINCT c.*, cd.*, GROUP_CONCAT(cep.parent_id
ORDER BY cep.sort_order ASC) as parent_ids
FROM oc_category c
LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id)
LEFT JOIN oc_category_extra_parents cep ON (c.category_id = cep.category_id)
WHERE c.category_id = '65' AND cd.language_id = '1' AND c.status = '1' GROUP BY c.category_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/category.php:4
143 (0.241)
SELECT DISTINCT pd.quantity AS product_quantity
FROM `oc_product_discount` AS pd
WHERE pd.product_id = '331' AND pd.customer_group_id = '1' AND pd.quantity > '1' AND (pd.date_start = '0000-00-00' OR pd.date_start < NOW())
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1545
144 (0.339)
SELECT ISNULL(psf.price) AND ISNULL(psp.percentage) AS apply_discounts
FROM `oc_product` AS p
LEFT JOIN `oc_product_special` AS psf ON (psf.product_id = p.product_id AND psf.discount_type = 'F' AND psf.price > 0 AND (psf.date_start = '0000-00-00' OR psf.date_start < NOW()) AND (psf.date_end = '0000-00-00' OR psf.date_end >= CURDATE()) AND psf.customer_group_id = '1')
LEFT JOIN `oc_product_special` AS psp ON (psp.product_id = p.product_id AND psp.discount_type = 'P' AND psp.percentage > 0 AND (psp.date_start = '0000-00-00' OR psp.date_start < NOW()) AND (psp.date_end = '0000-00-00' OR psp.date_end >= CURDATE()) AND psp.customer_group_id = '1')
WHERE p.product_id = '331' AND p.status = '1' AND p.date_available <= NOW() GROUP BY p.product_id
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1570
145 (0.426)
WITH RECURSIVE cat_anc AS (SELECT c.category_id AS desc_id, c.category_id AS anc_id, 0 AS depth
FROM `oc_category` c UNION ALL SELECT a.desc_id, c.parent_id AS anc_id, a.depth + 1
FROM cat_anc a
INNER JOIN `oc_category` c ON c.category_id = a.anc_id
WHERE c.parent_id != 0) SELECT DISTINCT cd.qty AS category_quantity
FROM `oc_product_to_category` AS ptc
INNER JOIN cat_anc ON (cat_anc.desc_id = ptc.category_id)
LEFT JOIN `oc_category_discount` AS cd ON (cd.category_id = cat_anc.anc_id AND (cat_anc.depth = 0 OR cd.affect = '1'))
WHERE ptc.product_id = '331' AND cd.status = '1' AND cd.customer_group_id = '1' AND cd.qty > '1' AND cd.qty IS NOT NULL AND (cd.date_start = '0000-00-00' OR cd.date_start <= NOW())
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1603
146 (0.288)
SELECT DISTINCT vnd.qty AS vendor_quantity
FROM `oc_vendor_discount` AS vnd
LEFT JOIN `oc_product` AS p ON (vnd.vendor = p.vendor)
WHERE p.product_id = '331' AND vnd.status = '1' AND vnd.customer_group_id = '1' AND vnd.qty > '1' AND (vnd.date_start = '0000-00-00' OR vnd.date_start <= CURDATE()) AND (vnd.date_end = '0000-00-00' OR vnd.date_end >= CURDATE())
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/discount.php:1636