Questions tagged [stock-status]
The stock-status tag has no usage guidance.
145
questions
0
votes
1
answer
30
views
Magento 2.3: Add stock status filter in product admin grid
I want to add stock status dropdwon filter in product admin grid like this:
I tried this: https://magecomp.com/blog/how-to-add-stock-status-column-in-admin-product-grid-magento-2/
but it didnt work.
0
votes
0
answers
16
views
Magento2: After reindexing products goes out of stock, records deleted from cataloginventory_stock_status table
I have imported 7000+ products, everything works fine
I have one cron which is reindexing every day
After reindexing all those products goes out of stock, After debugging I have found that the records ...
0
votes
0
answers
24
views
Magento 2: Stock status for configurable product is general for different stores
I tried to find any solution but with no luck.
I have a multi-store website that sells products in UK, FR and DE, and we use Default source - for UK, FR, and DE stores.
Problem is that when I create ...
0
votes
1
answer
19
views
isSaleable product save
Use Case
From a product with quantity 0 and Out of stock status.
I have an event
<event name="catalog_product_save_after">
<observer name="stock_alert" instance="...
0
votes
0
answers
17
views
Should Magento put product back in stock if quantity increases?
We are using Firebear Import and Export to import products from one source and stock information from another. When products drop below 0 they go out of stock automatically on Magento but when they ...
0
votes
1
answer
24
views
Update IsInStock attribute in observer by 'catalog_product_save_after' event in Magento2.3
I have tried this code in Magento 2.3.4
1.created events.xml in Dapl\Shortdurability\etc\adminhtml
2.created Productsaveafter.php in Dapl\Shortdurability\Observer.
<?php
namespace Dapl\...
0
votes
1
answer
26
views
How to update discontinued items from vendor in magento2
we update stock from vendor, when a product is out of stock or discontinued, they are not getting update. the feed to qty=0 else just remove them from the feed and I cannot know which items they are ...
0
votes
0
answers
24
views
Out of stock products get an "In stock" label
I have a strange problem. Products that are out of stock, are getting the label "In stock".
I'm running Magento 2.4.2-p1.
The issue also appears in the Magento Blank theme and Magento Luma ...
0
votes
1
answer
46
views
Magento 2. Stock display question
Is there a way to implement desired logic ?
In stock --> display "in Stock" and product can be added to cart
Out of stock -> does not display any message and product can be added to ...
-1
votes
1
answer
45
views
Magento 2 Stock Status hide/show based on 'manage stock' status
I am trying to figure a way to hide stock status/availability on product page when it is set to 'don't manage stock.'
And if it is set to 'manage stock', it should show stock status/availability on ...
0
votes
2
answers
40
views
Magento 2 Stock Status
This question has been answered for Magento 1. (see: here).
As I am migrating to Magento2 and need the same logic here is the issue:
I am trying to figure a way to hide show stock status/availability ...
0
votes
1
answer
143
views
Can we update auto Product Attribute On Base of Stock Status In Admin Product Magento 2.4?
I want to update automatically Product Attribute on Base of Stock status in Product, I have created few attributes with Yes/NO. Now I want when the product will become out of stock that attribute will ...
0
votes
2
answers
1k
views
Magento 2.4 product stock status not change after salable quantity become zero
I tried the below scenario in Magento 2.4.0 version
Anyone please try the below scenario in your Magento 2.4 version ?
I created one configurable product and it's two simple children with 100 qty.
...
0
votes
0
answers
7
views
How to keep 'In stock' even though the qty is 0 after a csv file import
We are currently running a cron job to import sku, qty, and price every 30 min.
If the qty for a product becomes 0, the stock status changes from 'In stock' to 'Out of stock' automatically, 'Add to ...
0
votes
2
answers
187
views
Display stock status on product detail
I'm trying to figure out how to show stock status on product page (In stock/Out of stock). I tried to change stock message from the Catalog page but it didn't work ! I guess its because I use a custom ...
0
votes
0
answers
63
views
Magento 2.3.2 CE Inconsistent stock status. "In Stock" when OOS and vice versa
I am having some odd inconsistencies with Magento 2.3.2 when it comes to "Quantity_and_Stock_Status".
I would like to add this to my layered navigation so customers can filter out the OOS ...
0
votes
1
answer
57
views
Magento 2 stock status product page
Have used the following code to display the saleable quantity on my product page:
How do I add the following?
The $qty must be in bold?
Quantity below 0 like -5 must be displayed as 0 because of ...
0
votes
1
answer
104
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
1
answer
125
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
1
answer
27
views
configurable products not change stock on child select. Is it defaut behavour?
Is it the default behavour of magento 2.3 when we select a child product to not refresh the stock as the price? Is it something known to solve this issue?
or, any good extension for this?
0
votes
1
answer
63
views
Magento 1.9 Remove stock status from order confirmation email
I can't seem to find how to remove the stock status from the order confirmation (which goes to the client). We would like to remove it because we don't like to inform the client about it. I've already ...
1
vote
0
answers
134
views
Magento 2 Duplicating products changes the original product Qty to 0
I am using Magento 2.3.4 which was recently upgraded from Magento 2.1.15. Currently i am facing an issue with product qty after duplicating products.
Explanation:
After duplicating the original ...
0
votes
1
answer
85
views
How to change stock status Instock permanently in magento2.3?
Please shown below image.
If quantity is 0 aur greater than 0 select Instock only. No need to select out of stock if quantity below 0.
Can i change this functionality through admin panel or need to ...
0
votes
1
answer
173
views
Set configurable products to In Stock while creating
Currently when I am creating a new configurable product, it is by default set to out of stock, even though I have added quantity to each of the configurable products. To set the product as in stock I ...
0
votes
2
answers
230
views
How to get StockStatus in a block of type Magento\Catalog\Block\Product\View
I have a block of type Magento\Catalog\Block\Product\View.
I would like to retrieve the current product's stock status.
The products in my eshop are both simple and configurables.
For ...
0
votes
0
answers
27
views
Magento2.3: Product is showing as OUT OF STOCK even the product has set to stock
I have created a simple product and set it as IN STOCK and given 1000 in quantity field. However, when I check the product in front-end, I can see the product is showing out of stock.
Why it is ...
1
vote
5
answers
2k
views
How to load stock item using product_id in Magento 2?
I am trying to get the stock status (is_in_stock) of an item. Currently, I am using the
\Magento\CatalogInventory\Model\Stock\StockItemRepository
which only accepts stock item id to fetch the ...
3
votes
4
answers
6k
views
How to update product qty and Stock Status update programmatically by product id : Magento 2
I want to update product qty and change Stock Status as in stock by programmatically by product id. I dont want to insert new product, but I want only update existing product by its id. Any one know ...
4
votes
2
answers
1k
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
1
answer
2k
views
Magento 2: Rest API add "stock_item" in to the list of the products
Magento 2 product rest API provided stock_item details in /V1/products/:sku API. But V1/products rest API not included stock_item details in products.
I want to need stock_item details in to the list ...
1
vote
3
answers
2k
views
Magento 2: Get Product Stock status details in Category List Product details Rest API
I have checked Category Products list API and gives list of the categories products. But don't get stock item details in products details. I want to need stock item details in products details.
...
1
vote
1
answer
8k
views
Magento 2: Get Product Stock status details in Rest API
Need to get Product Stock Status in products details using Rest API.
Method: GET
Using API URL: http://testwebsite/rest/en/V1/products/sku
Above api returns products details but need also ...
0
votes
1
answer
303
views
Grouped Product Display a sum of all associated products stock
I search everywhere but cannot find a good answer.
In my 1.9 magento rwd theme, I set for single product to display the stock qty after stock status, but when i put some simple products to a grouped ...
1
vote
4
answers
13k
views
How to get product stock status on the listing page in Magento 2?
I am using Magento 2.3.1
I want to display stock status on the listing page. So, how can I get "Stock Status" attribute value on the listing page?
I have tried below code:
<?php
$...
2
votes
0
answers
804
views
Magento2 Products filter quantity_and_stock_status is not working
We are developing an iOS app for a Magento website using Magento2 rest apis. App is fetching and showing all products added to the magneto website. But some of the products are not being added to the ...
0
votes
1
answer
2k
views
Can't getStockItem magento 2.3.1
Block
namespace Vendor\Extension\Block\Product;
use Magento\Framework\View\Element\Template;
class Stickycart extends Template
{
protected $_registry;
protected $_stockItemRepository;
...
0
votes
0
answers
296
views
Magento 2 Inventory and Stock Status
I'm trying to figure out why when the inventory quantity of a product reaches 0, the stock_status for the product is still In Stock. This happens after reindex as well. The only way to get the product ...
0
votes
2
answers
1k
views
Magento 1.9 - how to get single product stock data by id?
How to get all data about the product having id including stock status and quantity?
1
vote
3
answers
1k
views
How to move the "IN STOCK" above Add to cart button
How to move the Stock availability (In Stock) next to the Quantity button.
1
vote
1
answer
495
views
Magento 2 - Cancel order incrementing 2 quantity of product
In Magento 2.2.5 EE
Before placing order:
Product quantity = 1
stock status = 1
After placing order:
product quantity = 0
stock status = 0
After cancel order:
product quantity = 2
stock status = 1
...
1
vote
1
answer
259
views
Magento 2 REST API: extension attribute for saleability not working for some products
I needed product's stock status in the product listing API:
V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=144
...
1
vote
0
answers
831
views
Magento 2 Rest Api - Is this searchCriteria filter correct?
I'm trying to retrieve
virtual products,
which have been modified before a certain date
and which still are in stock
I'm using this
/rest/V1/products?searchCriteria[filter_groups][0][filters][0]...
0
votes
1
answer
777
views
Sort product collection on stock status in magento2.3
I want to sort my list.phtml and catalogsearch by availability.
Mean that when category page or search result page loads, first show "in stock" product and at the end show out of stock items.
Don't ...
0
votes
0
answers
70
views
Rogue rows being removed from cataloginventory_stock_status
We have around 180,000 products and are having issues with salable quantity not matching quantity.
We've narrowed it down to an issue with the table "cataloginventory_stock_status"
When we reindex ...
0
votes
1
answer
723
views
Unable to save the product stock status as "Out of stock" in magento 2
I have imported a single product via backend.
The product stock status is mentioned as 0 ("is_in_stock => 0") in csv sheet which i imported.
The product successfully saved. But while opening the ...
5
votes
1
answer
3k
views
Magento 2: Product stock status is not automatically updated from Out of Stock to In Stock
I have facing issue in update admin product stock status Out of Stock to In Stock in Magento 2.3.1
I have updated product quantity 0 and save the product that time automatically updated stock status ...
1
vote
1
answer
690
views
Magento 2.3 - Fetching child/associated products of configurable product only returns In Stock products
In order to fetch all associated products of configurable product. I used this code
$childProducts = $configurableproduct->getTypeInstance()->getUsedProducts($configurableproduct);
It return ...
3
votes
0
answers
241
views
What is the difference Between cataloginventory_stock_status & cataloginventory_stock_status_idx
If I use cataloginventory_stock_status and cataloginventory_stock_status_idx return different values, what is the main difference between these two tables?
0
votes
2
answers
104
views
Custom Availability not working anywmore with new template [magento 1.9]
When I set up a product in stock "-1" the availability is not displayed, the product always displays "In Stock".
Is it possible to add a condition for products in stock "-1" to display the "...
1
vote
3
answers
544
views
How to get all products with Qty in magento2
I am trying to get all products with it's stock qty in magento2.
please let me know if anybody have solution.