Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [out-of-stock]

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

0
votes
2answers
31 views

How to change of out stock error message in magento2?

I need to modify out of stock error message in cart page in magento2? In Magento\CatalogInventory\Model\Quote\Item\QuantityValidator.php: public function validate(Observer $observer) { /...
0
votes
0answers
9 views

How to show Swatches red line when the product is out of stock

Current my swatches are working but not what I expected. I have a product and the colour is black and silver Which has 2 options and if i put black colour and the option 1 out of stock the swatches ...
1
vote
3answers
66 views

how to add negative qty product into cart in magento. 2

How to add a out of stock (less than 0 ) product in shopping cart in magento 2 In my backorders setting i have custom option as Allow pre-order when i select a custom option and saved a ...
1
vote
2answers
38 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 ...
1
vote
2answers
100 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 ...
0
votes
0answers
111 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 ...
1
vote
0answers
88 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 $...
1
vote
2answers
146 views

Magento2.1.9 : Out of stock product Backorder not working?

I have to used Magento2.1.9 when I add out of stock product to cart it is not working and am getting error as this product out of stock I need backorder working properly for out of stock product and I ...
2
votes
1answer
12 views

Call for Stock option

The nature of the business we have is that stock is sometimes not kept on site and can be ordered in for next day, however we operate in a way that means our website displays as out of stock. Is there ...
0
votes
0answers
39 views

magento 2 “out of stock” not displaying in configurable swatch option product

In my magnto 2.2 "out of stock" option product was not dispalying in configurable swatch product. I like to list all option even if "out of stock". Please help to solve this solution.
1
vote
0answers
18 views

How can I show a product that is out of stock in a configured product

When a product is out of stock (and this is set up), it disappears from the configured product and its drop-down menu. How can I make it continue to be shown there (as an option of the general ...
2
votes
2answers
275 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, ...
0
votes
1answer
72 views

Show out of Stock Configurable products magento2

I am trying to show out of stock child item of configurable product. referred below link Magento2.2 configurable products out of stock issue As the answer is accepted there. Used same module in my ...
0
votes
1answer
307 views

How to show “out of stock” child products for configurable product in list and product view page magento 2?

I am trying to show out of stock child products for configurable product in details and product view.I changed the settings from catalog inventory to display out of stock products even it is not ...
0
votes
2answers
40 views

How to hide out of stock product and set product limit per page for custom product collection in Magento?

I am using Magento 1.9 I have created one custom listing page and in this page I have displayed all products. I have added below code for collection. app/design/frontend/my_vendor/default/template/...
0
votes
1answer
94 views

Show only 1 month old out of stock products

I'm trying to override the prepareProductCollection to show a list of products which will have all in stock products and one month old out of stock products. So far I was able to filter out the ...
0
votes
2answers
51 views

is ther any option to change Product type in magento

Can i change a simple product to downloadable product in magento 1.9.3. is there any option to purchase out of stock, downloadable products
0
votes
1answer
61 views

Magento 1 Stock Status

I am trying to figure a way to hide show stock status/availability on product page unless it is out of stock. I have all the settings configured to where it displays stock status on front end as ...
1
vote
1answer
597 views

Magento 2: Show out-of-stock products in search results?

We have disabled out-of-stock products from showing on the frontend, but would like to override this for search results only. How would we accomplish this? Note: this store has thousands of products ...
0
votes
0answers
57 views

How can I placed order for 'OUT OF STOCK' product if Back orders is Disable programmatic

Back orders must be Disable in my case. Check this URL as well attached image. http://kktestserver.dev-site.me/grey-pearl-fob-necklace/ Case : Default Magento have 0 Qty available. But in some out ...
1
vote
0answers
63 views

Don't show Configurable Product Combination when not in Stock

Is it possible in a configurable Product to hide (or simply not show) certain combinations that are not in stock? Let's say I have a shirt that has the options color and size. All shirts are in ...
1
vote
1answer
705 views

Stock status and back orders in Magento 2

I want to enable customers to be able to place backorders In the docs its states for stock status of "Out of Stock" the following Unless Backorders are activated, prevents the product from being ...
2
votes
3answers
495 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\...
2
votes
1answer
44 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.
0
votes
0answers
130 views

How to show Prices for OUT of stock products in Magento 2

Here is my question - How to show prices for all out of stock products? Here pic http://prntscr.com/krhurk I created the module from here https://magento.stackexchange.com/questions/160145/magento-2-...
2
votes
2answers
49 views

Magento CE 1.9 collecting the LowStockDate value

I've made a quick script to collect out of stock products that are: a) qty greater than 0 b) have been out of stock for 2 weeks. This will then set the is_instock_value for products that match those ...
1
vote
1answer
50 views

Getting error when show “out of stock” products in last [duplicate]

I have developed Magento module that shows out of stock products in last of catalog page list and I test it in my test website and it works correctly but in other websites (Magento 1.9.3.7) I got ...
0
votes
1answer
43 views

Magento 2 - Upsell configurable product shows out of stock - How to loop through simple products and return whether these are in stock?

I have a related products section on my product page where I display my upsell products. The issue I have is where it displays a configurable product, it shows the product as out of stock since it is ...
1
vote
0answers
102 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 ...
2
votes
1answer
240 views

Alert stock email not received

I've configured my Magento ver. 2.2.4 to send email to customers that have registered themselves for an stock alert when the product which is "out of stock" goes to be back in stock, but when I try to ...
0
votes
1answer
89 views

Magento grid view show out of stock banner/label

I looked for this online and nothing worked. I want a banner/label to show on my category view (in grid mode) that a certain product is out of stuck. I tried to add: $stock = Mage::getModel('...
0
votes
0answers
44 views

Product out of stock redirect to category

i have this issue for the out of stock products. The products are visible on frontpage, but if i try to open, i have this message: Product [Product Name] is no longer in stock. Please check other ...
0
votes
0answers
383 views

Magento 2 : How to show add to cart button in out of stock?

I want to show add to cart button block in my list.phtml even a product is out of stock. I do not want to enable back orders too. How can i do this? OR May i know from which file checking the stock ...
0
votes
0answers
180 views

Qty for Item's Status to Become Out of Stock not working properly

I'm on Magento 1.9.2.4 and I setted Qty for Item's Status to Become Out of Stock to 3. It is working in most of the products but some (apparently random) products still are as in stock with stock 3 or ...
1
vote
1answer
498 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
296 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 ...
1
vote
1answer
202 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
24 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
166 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
1k 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
55 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
713 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
472 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 ...
4
votes
1answer
2k 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 ...
1
vote
1answer
844 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 ...
2
votes
0answers
231 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
155 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
421 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
147 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
1k 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){ ...