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

Pieejamība: Ir pieejams Noliktavā 4
Modelis dd3829013

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
     

Preces apraksts
test 336
Attēls Produkta nosaukums Cena Modelis Noliktavā Daudzums
Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT 5.06€ / gab 3829013
Ir pieejams Noliktavā 1
/ gab
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
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
aa Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT aa Manometrs 1bar, 63mm, 1/4 4011 hor., HORIZONT 5.06€ / gab aa3829013
Ir pieejams Noliktavā 3
/ gab
HP EliteBook 850 G5 HP EliteBook 850 G5 900.00€ 123456
Ir pieejams Noliktavā 20
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: 147, Total time: 197.998 ms [By time] [By id] [By file]
1 (0.282)
SET time_zone = '+03:00'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/time_settings.php:139
2 (1.103)
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 (1.153)
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.453)
SELECT *
FROM oc_cart
WHERE api_id = '0' AND customer_id = '0' AND session_id = '60d3a564618962ac58c407bf092d301c'
/var/www/elvijs.nomasveikals.lv/web/system/library/cart/cart.php:157
5 (0.672)
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 (1.205)
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 = '336' 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 (34.241)
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 ('336') 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.528)
SELECT *
FROM oc_product p
WHERE p.product_id IN (336)
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2567
9 (20.853)
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 ('336') 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.308)
SHOW TABLES LIKE 'oc_vehicle_application'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3108
11 (0.909)
SHOW TABLES LIKE 'oc_product_fitment'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:3109
12 (0.186)
SELECT COUNT(*) AS total
FROM `oc_product_fitment`
WHERE product_id = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1540
13 (0.219)
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 = '336'
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.165)
SELECT *
FROM oc_product_to_category
WHERE product_id = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
15 (0.313)
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 = '336'
ORDER BY priority DESC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2549
16 (0.243)
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.859)
SHOW TABLES LIKE 'oc_sales_document'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:968
18 (0.593)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'code'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
19 (0.489)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'name'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
20 (0.474)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'filename'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
21 (0.469)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'relative_path'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
22 (0.457)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'extension'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
23 (0.443)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'mime_type'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
24 (0.459)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'source'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
25 (0.585)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'date_added'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
26 (0.632)
SHOW COLUMNS
FROM `oc_sales_document` LIKE 'date_modified'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
27 (0.692)
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.516)
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.545)
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.506)
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.992)
SHOW TABLES LIKE 'oc_sales_document_link'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:968
32 (0.512)
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.462)
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.557)
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.496)
SHOW COLUMNS
FROM `oc_sales_document_link` LIKE 'context'
/var/www/elvijs.nomasveikals.lv/web/system/library/sales_document_registry.php:976
36 (0.507)
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.556)
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.627)
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.629)
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.581)
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 = '336' 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.447)
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.999)
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.349)
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.330)
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 = '336' 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.196)
SELECT *
FROM oc_product_image
WHERE product_id = '336'
ORDER BY sort_order ASC
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1189
46 (0.284)
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.378)
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 = '336' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
48 (1.001)
SHOW TABLES LIKE 'oc_product_upsell'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1264
49 (0.298)
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 = '336' 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.794)
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.514)
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.492)
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.522)
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 (0.926)
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.230)
SELECT language_id, code
FROM `oc_language`
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/rental/schema_service.php:109
56 (0.266)
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.219)
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.206)
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.183)
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.289)
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.447)
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.585)
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.605)
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.787)
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 (1.647)
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.233)
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.261)
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.196)
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.627)
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.484)
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 (1.308)
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.284)
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.474)
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 (2.458)
SHOW TABLES LIKE 'oc_url_alias'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:239
75 (0.355)
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.480)
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.367)
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.394)
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.344)
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 (2.110)
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.820)
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 (2.228)
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.694)
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.369)
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 (1.503)
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 (2.339)
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.637)
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.574)
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.328)
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.090)
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.307)
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.023)
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 (1.631)
SHOW TABLES LIKE 'oc_url_alias'
/var/www/elvijs.nomasveikals.lv/web/system/library/nomasveikals/booking/schema_service.php:239
94 (0.323)
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.302)
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.284)
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.295)
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.351)
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.464)
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.476)
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 = '336' 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.225)
SELECT *
FROM oc_product_to_layout
WHERE product_id = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1466
102 (0.282)
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.459)
SELECT seo_keyword
FROM `oc_product_description`
WHERE `product_id` = '336' 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.320)
SELECT seo_keyword
FROM `oc_product_description`
WHERE `product_id` = '336' 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.271)
SELECT seo_keyword
FROM `oc_product_description`
WHERE `product_id` = '336' 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.277)
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.508)
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.399)
SELECT *
FROM oc_product_related pr
LEFT JOIN oc_product p ON (pr.related_id = p.product_id)
WHERE pr.product_id = '336' 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 (0.895)
SELECT *
FROM oc_product p
LEFT JOIN oc_product_to_category p2c ON (p.product_id = p2c.product_id)
WHERE p.product_id != '336' 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 (24.208)
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 ('330','332','18','331','310') 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 (1.119)
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 (330,332,18,331,310) 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,330,332,18,331,310)
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2619
112 (0.270)
SELECT *
FROM oc_product p
WHERE p.product_id IN (330,332,18,331,310)
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:2567
113 (13.705)
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 ('18','310','330','331','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.234)
SELECT *
FROM oc_product_to_category
WHERE product_id = '330'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
115 (0.325)
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.249)
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 = '330' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
117 (0.225)
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.218)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '330'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
119 (0.261)
SELECT *
FROM oc_product_to_category
WHERE product_id = '332'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
120 (0.353)
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.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 = '332' AND od.language_id = '1'
ORDER BY o.sort_order
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1083
122 (0.171)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '332'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
123 (0.157)
SELECT *
FROM oc_product_to_category
WHERE product_id = '18'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
124 (0.272)
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
125 (0.217)
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
126 (0.167)
SELECT *
FROM oc_product_to_category
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
127 (0.248)
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.207)
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
129 (0.172)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '331'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
130 (0.216)
SELECT *
FROM oc_product_to_category
WHERE product_id = '310'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
131 (0.285)
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
132 (0.298)
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
133 (0.179)
SELECT manufacturer_id
FROM oc_product
WHERE product_id = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/tool/product_label.php:81
134 (0.163)
SELECT product_id
FROM `oc_product_option_value`
WHERE o2p_ids = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/controller/product/product.php:1539
135 (2.192)
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
136 (1.482)
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
137 (1.492)
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
138 (1.647)
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
139 (0.290)
SELECT *
FROM oc_product_to_category
WHERE product_id = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
140 (0.342)
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
141 (0.276)
SELECT *
FROM oc_product_to_category
WHERE product_id = '336'
/var/www/elvijs.nomasveikals.lv/web/catalog/model/catalog/product.php:1482
142 (0.414)
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
143 (0.584)
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
144 (0.521)
SELECT DISTINCT pd.quantity AS product_quantity
FROM `oc_product_discount` AS pd
WHERE pd.product_id = '336' 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
145 (0.765)
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 = '336' 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
146 (0.707)
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 = '336' 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
147 (0.608)
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 = '336' 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