Questions tagged [out-of-stock]
Denotes questions about unavailability of products or the products with zero quantity.
257 questions
0 votes
0 answers
25 views
Issue with loading checkout/cart when the product has "out of stock" status
Scenario in magento 2.4.6: When at item within a saved cart goes out of stock, that cart can no longer be reloaded into the customer shopping cart. The goal, I guess, is to remove the item from the ...
0 votes
2 answers
224 views
Magento 2.4.5-p5 - Need to display out of stock products at last on category page
I am using Magento 2.4.5-p5, Out-of-stock products should be displayed at the bottom of category page. I also tried sorting the products. I set the sort order for products in the category within the ...
0 votes
2 answers
253 views
Notify me when this product is in stock for Configurable product
I want to set link "Notify me when this product is in stock" for the out of stock child product. For simple product, When the product is out of stock, we can see this link "Notify me ...
1 vote
0 answers
57 views
How to apply catalog price rule on out of stock product?
here we have created a custom catalog price rule for out of stock products, but it didn't apply. You can get reference using the below image. I want to display the product price as 50 rupees when ...
0 votes
0 answers
85 views
Cannot update simple product of configurable product, Error in update query of Catalog Inventory Stock status table in Magento 2.4 CE
I created configurable product with variants. Even though I added quantity per source for each sub product > 0 manage stock as "Yes" Stock Status as In Stock It shows Out of Stock. Also ...
0 votes
1 answer
487 views
Out of stock product visible on storefront. After updating the product programmatically
I'm working on integration, where I'm updating a product stock. But Whenever I set product stock to zero the product gets out-of-stock(as intended) from the backend but is still visible on the ...
0 votes
0 answers
73 views
Display Out of Stock Products crash
I have Issue Display Out of Stock Products when enabled. Some link category menu are crashed. Deprecated Functionality: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is ...
0 votes
1 answer
307 views
Multi Store can't show different "Display Out of Stock Products" options on frontends - 2.4.6
My issue is that I can't get my different frontends to show different "Display out of Stock Products" options. Does anyone have any tips on which stock Magento module I need to look into to ...
1 vote
0 answers
27 views
Magento 2 Product restriction with out of stock enable not working
I am working on Magento-2.4.5-p2 Version, as per my requirement I need to restrict some product based on customer type. For that I've used the following code and it's working as expected. Totally I've ...
1 vote
0 answers
25 views
I need out of stock products to automatically get directed without turning into 404s
Would this work? <?php namespace [Vendor]\[Module]\Observer; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; class RedirectOutOfStockProductObserver ...
0 votes
1 answer
858 views
Why Out of Stock Products showing at end of list in Magento 2.4.5?
We have created a category page and assigned some products to that category page. We have also assigned some out-of-stock products. But when we sort products by price the out-of-stock products show at ...
0 votes
2 answers
103 views
How can I configure Magento Salable Quantity
When I add a new product in Magento 2, The Salable Quantity is 0, and there the product shows out of stock on the end user.
2 votes
0 answers
68 views
Filters don't hide out-of-stock products
I have a couple of custom filters, size and warehouse availability. When I select for example, size "XS" and "Warehouse1" I still see the product in the catalog that has size XS in ...
1 vote
1 answer
1k views
How to set product OUT OF STOCK and enable Manage Stock for this product in Magento 2.4
I work on Magento 2.4 and I'd like to enable programmatically for selected products "Manage Stock" option and set status Out Of stock. Like here: But I did not found how it should be done ...
1 vote
0 answers
42 views
Correct way to call an object based on quantity, for displaying a product-alert, when backorders are allowed
I am trying to modify the following file in Magento2 <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\ProductAlert\Block\...