Questions tagged [out-of-stock]

Denotes questions about unavailability of products or the products with zero quantity.

Filter by
Sorted by
Tagged with
14
votes
2answers
7k views

Move out of stock products to the end of the catalog product list [closed]

I need to push out of stock products to the end of catalog list Please guide me how to solve this problem, or that file to dig so far I found Toolbar.php, and working around it
13
votes
6answers
22k views

Out of stock products still appear in the frontend, search and others - Magento 2.1.0

I see that my installation of magento 2.1.0 has a problem! Refuses to hide out of stock products from search and category pages! I cleared the cache, I reindexed, but no luck! Can you give me any ...
9
votes
4answers
5k views

How to get product collection of out of stock items - opposite of addInStockFilterToCollection()?

I have a requirement to display a category's products in two lists - one for in stock items, the other for out of stock items. I'm using Mage::getSingleton('cataloginventory/stock')->...
8
votes
2answers
728 views

Stock notification e-mails for configurable products

I recently ran into a problem with a store, when I started noticing certain stock notification e-mails weren't being sent. All of the e-mails for simple products are fine, but when it comes to ...
8
votes
1answer
2k views

How to change programmatically product stock status when product sku doesn't appears in provider data feed?

I'm using Magento CE 1.9.1 I made an import script to import products from a provider xml feed. This feed is update everyday at 3 a.m . My profider send me in his xml only products where are in stock ...
7
votes
2answers
11k views

Out of stock products still appear in the frontend

I don't want out of stock products to be appeared in my magento website. I have done the following to ensure I don't see my configurable product in the frontend. Configurable product inventory - out ...
6
votes
3answers
1k views

Display In-Stock Seller/Vendor on top of product view page

we have marketplace multi vendor/seller site. we are displaying multiple sellers on product view page. initially one Product is uploaded by seller "kidsdial4" , than same product is assigned by ...
6
votes
2answers
2k views

Magento 2 get out of stock products in collection

I am trying to get all the products from the collection(both in stock and out of stock) but with no luck at all. The setting on admin needs to hide the out of stock products from frontend but I want ...
5
votes
2answers
2k views

how to get the stock status without loading the whole product-efficient way

I have the sku in the page and I want to see if product is in stock or out of stock and to do that I have done this: $firstProductId = Mage::getSingleton('catalog/product')->getIdBySku('mysku'); ...
5
votes
2answers
1k views

How to filter loadedProductCollection to show out of stock products within a specific period?

I have a huge catalog and I've enabled "Display out of stock products" to show the out of stock products too in the listing page. Since my catalog is huge and 80% of the products are out of stock, I ...
5
votes
1answer
3k views

Magento2: Configurable product showing out of stock child products

I'm facing issue that configurable products showing out of stock associated products even if the backend setting "Display Out of Stock Products" at Configuration->Catalog->Inventory->Stock Options is ...
5
votes
2answers
921 views

Create product alert stock block

I'm working on an ajax module and I have to create a product alert button block. I'm using this code to create the block: $stockAlertBlock = $this->getLayout()->createBlock( '...
5
votes
1answer
3k views

Display Out of Stock Configuration not working in magento1.9

I have a configurable product with 3 simple products associated to it that were added via REST. I have set the "Display Out of Stock Products" option in System->Configuration->Inventory to "Yes" ...
5
votes
1answer
1k views

Stock availability status on Configurable simple products

On a Configurable product, the following gets displayed if the Configurable product has stock /is saleable. However, when one of the items in the dropdown of Simple products is actually out of stock ...
4
votes
2answers
6k views

Differences between some stock methods

Modifying product page I have encountered some methods touching stock and product availibility: $_product->isSaleable()); $_product->isSalable()); $_product->isAvailable()); $_product->...
4
votes
2answers
3k views

Magento 2 - Unlimited stock of a product

Our products are digital goods which do not have a quantity limited. Is there a way to configure a product with a unlimited stock quantity?
4
votes
3answers
959 views

Display out of stock product only for specific Category in Magento2

I have to show out of stock products only in certain categories by hiding them in all other categories. used below plugin to implement, that is not working. Vendor/Module/etc/di.xml <type name="...
4
votes
3answers
4k views

Hide out of stock products in Layered Navigation

I will describe my magento issue as best I can. I have shoes size filter in Layered Navigation but for some reason when i press ex. "size 43" then the results display shoes that had number 43 and now ...
4
votes
3answers
3k views

Product not changing to 'Out of stock' even though qty has gone below minimum

I have followed the steps of the very helpful solution on Add to cart for out of stock products Now I can have products with the "Qty for Item's Status to Become Out of Stock" as “-1” instead of “0” ...
3
votes
3answers
7k views

How to get only out of stock products in magento 2

How to get out of stock product collection using object manager. I retrieve product collection $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productCollection = $...
3
votes
4answers
6k views

Magento 2 : How To Show Price of “out of stock” Products

I want to show the price of product, that is "out of stock". Currently it is not shown price for the products in my magento 2.1.3 installation. How to make visible it?
3
votes
3answers
2k views

How to get product collection with both in stock and out of stock products in Magento 2.1

I'm using below code to get the product collection <?php namespace Vendor\Module\Block\Product; use Magento\Framework\View\Element\Template; use Magento\Catalog\Model\ResourceModel\Product\...
3
votes
2answers
1k views

Stock item not put back in stock automatically upon reaching positive inventory

When a stock item reaches QTY 0 or negative (granted backorders are disabled & QTY for item to become out of stock is 0 as well), is_in_stock is set to 0 automatically. However, when it then ...
3
votes
2answers
214 views

In stock & Out of stock products are displaying randomly

we are using following extension in our site.... 1)Search extension : https://mirasvit.com/magento-extensions/sphinx-search-ultimate.html . From this we can implement feature that if we search for ...
3
votes
1answer
105 views

Notification to the admin when any product goes out of stock in magento 2

Notification to the admin when any product goes out of stock in Magento 2 I used a module from GitHub to send a notification mail to the admin when any product stock quantity below 20,10,5. Also, I ...
3
votes
3answers
2k views

Move out of stock product in category view last if qty is 0

I use a module to display out of stock products last in the category view. That worked fine, but now I enabled the Magento option to purchase products that are out of stock. (The default Magento ...
3
votes
1answer
525 views

Configurable parent product display out of stock

Configurable product shows out of stock whether child product still in stock. Can't figure out what to do to show in stock parent product if any child product have stock. Please help me .
3
votes
1answer
5k views

Display Out of Stock product and disable Add to Cart button

I have a store where product quantity are set to 0. I have enabled back orders if qty is 0 for a product, however I would like to disable Add to cart in case product is out of stock. This means Add to ...
3
votes
0answers
250 views

How to display out stock products in one category if disabled out of stock products

Below script shows out of stock products in only one category with Display Out Of Stock option yes in the admin by using helper file. Here is the code: <?php namespace Vendor\Module\Helper\...
3
votes
0answers
355 views

Custom REST API for fetch all product with stock information

I am creating custom rest API for getting all products including out of stock products too but I am not able to get out of stock products. /** * Get products with filter. * * @param string $...
3
votes
0answers
199 views

How to Display Out of Stock Simple Products For Bundle Product Types (Magento 2.2.4)

Is there any way to show out of stock simple products which are assigned to a bundle product. Current functionality hides out of stock simple products from the bundle product page. I know we can ...
3
votes
0answers
361 views

Magento 2 rest api: Ignore out of stock products in get products search criteria

I am using the following api call to get products. {{base_url}}/rest/V1/products?searchCriteria[filter_groups][0][filters][0][condition_type]=like&searchCriteria[filter_groups][0][filters][0][...
3
votes
0answers
569 views

Configurable product still displayed but accosiated simple product is out of stock

I have a configurable product with 2 simple accosiated products (size 41,42). Two simple product is out of stock but when i enter product page of configurable product i see that has two available ...
3
votes
0answers
207 views

Configurable Procucts appear as out of stock in frontend

I´m facing some problem in make my configurable products appear in frontend, no matter what i do (i´d read an tried other posts solutions) it appears as out of stock in my frontedn. Follow configs ...
2
votes
2answers
648 views

Downloadable product on Magento 2.3.1 out of stock issue

I'm issuing a problem with newly created downloadable products on Magento 2.3.1 This store contains about 10k products (phisical and digital) imported from M1 Phisical in stock/out of stock is ...
2
votes
2answers
2k views

How to get all visible out of stock products in magento 2

I checked into this and got my nearest answer but not as we usually expecting from magento. I want all out of stock product which can visible in store front means have respective product landing page ...
2
votes
1answer
3k views

Magento2 set “in stock” when programmatically update qty

I use this code to programmatically update the stock but status remain "out of stock". How to force Magento to set "in stock" when qty change from 0 to 1 or more ? foreach($importArray as $line){ ...
2
votes
3answers
6k views

Auto-changing the “Stock Availability” from “Out of Stock” to “In Stock” on quantity change

assume the product quantity is "0", once we edit the quantity to "1". again we have to change from "out of stock" to " in stock" to buy in site So I’ve been looking for a way to change the Stock ...
2
votes
1answer
2k views

Display Out of Stock Simple Products swatches in configurable product

Configurable product should display all simple products, also the simple products which are out of stock. For example an item has the sizes S, M, L, XL. And M is out of stock. At this moment it only ...
2
votes
2answers
4k views

Magento2: show price for out of stock configurable products

Following this guide Magento 2 : How To Show Price of "out of stock" Products I successfully managed to show price for out of stock products. But this applies only to simple products. For ...
2
votes
1answer
80 views

out of stock products in flat tables

while selecting the products from flat table. out of stock products are missing. Is there any configurations that will populate the out of products also in flat table? Where the flat tables can be ...
2
votes
3answers
2k views

How to show out of stock product configuration in Magento 2.2.7?

The display of out of stock products is enabled in the store configuration. This means that out of stock simple products are displayed. But if one or more configuration of a configurable product is ...
2
votes
1answer
123 views

Hide out of stock price from category Magento 1.9

I want to hide out of stock product price from category but I want to remain the product on same category but only hide price when the product come back to store then it will show price. Can anyone ...
2
votes
1answer
2k views

Products incorrectly shown as out of stock - Magento 2.2.1

I have made a configurable product, with 4 associated configurations. My issue is that the product configurations are set with the right quantities, by the size of the product. But the product is ...
2
votes
2answers
248 views

Stock level not updating in Magento 1.9

I use data link by holbi, when I go onto Magento it is showing the correct amount of stock but my website is still showing zero, I have to click on the product in Magento then save and it will update. ...
2
votes
1answer
402 views

Show out of stock products at the end of product search results page

I want to show out of stock products at the end of product search results page. I have tried to do that by using some free extension/code but none of code didn't worked for search results page. please ...
2
votes
2answers
1k views

Magento 2 How to Disable Add to Cart Button for Out of Stock Products

Magento 2.3 I have a 3rd part software I use for stock management so dont need Mangeto to manage my stock. If I set the manage stock option to no then the add to cart button on the product page is ...
2
votes
2answers
557 views

Magento swatch is not disabled when configurable product is not on stock

I have a little problem at my Magento 2.2.5 store. When a combination of a configurable product is not on stock, the swatch should be disabled with a red strike. But at my store no swatch is disabled, ...
2
votes
1answer
151 views

How to show out of stock product next due date in Magento 2.2.2? [closed]

How to show out of stock products with next due date for Product availability on market. I am using Magento 2.2.2. I need free plugins and instructions only because I am not good with coding.
2
votes
1answer
2k views

Email Notification On Low stock, Out of stock , Back to stock Magento 1.9

I want to create a stock alert where user can subscribe product_alert_stock table in the database store details when user click on subscribe link. Currently it sends on two conditions : On stock ...

1
2 3 4 5