Questions tagged [out-of-stock]

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

Filter by
Sorted by
Tagged with
1
vote
3answers
2k views

Magento2 Display out of stock products at last

We have to display out of stock products at last in the list pages. Let me if anybody have an idea. Thanks
1
vote
1answer
905 views

Magento 2 : “Add All to Cart” button disable when one product “outofstock” in wishlist page

One product "Outofstock" and save in wishlist then after, when after login in wishlist form click on "Add All to Cart" button. But it's not working because of "Outofstock" product in wishlist. So how ...
2
votes
1answer
1k views

Bundle product in stock even though one of the simple products is out of stock

I recently discovered a problem - if I have a bundle product with 3 simple products (all set as standard) and one of them is out of stock, the whole bundle product remains in stock. If I try to add ...
0
votes
1answer
28 views

Products stop displaying in category page only on explicitly saving

I have setup a CRON job for updating the stock in my Magento store regularly. I have set the Magento configuration as not to show any product with respect to which all the associated products are out ...
1
vote
1answer
258 views

Magento CE 2.2.X Configurable product with 1 Attribute -Error: Display Out of Stock Products

Steps to reproduce Install Magento 2.2.X CE Sample Data Admin > Stores > Configuration > Catalog > Inventory > Stock Options > Display Out of Stock Products = Yes. CLI php bin/magento indexer:...
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 ...
0
votes
2answers
143 views

M2 - Display “in stock / out of stock” ONLY when item is out of stock?

I've just turned on the option "Display Products Availability in Stock on Storefront" which is working as it should - display either "in stock" or "out of stock" on the front end, but I want to change ...
1
vote
0answers
1k views

Show price for out of stock configurable products

How to show price of configurable product which is out of stock in magento2.2? Currently when child product's are out of stock then configurable product won't show price in magento 2.2. Please help!
0
votes
0answers
835 views

In stock, freshly uploaded product showing out of stock on frontend - Magento 2

I am using marketplace module but the products uploaded by vendors are showing 'Out of stock'. However, if I upload any product from backend it shows 'In stock'. I've tried this on all type of ...
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 ...
2
votes
1answer
3k views

Check products in cart if they are out of stock before place order REST API : Magento 2

I am building mobile application using Magento 2, I had an old defined cart which had a product and when checking out it gives an error saying the item is out of stock, that happened after payment and ...
3
votes
0answers
409 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][...
0
votes
2answers
242 views

SMS not Sending to Customers from Observer.php

I need to send SMS (By using any SMS API) to customers when products are back in stock. I have rewrite Mage_ProductAlert_Model_Observer class and added SMS API in my Custom Module's Observer.php file ...
0
votes
0answers
657 views

Magento 1.9 how to set products to out of stock if quantity is 0 using php?

The website I am currently working on has a bug where it will not update the in stock status to out of stock when the quantity is zero. Importing a product that has zero quantity and then a reindex ...
1
vote
1answer
267 views

How to display instock product first on the category page in magento 2.1?

I want to display In stock products first and out of stock at end of the listing. I have used below code in magento/module-catalog/Model $collection->joinField('stk', 'cataloginventory_stock_item'...
2
votes
1answer
4k 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){ ...
0
votes
1answer
444 views

how to get date of out of stock product

I need the date of out of stock product. is this possible we get the date of product when the product is out of stock or again quantity added in stock? Thanks.
1
vote
0answers
34 views

Ajax Cart - Out of stock [closed]

I have ajax cart from porto theme. But when I am add more product than stock, the ajax cart crash (wheel is just rotating) and I got no message How to fix this issue?
2
votes
1answer
128 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 ...
1
vote
1answer
790 views

Remove out of stock product from home Page in Magento 2

I am using aloquick theme in Magento2. Some out of stock products are showing in Featured Products tab of Home Page. I would like to remove those out of stock product from Home Page. My admin panel ...
0
votes
1answer
209 views

set out of stock configurable products visibility to search

A configurable product is out of stock when all its simple products are out of stock. I would like to set the visibility to search for all configurable products which are out of stock in bulk. Can ...
1
vote
1answer
710 views

Configurable Product - Shows available in category view but Out of Stock in Product View and without Add to Cart button

4 simple products associated to config product. -website selected -all enabled -all set to instock / avail -config set to instock --I've been trouble shooting but cannot seem to create In Stock ...
1
vote
3answers
2k views

Magento 2.2: how to get out of stock products when managing stock

In one of my blocks I want to get a product collection including items that are out of stock, but the product collection always includes WHERE (stock_status_index.stock_status = 1) if you are managing ...
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 ...
2
votes
0answers
217 views

How to show out of stock accosiative product of configrable product

How can i show all options of configurable products even if any (associative) product is out of stock, it should show the option but not selectable
0
votes
1answer
2k views

Magento 2 : Display cross sell products in products details page only for out of stock products:

How to display cross sell products on the products details page for the out of stock products only?
3
votes
1answer
747 views

Magento 2 add label out of stock products in configurable product dropdown

There are some related messages but not precisely this. Is there an method to - show out of stock products (for a configurable product) - add a label "out of stock" So a drop down with XS SM L ...
2
votes
3answers
357 views

Whats the best way to remove Out of Stock text

I'm having trouble displaying the out of stock size without text "Out of Stock". Example: And here is how its showing up in DOM: <span class="option out-of-stock" value="370">25 (Out of ...
0
votes
1answer
3k views

How to Show Out Of Stock Products at the end of product list in any sorting condition in magento 1.9

I am using Magento 1.9 , to display out of stock products at the end of product list i have replaced the code <?php $this->_productCollection = $layer->getProductCollection(); ?> ...
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 ...
0
votes
1answer
711 views

How to allow orders for out-of-stock products without enable Backorder in Admin?

We want to be able to take orders for products that are "out of stock" in Magento without enabled backorders in System > Config > Inventory. How can custom code? Any other suggestions on that ? ...
0
votes
1answer
91 views

Custom block on product page if product is out of stock / in stock

I want to add two custom blocks on product page - one to be displayed if product is in stock and the other one if product is out of stock.
0
votes
0answers
28 views

All Items Get Out Of Stock After A Certain Amount Of Time - Can't Figure Out Why?

I'm working on a website for a client and right before publishing the website, I noticed that all the products went out of stock itself. So I put them all back in stock and everything looked fine, but ...
1
vote
1answer
883 views

Display all associated simple products, even if all of them are out of stock

Magento default behavior: With option System > Configuration > Inventory > Display Out of Stock Products enabled, when configurable product has at least 1 associated simple product In Stock, then the ...
0
votes
1answer
146 views

Magento 2 Bug | Customer Places Order in Cart, then out of stock when checking out

On our Magento 2 page we have a bit of customers placing an item in cart (in stock) but when checking out after placing order, it gives an error saying the item is out of stock... but it places the ...
0
votes
1answer
917 views

Magento - Filtering Configurable products on simple product attribute

I have an issue in Magento 1.9. We have a list of configurable products. Like ex. Shoes We filter the products by attribute: Manufacturer [NIKE] Then try to filter by the attribute: SIZE [43] ...
0
votes
2answers
132 views

How can I make products with positive qty out of stock?

I would like only products that have qty=>5 to be marked as in stock, those that are less than five would be marked as out of stock and they won't be available for sale.
0
votes
1answer
65 views

Items Out of Stock. even though they have been just added

I realized that our latest added list of products that been just uploaded disappeared from our front-end. So I checked Magento, and the all those products had their stock at "zero" even though they ...
1
vote
2answers
660 views

How to remove Out of Stock products only from homepage

I am having the Magento website. I want to remove the Out of Stock products from New Books Arrived tab of homepage, but it should be visible on categories of my website. I just want to remove it only ...
1
vote
0answers
159 views

Magento 2 : When I Create an Order on Admin It Show Disabled Products

When I manually create an order in the backend and go to add a product, it will show all products even those out of stock or status disable, is there a hook for this in Magento 2 to hide those ...
1
vote
1answer
477 views

How to change Stock Availability automatically to '0'

I want to change the stock availability to '0' automatically when product is OUT OF STOCK. I had created the Stock Availability attribute manually but when product is OUT OF STOCK the value of Stock ...
2
votes
2answers
2k views

Magento2 REST API products list and out of stock

In the api call V1/products i get also out of stock products, even though I've set in Stores->configuration->catalog->inventory "Display out of stock products" to No. there's a way to get rid of this ...
1
vote
1answer
2k views

Magento 2: Change Product status OUT OF STOCK Programmatically

I need to change product as out of stock without changing its Quantity. I mean if a product having quantity 5, It will be same but product would be changed to OUT OF STOCK. Is it possible in magento?
1
vote
1answer
316 views

How to display ONLY products which associated products are in stock with custom collection

I'm having a hard time on how to display those configurable products which associated products are in stock only. For example, if I have a configurable product and the quantity stock status of its ...
1
vote
0answers
39 views

Create an 'Out of Stock' Category

I am trying to create an category that displays all products on the website that are currently set as out of stock. I have created a subcategory for this and thought that I would be able to modify ...
0
votes
1answer
47 views

Magento Crossell also include out of stock

I want to include out of stock products, to my cross sell list. Currently only products in stock are displayed. How can I change this, so that out of stock products are included?
1
vote
1answer
1k views

Magento 2 disable/remove Cart button from configurable product for Out of Stock Options

I am using Magento 2.1 and I found that for configurable products, if any variation of associated product is out of stock, then add to cart button is still visible. I want to hide/disable it when ...
0
votes
2answers
111 views

Is it possible to automatically set all products with a price = 0 to be out of stock?

We are trying to figure out if there is a Magento setting or another way of making sure that any products on our e-commerce site that are uploaded with a price of 0 are set to out of stock, so then ...
0
votes
1answer
53 views

How to add stock alert notification when for items on the wishlist?

I want to add product alert notification when the product is out of stock on the Magento wishlist page, For this task, I need product ID how we get out of stock product ID?