Questions tagged [stock-status]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 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 ...
0
votes
4answers
50 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 $...
1
vote
0answers
41 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
1answer
59 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
0answers
22 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
2answers
26 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?
0
votes
2answers
71 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.
0
votes
0answers
14 views

How to display in stock and out of stock status for both simple and configurable products in product page in Magento 1.9

1.I have created simple products and configurable products in magneto database. 2.In product page there is a drop-down with options. 3.How to display stock status for both simple and configurable ...
1
vote
1answer
35 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 ...
0
votes
0answers
22 views

Concurrent checkout made negative/minus stock

Sorry, I'm asking this question again. I already put the question in Magento community to explore if there is any possibility to handle this issue. Also, I already explore that this issue was fixed in ...
1
vote
1answer
35 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
142 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
31 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
13 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
26 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
51 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 ...
2
votes
2answers
214 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
165 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
35 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
34 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
96 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
18 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
20 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
14 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
136 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
31 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
49 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
282 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
356 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
397 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
73 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
975 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
55 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
113 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
980 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
53 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
36 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
157 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
961 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
62 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
2answers
214 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
136 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
164 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
55 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
5
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
133 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
441 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
440 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 ...