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 [stock-status]

The tag has no usage guidance.

1
vote
1answer
24 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
0answers
34 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
1answer
21 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
0answers
6 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
0answers
15 views

How to update the stock status after the quantity changed in magento 2.2.4

I wish to update the stock status while saving the product. If the quantity is 0, then I wish to update the stock status as out of stock. If the quantity is 1 and above, I wish to update the stock ...
0
votes
1answer
27 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 ...
1
vote
2answers
88 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
1answer
95 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 ...
2
votes
0answers
25 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
2answers
33 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
3answers
78 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.
0
votes
0answers
17 views

Bundle/Configurable availability

Is there a way to see the dynamic availability for bundle and configurable product? example: Configurable product X have in-stock availability; Associated product Y (associated of X) has out-of-...
0
votes
0answers
16 views

Display stock level for Configurable Products

I hope somebody on this forum would be gracious enough to assist me or offer some helpful advice. We want to be able to show customers the amount of stock we have for our items, I have adjusted our ...
1
vote
0answers
11 views

How to get remain stock of product , if some of added in cart

I am just modifying magento add to cart ajax functionality. I want to check remain quantity of product if some is added to cart. But i tried ,many ways but i did not success. Instead of message ...
0
votes
0answers
94 views

Option product quantity is zero, not displaying in configurable product in magento 2.2

I tried admin panel settings Products -> Catalog ->inventory Dispaly product if out of stock (yes). But still for configurable product of my swatch option quantity is (0) zero, that option(child) ...
0
votes
0answers
27 views

Product doesn't change stock status until after the page reload

Currently we are having an issue where the product doesn't show the correct stock status (In Stock/Out of Stock) when the stock quantity changes on the first page load. Firstly, we do use a few ...
0
votes
1answer
47 views

How can I add different stock labels

How can I add new stock labels to magento 2 so they appear in the product stock status select box ? Thanks.
1
vote
0answers
214 views

Programmatically updating stock in and out Magento 1

I have a magento 1 store and also a third party, centrally controlled stock system. Now, I have a script that imports stock from this third party and updates the stock in the magento database which ...
0
votes
1answer
320 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 ...
1
vote
1answer
351 views

Magento 1.9 Update stock product status with sql query

We want to update stock status with sql query. This query worked and products status does as out of stock in product page. But when i did clearing cache, products is appearing in stock when i check ...
0
votes
1answer
63 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 ...
0
votes
1answer
746 views

How to display available quantity of each product in Magento 2

I want available stock Qty to be displayed right underneath of the home page and quick view like I have marked on,what would be the easiest approach to achieve this? (I use an advanced warehouse ...
1
vote
2answers
44 views

display stock information to logged customer only in Magento 2?

I want to display stock only to logged customers in product page. can you guide me how can I do and in which file?
3
votes
3answers
103 views

How to display stock information to logged in customer only in Magento 2?

I want to display stock only to logged in customers. can you guide me how can I do?
1
vote
1answer
778 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 ...
0
votes
1answer
46 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 ...
0
votes
1answer
43 views

Magento CE 1.9 Script for setting stock

I need a script that will check all magento products and set them to instock if the qty is greater than 0. The plan is to run this as a scheduled cronjob so that it will be checking for any products ...
0
votes
1answer
29 views

Magento 1.9.3.8 Execute only when there is a change for the Stock Level

I have got a custom extension, to track stock movements. So, keep a record of when x amount stock is added for a given product and/or when x amount of stock is removed. However, Even if I don't edit ...
0
votes
0answers
143 views

Updating low stock alert email Magento 1.9

We have low stock inventory turned on in Magento. It was brought to my attention that there was a misspelling but I can't seem to figure out what file to edit. The furthest I got was this file ...
2
votes
2answers
814 views

How to add Stock Status(default attribute) column in admin product grid Magento 2?

I want to add product stock status field in product grid and in filter options. How can I achieve this? I am using Magento CE 2.1.4.
0
votes
2answers
56 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 ...
0
votes
1answer
97 views

Magento 2 Possible to make Stock Status working for storeviews?

In Magento, Stock Status is global, so when a product is Out-Of-Stock, then it's disabled for all websites / storeviews. Are there anyways to make Stock Status working on storeview level? I have ...
0
votes
1answer
118 views

How to disable a product using Id in phtml?

I need to disable a product which is added by specific role. My code below: $role_id = 1 ; //get user's role id from system configuration $objectManager = \Magento\Framework\App\ObjectManager:...
0
votes
1answer
152 views

Get random products that are in stock

This is my code, i get random products here ... $products = Mage::getModel('catalog/product')->getCollection(); $products->addAttributeToSelect(array('name', 'thumbnail', 'price')); //feel free ...
0
votes
1answer
50 views

How to check the upsell products stock and status in magento 2

I need to check whether the upsell product is enabled or not and also check whether it is in stock or not in Magento 2. Please provide me a solution
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 ...
2
votes
1answer
128 views

Magento statuses and states and reviews through kount/braintree (GENE)

I'm working on changing various "order states" based on their statuses in magento when they come in via kount Ens.php. I've had some success with a couple of them but I can't seem to figure out the ...
1
vote
1answer
385 views

How to get disable products in product collection in magento2.2

I am trying to get product collection with all enabled/disabled products. It works fine until I upgrade Magento to 2.2. Now It's not fetching disabled products in collection. Here is my code - ...
2
votes
1answer
2k 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
2answers
379 views

Override default “Only x left” message

I want to extend default "Only x left" message. Can you tell me which file controls it? At the moment message is visible only when stock is less than qty threshold. I want if stock is more than qty ...
1
vote
1answer
316 views

Magento 2 reload stock status of configurable product

I've been trying to understand the "On stock" issue on the product page for a few days now. Unfortunately, with the standard installation some things work differently than expected. Why does the ...
1
vote
0answers
31 views

Set front-end product in stock / out of stock of each product

I tried to modify the product's frontend stock status. First I got my stock for each product that is different for each customer in my outside database. How can I make the customization in magento ...
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 ...
0
votes
2answers
164 views

How to show the total quantity number(Like 10) instead of In Stock Status in Magento 2.x?

I need help for Magento 2.x. Recently I have developed a eCommerce site. On products details page has "Stock Availability" using "In Stock" status. So, I want to show the total number of quantity "...
2
votes
0answers
623 views

Magento $_product->isSaleable() alternative

We have a Magento 1.9.3 site that only has configurable items on it. On the list page, we need to check if the item is in stock, the way we're doing this is by checking if($_product->isSaleable()) ...
1
vote
1answer
256 views

'only x left threshold' option not working

I have set the threshold to 7, I've set a simple product to quantity 2 and manage stock etc is on, it's also in stock. The setting 'Display products availability in stock in the frontend' is set to ...
0
votes
2answers
76 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
2answers
366 views

Get SKUs of “in stock” products

I’m looking for a faster way to retrieve a list of SKUs of "in stock" products. I’m using this code $products_collection = \Mage::getResourceModel('catalog/product_collection')->...
0
votes
1answer
939 views

How to call observer on stock update in Magento2? [duplicate]

I have tried to call my observer when stock is updated. Here is my etc/adminhtml/events.xml code <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
303 views

Set cron job to module stock status

Here is great module for stock Status From Enru magento-stock-status but now issue is its works on save action. I want to set it Cron Job. cron job run On Daily basis Kindly let me know how can i ...