Home & Garden

🔍 InstockProductsFirst Debug Info

SQL Query:

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` 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 = '1'
 LEFT JOIN `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 `review_entity` WHERE (entity_code = 'product'))
 LEFT JOIN `cataloginventory_stock_status` AS `stock_status` ON e.entity_id = stock_status.product_id AND stock_status.website_id = 0
 LEFT JOIN (SELECT `cpsl`.`parent_id`, MAX(stock_child.stock_status) AS `max_stock` FROM `catalog_product_super_link` AS `cpsl`
 LEFT JOIN `cataloginventory_stock_status` AS `stock_child` ON cpsl.product_id = stock_child.product_id AND stock_child.website_id = 0 GROUP BY `cpsl`.`parent_id`) AS `config_stock` ON e.entity_id = config_stock.parent_id ORDER BY CASE 
                WHEN e.type_id = "configurable" THEN IFNULL(config_stock.max_stock, 0)
                ELSE IFNULL(stock_status.stock_status, 0)
            END DESC

First 20 Products (Stock Status Check):

IN STOCK: 25 | OUT OF STOCK: 0 | First In-Stock at position: 1
# ID SKU Name Stock Status
1 1716 276987506055 Women's Shannon Heels with Memory Foam Insole Sz 6 IN STOCK (1)
2 1720 254107820007 Ornate Cast Iron Shelf Bracket Decorative Corner S IN STOCK (1)
3 1721 276992410457 Mcfarlane Batman DC Retro 66 Classics TV Series W5 IN STOCK (1)
4 1722 276992464944 McFarlane DC Retro 66 Classic TV Series Radioactiv IN STOCK (1)
5 1723 276992467087 Hasbro Star Wars George Lucas Stormtrooper Action IN STOCK (1)
6 1741 277012444440 New Brielle Home Cotton Jersey Knit (T-Shirt) Shee IN STOCK (1)
7 2059 286382333221 Womens Paulina Kitten Heel Sling Back Pointed Toe IN STOCK (1)
8 2061 254107820032 White Cast Iron Shelf Bracket Ornate Scroll Wall M IN STOCK (1)
9 2356 286452062505 Women's Shannon Heels with Memory Foam Insole Sz 7 IN STOCK (1)
10 2379 286479095271 Yardbird - Harriet Fixed and Swivel Chair Cover - IN STOCK (1)
11 2380 286479184706 Yardbird Harriet Sofa Cover CVHA100 Beige Outdoor IN STOCK (1)
12 2381 286485819828 MOBICam HDX Smart HD Pan & Tilt Wi-Fi Baby Monitor IN STOCK (1)
13 2383 286491389772 MOBICam Pro 2 Pk Smart HD Pan Tilt Wi-Fi Baby Moni IN STOCK (1)
14 2386 286497320411 Matchbox Twenty Where Light Goes Vinyl LP Alternat IN STOCK (1)
15 2389 286498061560 LSU Tigers Stickers Wall Art Self-Adhesive Diecut IN STOCK (1)
16 2392 286502060821 Gamma Photon Outdoor Pickleballs High-Vis Yellow U IN STOCK (1)
17 2393 286502109409 Farberware Professional Secure Fit Funnel Removabl IN STOCK (1)
18 2394 286513849072 Funko Pop! Deluxe: Jabba's Skiff: Luke Skywalker - IN STOCK (1)
19 2396 286514205283 Absolutely Fabulous: Absolutely All of It! New DVD IN STOCK (1)
20 2397 286514279050 Horror Hall of Fame Movie 5 DVD Boxset 26 Classic IN STOCK (1)
21 2398 286514389783 The Raid: Redemption [New 4K UHD Blu-ray] Ltd Ed, IN STOCK (1)
22 2399 286514692829 Dr. Strangelove: Or How I Learned To..Love The Bom IN STOCK (1)
23 2402 286515110514 Judy Blume Welcome to the Hilarious World of Fudge IN STOCK (1)
24 2403 286515151853 THE BEST OF PENTATONIX CHRISTMAS [10/25] NEW CD Se IN STOCK (1)
25 2404 277064207987 Carrie Underwood My Gift First-Ever Christmas Albu IN STOCK (1)

Quick Fix - Add this to your theme's catalog_category_view.xml:

<referenceBlock name="category.products.list">
    <action method="setData">
        <argument name="sort_by" xsi:type="string">stock_status</argument>
    </action>
</referenceBlock>
View as Grid List

Items 1-12 of 25

Set Descending Direction
Page
per page
Copyright © 2023-present Chillicothe Market All rights reserved.