Plan an engagement party to remember with these engagement party supplies! You can find everything from invitations and tableware to decorations and balloons.
Plan an engagement party to remember with these engagement party supplies! You can find everything from invitations and tableware to decorations and balloons.
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`, IFNULL(review_summary.reviews_count, 0) AS `reviews_count`, IFNULL(review_summary.rating_summary, 0) AS `rating_summary`, `stock_status_index`.`is_salable`, `inventory_reservation`.`stock_reservation`, SUM(IFNULL(stock_status_index.quantity, 0)+IFNULL(stock_reservation, 0)) AS `stock_qty` FROM `catalog_product_entity` AS `e`
INNER JOIN `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 = '6'
LEFT JOIN `review_entity_summary` AS `review_summary` ON e.entity_id = review_summary.entity_pk_value AND review_summary.store_id = 6 AND review_summary.entity_type = (SELECT `review_entity`.`entity_id` FROM `review_entity` WHERE (entity_code = 'product'))
INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id AND (product.created_in <= '1679668620' AND product.updated_in > '1679668620')
LEFT JOIN `inventory_stock_6` AS `stock_status_index` ON product.sku = stock_status_index.sku
LEFT JOIN (
SELECT sku,
stock_id,
SUM(quantity) AS stock_reservation
FROM inventory_reservation
GROUP BY sku
) AS `inventory_reservation` ON inventory_reservation.sku=e.sku AND inventory_reservation.stock_id=6 WHERE ((e.entity_id IN (2881, 5249, 12845, 2835, 19037, 6236, 2198, 19026, 19032, 2414, 5498, 15357, 19033, 7040, 19025, 1862, 2660, 5293, 19034, 19028, 19029, 12424, 28965, 28956, 28971, 28953, 2215, 14371, 3127, 7054, 17609, 14363, 23584, 19021, 1580, 2119, 15340, 22980, 5248, 2136, 3125, 1581, 2661, 12026, 14365, 12361, 11995, 15270))) AND (e.created_in <= '1679668620') AND (e.updated_in > '1679668620') GROUP BY `e`.`sku` ORDER BY FIELD(e.entity_id,2881,5249,12845,2835,19037,6236,2198,19026,19032,2414,5498,15357,19033,7040,19025,1862,2660,5293,19034,19028,19029,12424,28965,28956,28971,28953,2215,14371,3127,7054,17609,14363,23584,19021,1580,2119,15340,22980,5248,2136,3125,1581,2661,12026,14365,12361,11995,15270)