SELECT `e`.*, `relation`.`product_id`, `relation`.`store_id` AS `item_store_id`, `t`.`tag_id`, `t`.`status` AS `tag_status`, `t`.`name` AS `tag_name`, IF(t.first_store_id = 0, relation.store_id, t.first_store_id) AS `store_id`, `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`, `cat_index`.`position` AS `cat_index_position`, IF(at_name.value_id > 0, at_name.value, at_name_default.value) AS `name`, `stock`.`qty` FROM `catalog_product_entity` AS `e`
INNER JOIN `tag_relation` AS `relation` ON relation.product_id = e.entity_id
INNER JOIN `tag` AS `t` ON t.tag_id = relation.tag_id
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 `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(3, 2, 4) AND cat_index.category_id = '2'
LEFT JOIN `catalog_product_entity_varchar` AS `at_name_default` ON (`at_name_default`.`entity_id` = `e`.`entity_id`) AND (`at_name_default`.`attribute_id` = '71') AND `at_name_default`.`store_id` = 0
LEFT JOIN `catalog_product_entity_varchar` AS `at_name` ON (`at_name`.`entity_id` = `e`.`entity_id`) AND (`at_name`.`attribute_id` = '71') AND (`at_name`.`store_id` = 1)
INNER JOIN `cataloginventory_stock_status` AS `stock` ON e.entity_id = stock.product_id WHERE (relation.tag_id = '17') AND (relation.store_id IN ('1')) AND (relation.active = 1) GROUP BY `e`.`entity_id` ORDER BY `stock`.`stock_status` desc, `e`.`created_at` desc LIMIT 36
-
-
-
Giá thường:
540.000 ₫
Special Price
340.000 ₫
5419
-
-
Giá thường:
900.000 ₫
Special Price
790.000 ₫
5227
-
-
-
Giá thường:
420.000 ₫
Special Price
360.000 ₫
5120
-
-