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: 19 | OUT OF STOCK: 0 | First In-Stock at position: 1
# ID SKU Name Stock Status
1 1192 229207820003 Cast Iron Plaque Sign - Please Close The Gate - Bl IN STOCK (1)
2 1729 261207820000 Funny Aluminum Sign No Poop Heads Allowed Men Man IN STOCK (1)
3 1734 163807820003 Aluminum Sign Firemans Cross White Firefighting Pl IN STOCK (1)
4 1740 142307820000 Aluminum Sign Coffee Cappuccino Mocha Espresso Fra IN STOCK (1)
5 1744 261207820002 Funny Aluminum Sign No Poop Heads Allowed Man & Wo IN STOCK (1)
6 1766 163807820000 Firefighting Firemans Cross Hanging Wall Plaque Ru IN STOCK (1)
7 1819 144307820001 Personalized Man Cave Aluminum Sign Custom Dartboa IN STOCK (1)
8 1822 266107820001 Funny Dachshund Sign Don't Trip Over My Wiener Dog IN STOCK (1)
9 1824 273907820000 Cast Iron Skillet Wall Hanging Holstein Dairy Cow IN STOCK (1)
10 1842 137607820000 Aluminum Sign You Need A Beer Home Bar Man Cave Wa IN STOCK (1)
11 1861 144907820000 Aluminum Sign Kitchen Rules Wall Hanging Plaque 12 IN STOCK (1)
12 1868 198507820002 Flamingo Welcome Plaque Brown Cast Iron Beach Them IN STOCK (1)
13 1876 229207820004 Cast Iron Plaque Sign - Beware Of The Dog - Black IN STOCK (1)
14 1880 285024495455 Please Close The Gate Cast Iron Plaque Sign Black IN STOCK (1)
15 2364 148107820000 Video Gaming Aluminum Sign Gamer Zone Characters C IN STOCK (1)
16 2366 261207820001 Funny Aluminum Sign No Poop Heads Allowed Women Ho IN STOCK (1)
17 2371 163807820004 Aluminum Sign Firemans Cross Diamond Plate Firefig IN STOCK (1)
18 1164 229207820005 Please Close The Gate Sign Decorative Plaque Cast IN STOCK (1)
19 1166 198507820003 Double Sided Hanging Welcome Sign Ornate Cast Iron 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 19

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