Last viewed products

28 ms
  • SELECT p.id, p.parent_id, p.type_id, p.title, p.nodes, p.level, p.is_enabled, p.theme_id, p.page_description, t.module, t.handler FROM pages p INNER JOIN pages_types t ON p.type_id=t.id WHERE p.path='/slot-car-tools/' [0 ms]
  • SELECT c.id, COALESCE(t.title, t.name, c.title, c.name) AS title, c.type, c.filter_id, c.nodes, t.content, t.meta_description FROM categories c INNER JOIN categories_translations t ON c.id=t.category_id AND t.lang='en' WHERE c.is_enabled=1 AND t.page_id=21 [0 ms]
  • SELECT COUNT(p.id) FROM products p INNER JOIN products_translations t ON p.id=t.product_id AND t.lang='en' INNER JOIN products_availabilities a ON p.availability_id=a.id LEFT JOIN products_prices pp ON p.id=pp.product_id AND pp.min_quantity=0 LEFT JOIN products_prices_customer ppc ON ppc.customer_id=0 AND p.id=ppc.product_id AND ppc.min_quantity=0 LEFT JOIN products_discounts_customer pdc ON pdc.customer_id=0 AND p.id=pdc.product_id AND pdc.min_quantity=0 LEFT JOIN products_discounts_group pdg ON pdg.discount_group_id=0 AND p.id=pdg.product_id AND pdg.min_quantity=0 INNER JOIN products_categories_join pc ON pc.category_id=48 AND p.id=pc.product_id WHERE p.is_visible=1 [1 ms]
  • SELECT c.id, COALESCE(t.name, c.name) AS title, pg.path FROM categories c INNER JOIN categories_translations t ON c.id=t.category_id AND t.lang='en' INNER JOIN pages pg ON t.page_id=pg.id WHERE c.id IN(1,4,48) AND c.level>0 ORDER BY c.level ASC [0 ms]
  • SELECT c.id, COALESCE(t.name, c.name) AS name, c.image, pg.path FROM categories c INNER JOIN categories_translations t ON c.id=t.category_id AND t.lang='en' INNER JOIN pages pg ON t.page_id=pg.id WHERE c.parent_id=48 AND c.is_enabled=1 ORDER BY c.position ASC, c.id ASC [0 ms]
  • SELECT c.id, COALESCE(t.name, c.name) AS name, c.image, pg.path FROM categories c INNER JOIN categories_translations t ON c.id=t.category_id AND t.lang='en' INNER JOIN pages pg ON t.page_id=pg.id WHERE c.is_enabled=1 AND c.parent_id=4 ORDER BY c.position ASC, c.id ASC [0 ms]
  • SELECT p.id, COALESCE(t.name, p.name) AS name, p.image, p.is_available, p.available_quantity, p.allow_negative_quantity, p.max_visible_quantity, p.available_date, p.ordering_code, t.path, t.introduction, a.label AS availability_label, a.css_class AS availability_css_class, s.label AS sticker_label, s.css_class AS sticker_css_class, ROUND(LEAST(pp.price, COALESCE(ppc.price, pp.price)) * COALESCE(1 - (COALESCE(pdc.value, pdg.value, 0) / 100), 1), 2) AS price, ROUND(pp.price, 2) AS price_before, COALESCE(pvr.vat_rate, cvr.vat_rate, bvr.vat_rate, dvr.vat_rate) AS vat_rate, fav.product_id IS NOT NULL AS is_favourite FROM products p INNER JOIN products_translations t ON p.id=t.product_id AND t.lang='en' INNER JOIN products_availabilities a ON p.availability_id=a.id LEFT JOIN products_prices pp ON p.id=pp.product_id AND pp.min_quantity=0 LEFT JOIN products_prices_customer ppc ON ppc.customer_id=0 AND p.id=ppc.product_id AND ppc.min_quantity=0 LEFT JOIN products_discounts_customer pdc ON pdc.customer_id=0 AND p.id=pdc.product_id AND pdc.min_quantity=0 LEFT JOIN products_discounts_group pdg ON pdg.discount_group_id=0 AND p.id=pdg.product_id AND pdg.min_quantity=0 LEFT JOIN products_stickers s ON p.sticker_id=s.id LEFT JOIN products_vat_rates pv ON p.id=pv.product_id AND pv.country_id=84 LEFT JOIN orders_vat_rates pvr ON pv.vat_rate_id=pvr.id LEFT JOIN orders_vat_rates cvr ON cvr.country_id=84 AND cvr.is_default=1 LEFT JOIN products_vat_rates bv ON p.id=bv.product_id AND bv.country_id=1 LEFT JOIN orders_vat_rates bvr ON bv.vat_rate_id=bvr.id LEFT JOIN orders_vat_rates dvr ON dvr.country_id=1 AND dvr.is_default=1 LEFT JOIN carts_favourites fav ON p.id=fav.product_id AND fav.cart_id=0 INNER JOIN products_categories_join pc ON pc.category_id=48 AND p.id=pc.product_id WHERE p.is_visible=1 ORDER BY p.name ASC, p.id ASC LIMIT 0,24 [1 ms]
  • SELECT code, symbol_before, symbol_after, decimals, decimal_separator, thousands_separator, replace_zero_decimals, conversion_rate FROM orders_currencies WHERE id=1 AND is_enabled=1 [0 ms]
  • SELECT p.id, COALESCE(t.name, p.name) AS name, p.image, p.is_available, p.available_quantity, p.allow_negative_quantity, p.max_visible_quantity, p.available_date, p.ordering_code, t.path, t.introduction, a.label AS availability_label, a.css_class AS availability_css_class, s.label AS sticker_label, s.css_class AS sticker_css_class, ROUND(LEAST(pp.price, COALESCE(ppc.price, pp.price)) * COALESCE(1 - (COALESCE(pdc.value, pdg.value, 0) / 100), 1), 2) AS price, ROUND(pp.price, 2) AS price_before, COALESCE(pvr.vat_rate, cvr.vat_rate, bvr.vat_rate, dvr.vat_rate) AS vat_rate FROM products p INNER JOIN products_translations t ON p.id=t.product_id AND t.lang='en' INNER JOIN products_availabilities a ON p.availability_id=a.id INNER JOIN products_prices pp ON p.id=pp.product_id AND pp.min_quantity=0 LEFT JOIN products_prices_customer ppc ON ppc.customer_id=0 AND p.id=ppc.product_id AND ppc.min_quantity=0 LEFT JOIN products_discounts_customer pdc ON pdc.customer_id=0 AND p.id=pdc.product_id AND pdc.min_quantity=0 LEFT JOIN products_discounts_group pdg ON pdg.discount_group_id=0 AND p.id=pdg.product_id AND pdg.min_quantity=0 LEFT JOIN products_stickers s ON p.sticker_id=s.id LEFT JOIN products_vat_rates pv ON p.id=pv.product_id AND pv.country_id=84 LEFT JOIN orders_vat_rates pvr ON pv.vat_rate_id=pvr.id LEFT JOIN orders_vat_rates cvr ON cvr.country_id=84 AND cvr.is_default=1 LEFT JOIN products_vat_rates bv ON p.id=bv.product_id AND bv.country_id=1 LEFT JOIN orders_vat_rates bvr ON bv.vat_rate_id=bvr.id LEFT JOIN orders_vat_rates dvr ON dvr.country_id=1 AND dvr.is_default=1 WHERE p.id IN(14,7,904,8) AND p.is_visible=1 LIMIT 20 [0 ms]
  • SELECT MIN(ROUND(LEAST(pp.price, COALESCE(ppc.price, pp.price)) * COALESCE(1 - (COALESCE(pdc.value, pdg.value, 0) / 100), 1), 2)) AS price_min, MAX(ROUND(LEAST(pp.price, COALESCE(ppc.price, pp.price)) * COALESCE(1 - (COALESCE(pdc.value, pdg.value, 0) / 100), 1), 2)) AS price_max FROM products p INNER JOIN products_categories_join pc ON pc.category_id=48 AND p.id=pc.product_id LEFT JOIN products_prices pp ON p.id=pp.product_id AND pp.min_quantity=0 LEFT JOIN products_prices_customer ppc ON ppc.customer_id=0 AND p.id=ppc.product_id AND ppc.min_quantity=0 LEFT JOIN products_discounts_customer pdc ON pdc.customer_id=0 AND p.id=pdc.product_id AND pdc.min_quantity=0 LEFT JOIN products_discounts_group pdg ON pdg.discount_group_id=0 AND p.id=pdg.product_id AND pdg.min_quantity=0 WHERE p.is_visible=1 [0 ms]
  • SELECT c.id, COALESCE(t.name, c.name) AS name, c.image, pg.path FROM categories c INNER JOIN categories_translations t ON c.id=t.category_id AND t.lang='en' INNER JOIN pages pg ON t.page_id=pg.id WHERE c.is_enabled=1 AND c.parent_id=4 ORDER BY c.position ASC, c.id ASC [0 ms]
  • SELECT c.id, c.parent_id, COALESCE(t.name, c.name) AS name, c.image, pg.path, pc.id IS NOT NULL AS has_categories FROM categories c INNER JOIN categories_translations t ON c.id=t.category_id AND t.lang='en' INNER JOIN pages pg ON t.page_id=pg.id LEFT JOIN categories pc ON c.id=pc.parent_id WHERE c.is_enabled=1 AND c.parent_id IN(4,48) GROUP BY c.id ORDER BY c.position ASC, c.id ASC [2 ms]
  • SELECT id, parent_id, type_id, title, lang, path FROM pages WHERE lang='en' AND level=1 AND is_enabled=1 AND is_visible=1 ORDER BY level ASC, position ASC, id ASC [0 ms]