SELECT DISTINCT `e`.*, `cat_index`.`position` AS `cat_index_position`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `at_inventory_in_stock`.`is_in_stock` AS `inventory_in_stock`, `stock_qty_1`.`stock_status` AS `salable`, `stock_qty_1`.`qty`, `cpev`.`value` AS `popularity_manual` FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='2' AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '2' INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0 INNER JOIN `cataloginventory_stock_item` AS `at_inventory_in_stock` ON (at_inventory_in_stock.`product_id`=e.entity_id) AND ((at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock=1 AND at_inventory_in_stock.is_in_stock=1) OR (at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock=0) OR (at_inventory_in_stock.use_config_manage_stock = 1 AND at_inventory_in_stock.is_in_stock=1) AND stock_id = '1' ) LEFT JOIN `cataloginventory_stock_status` AS `stock_qty_1` ON stock_qty_1.stock_id=1 AND e.entity_id = stock_qty_1.product_id AND stock_qty_1.website_id=1 LEFT JOIN `catalog_product_entity_varchar` AS `cpev` ON e.entity_id = cpev.entity_id AND cpev.attribute_id=227 AND cpev.store_id=2 WHERE ((`e`.`sku`='S8462')) ORDER BY `salable` DESC, cast(popularity_manual as signed) DESC LIMIT 60

Товар дня

motionmailapp.com

Нет товаров, соответствующих вашему выбору.

Пожалуйста, подождите...