BE ORGANISED WITH BASKETS, STORAGE BOXES AND CRATES
A tidy home is a happy home! Does your house magically fill up with odds and ends that take up space and create a mess? If so, the solution to this problem lies in practical storage.
SELECT `e`.*, `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`, `_inv`.`stock_status`, IFNULL(_inv.stock_status,0) AS `in_stock`, IFNULL(review_summary.reviews_count, 0) AS `reviews_count`, IFNULL(review_summary.rating_summary, 0) AS `rating_summary`, `stock_status_index`.`stock_status` AS `is_salable` FROM `jd_catalog_product_entity` AS `e`
INNER JOIN `jd_catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '1'
LEFT JOIN `jd_cataloginventory_stock_status` AS `_inv` ON _inv.product_id = e.entity_id
LEFT JOIN `jd_review_entity_summary` AS `review_summary` ON e.entity_id = review_summary.entity_pk_value AND review_summary.store_id = 1 AND review_summary.entity_type = (SELECT `review_entity`.`entity_id` FROM `jd_review_entity` AS `review_entity` WHERE (entity_code = 'product'))
LEFT JOIN `jd_cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id AND stock_status_index.website_id = 0 AND stock_status_index.stock_id = 1 WHERE (e.entity_id IN (16249, 21470, 14458, 21463, 21478, 20604, 14459, 15151, 21469, 12188, 12189, 12206, 12208, 13927, 20737, 20606, 22765, 22766, 22825, 20605, 21546, 14470, 14471, 21461, 21464, 21465, 21545, 21549, 21582, 21583, 16547, 20528, 21547, 22155, 21548, 14472, 13060, 13075, 21467, 20401, 13070, 13106, 13950, 13888, 22268, 20670, 13078, 13058, 13053, 13054, 13109, 13110, 13050, 13051, 13077, 22156, 15154, 21279, 21462, 13046, 13048, 21468, 20402, 21511, 22888, 12168, 12169, 12172, 20750, 20751, 21086, 20403, 20404, 14473, 12193, 12194, 12195, 12196, 12197, 12198, 12199, 12200, 12201, 20705, 13117, 20738, 20529, 13129, 14462, 21466)) ORDER BY `in_stock` DESC
Validate your login
Sign In
Create New Account