Questions tagged [out-of-stock]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
32 views

Magento 2.4 - Elastic Search Out of Stock products at end of Product Listings

I need to display Out of Stock products at end of the Listing in category page. I have overided the SetCollection method in Toolbar.php using around method(upto magento 2.3.5 without elasticsearch it ...
0
votes
0answers
18 views

Magento 2: Some products are out of stock

I don't understand why some products are out of stock (they have quantity and are in stock). I imported an csv with all products. For some products the price is shown (they are in stock) and for some ...
0
votes
0answers
14 views

Filter Out Of Stock Products on dropdown

I'm new on Magento and I'm getting troubles with something I thought could be very easy. In my revision form for an order I want to filter out the out of stock products as well as the ones that are ...
0
votes
0answers
8 views

Magento 2.3 Multi-source inventory get all out of stock products

I am trying to get a list of all the out of stock products with a Magento 2.3 website with multiple stocks and sources. I first noticed the Api /V1/stockItems/lowStock/, but its deprecated and does ...
0
votes
0answers
27 views

Magento 2 Out of Stock notification to admin and CC to another email

I am trying to see if Magento 2.3.4 has ability to notify an email other than the admin. We have a reseller who has all our products on their website and they need to be notified when a product of ...
0
votes
0answers
14 views

Configurable items: how to hide combinations not in stock?

I have this to handle: On our clothing store, we have the classic "color" and "size" attributes and often happens that we create new variations of color for a sku. The problem is ...
0
votes
2answers
29 views

Magento 2: Any Observer event trigger when product back in stock?

Hi guys I am looking for an observer event which triggered when product back in stock. So I do not know which Magento 2 event I have to be called when product back is in stock.
0
votes
1answer
50 views

How to use the Out-of-Stock threshold option?

I see that I have the Out-of-Stock threshold in my admin panel, how could I use it in order to have more items in my products in stock then I really have? And how does it works?
0
votes
1answer
39 views

Magento 2.3 How to show Out of Stock Products only in Search?

My site is supposed to show out of stock products in some places in the catalogue, so the Catalog > Inventory > Display Out of Stock Products setting is set to "Yes." But I do not want ...
0
votes
0answers
13 views

Product showing Out of Stock in Magento 2?

I have created a product but on checking on front end it goes to out of stock. This is my product which have quantity and in stock also. I have run also indexer:reindex and cache clean but still it ...
0
votes
1answer
34 views

Magento 2 is it possible to sell not in stock products?

I wan't to make it so that when a product is out of stock a customer will stil be able to purchase it. The product must stil say "Out of stock" but with a purchase button so that it's clear ...
0
votes
0answers
11 views

How to remove the cross mark in out of stock product swatch?

I have enabled the out of stock product to be displayed in frontend. In one of the configurable product, I have set out of stock for one of the variant and in the frontend, I can see the out of stock ...
0
votes
2answers
136 views

In magento 2 how to change a stock availability for 'out of stock' products in frontend

In Magento 2 how to change a stock availability for 'out of stock' products in frontend (category listing and product detail page). I don't want to override a template file. I want to change a custom ...
3
votes
1answer
113 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 ...
0
votes
1answer
31 views

How to automatically change the status to In Stock if products are added to the product

if the number of products falls below 1, then it will become out of stock, but if you increase the products manually, then the status will remain out of stock. How can I automatically change the ...
0
votes
1answer
27 views

How to add stock filter in stiemap.xml in Magento 2.3?

I want to exclude out of stock products from the sitemap.xml. I want to add stock filter like status or visibility filter in the product collection: public function getCollection($storeId) { ...
0
votes
0answers
60 views

How to exclude disabled or out of stock products from sitemap.xml in Magento 2.3

How to remove disabled products and out of stock products from sitemap.xml. Currently, all URLs are showing in the sitemap. I am using Magento 2.3
1
vote
1answer
36 views

How to ship Out of Stock products (backorders)?

How could I ship out of stock products (backorders)? I see the error: Not all of your products are available in the requested quantity. Thanks
1
vote
1answer
21 views

Magento 2: Make sales without stock

I need to allow the customer to compare the product even if there is no stock, in fact I need my simple item to behave when out of stock as if it were normally available. What would be the best way to ...
1
vote
0answers
24 views

When Magento reserve stock in Paypal payment?

It's a bit of imaginary situation and I think it's not that common but can happens and today someone asked me about that and I got curious but I have no easy way atm to test this so I thought in ...
1
vote
0answers
14 views

Out of Stock Products Displaying on front-end when told not to!

just a quick one. Using Magento 2.3.2 I have "Display out of stock products" switched to "No" in Stores > Configuration > Catalog > Inventory, but my storefront still ...
0
votes
0answers
10 views

How to let customers order out-of-stock items by making them understand they might take longer to get and ship?

Magento 1.9.4 Porto theme There are certain products we will not have on-hand but can order them and deliver with a slight delay if/when a customer is interested. What would be the best way to ...
0
votes
0answers
49 views

Magento 2.3.5-p1 still shows out of stock product Color Swatch in the frontend

we have updated our Magento from 2.3.3 to 2.3.5-p1. Before we did this Magento never showed color swatches of "out of stock" child products. Now after updating to 2.3.5-p1 it shows them but they are ...
0
votes
0answers
14 views

How to show out of stock product at last in product list using Admin backend Configuration?

I want to show out of stock product at last. With an option in the backend, Admin creates a configuration for Yes and no. Based on the selection show out of stock product at last. Let me know if ...
0
votes
0answers
17 views

Magento 2 : How to show Sold Out for Configurable and Budle Product on product listing page

I want to a show Sold Out Label on product listing page, when any of the option not available for configurable and bundle product.
0
votes
0answers
18 views

Redirect product when Out of Stock

In one of my categories there is a lot products that are out of stock. I want to redirect the products that are out of stock to the category page without Filter By mark Ex: website/product1 -> ...
1
vote
2answers
725 views

Salable quantity of 0 but still showing in stock?

I have a big issue with Magento 2.3.2. When products reach a salable quantity of 0 they still appear in stock. These products still have a physical quantity of more than zero as they haven't shipped ...
0
votes
0answers
11 views

Magento 2 change qty based on availability

How i change qty programmatically based on availability? I have a lot products where availability is "out of stock" and their stock should change to 0 but when product is "in stock" qty should stay ...
0
votes
1answer
22 views

Magento 2 - Can not add grouped product child to cart

In Magento 2, I have a grouped product with 3 childs. Child 1 and Child 2 are out of stock. Child 3 is in stock. When I try to add Child 3 into cart, there is an error about the two other product ...
0
votes
0answers
16 views

How to add out of stock product into cart Magento2.3?

Please check below image. And Backorder is also enable.still product not added into cart. Please suggest how to do it?
0
votes
2answers
54 views

Out of stock wording

we have a website that is running on Magento 2. This site has been enabled to show out of stock products. Below each out of stock product it displays 'out of stock' how can i change the wording of ...
0
votes
2answers
510 views

Get all visible products whose Quantity greater than 0 in Magento2

I have written a product collection to get all products whose quantity is greater than 0. Here is my code for the collection <?php $websiteId = $this->storeManager->getStore()->...
0
votes
1answer
73 views

Magento2: How to debug out of stock notification not working?

I'm using the Luma theme in Magento 2.3.3, my other transactional emails are working properly. I've no idea how to start debugging it. How could I start debugging this issue and what to consider?
0
votes
0answers
61 views

How to get product stock info in product list rest API in magento 2.3?

To get product details i am using the following rest api. {{magento_base_url}}/rest/V1/products?searchCriteria[page_size]=4&searchCriteria[currentPage]=1 In default it does not return stock_item ...
4
votes
3answers
1k 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="...
0
votes
0answers
23 views

Magento 2.2.3 List all configurable's childs prices when the configurable's childs are out of stock

For a configurable product, the following code will list the configurable's childs prices only for the childs that are in stock: if ($_product->getTypeId() == 'configurable') { $_children = $...
3
votes
0answers
262 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\...
1
vote
0answers
39 views

How Salable Quantity Works and how we can manage?

On the Category page, a product shows "Add to Cart" button and after clicking on it it redirect on product detail page with "Out of stock" message. As checked and found that this product has 2 qty ...
2
votes
0answers
24 views

How to display price for out of stock products in magento2

How to display the price for out of stock product (configurable type) in magento2. I also refer to these links: Magento2: show price for out of stock configurable products. Magento 2 : How To Show ...
0
votes
2answers
72 views

Magento 2 Add to cart out of stock item issue

I have a product with 0 quantity and Out of Stock Product, and it is showing on front-end. Customer is able to do add that product to cart. I run all commands like: php bin/magento indexer:reindex ...
2
votes
1answer
292 views

Display out of stock products of specific category in list and search result page

I have enabled Show out of stock products in the admin Inventory section. I have to show all in stock and out of stock products of one category(id=10 and its subcategory) in list and search result ...
0
votes
1answer
251 views

Magento 2 : Out-of-stock not selectable option

I display out-of-Stock in my configurable products. But it is selectable, I like to set as not selectable option for only out of stock. Please let me know.
1
vote
1answer
229 views

How to show message on out of stock products in configurable product. Magento 2

I copied the extension from https://github.com/pkarsai/show-out-of-stock-products-magento2 whose code is Myweb/ShowOutOfStockProducts/configurableProduct/Helper/Data/Data.php <?php namespace ...
0
votes
1answer
339 views

magento 2 catalog_product_collection_load_before event

I am using Magento Enterprise 2.2.10 and I am wanting to show out of stock products and want to have show at the end of the category collection. I thought I could use the event: ...
0
votes
1answer
28 views

Send Email automatically with Cron

I am trying to create a custom module which send an alert mail to each customer who subscribed to the product. The idea is to send a custom email when the product's date is updated with a cron that ...
0
votes
0answers
31 views

getLocaleCode() by customer instead of store

I am writing a module to send alert email to customer when a product is available. I have different email template with name like "alertmail EN", "alertmail FR"... I can't do $this->_store->...
0
votes
2answers
409 views

How to display Out Of Stock product for only One Category while hiding them in all other category magento 2

Hi @all actually i wanted to display Out of stock products only in one category(Parent Category and it's all child categories) with "Display Out Of Stock" option "Yes" in the admin? It means here i ...
1
vote
2answers
812 views

How to add out of stock product to cart programmatically in Magento 2.3

I'm using Magento v2.3, I want to add out of stock products to cart without changing any configuration from backend. I'm using following function to add product to cart addProduct($productInfo, $...
2
votes
2answers
710 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 ...
0
votes
3answers
474 views

Magento 1.9: Display out of stock products for a Store view

I have this situation where I need to display out of stock products in one of my stores. I use multistore Magento installation, so 4 stores are running under one installation. For 3 stores I have ...

1
2 3 4 5