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]

Denotes questions related to stock management and configuration on Magento

0
votes
2answers
23 views

Magento 2 stock update returns 0

Im trying to update the stock of my products programmatically, using this code: $stockItem = $this->stockRegistry->getStockItemBySku($sku); $stockItem->setQty($qty); $this->stockRegistry-&...
0
votes
1answer
32 views

Multiple Products, One Stock Quantity

Good Afternoon, I apologise if I ask or say anything seemingly ignorant or stupid however I am very new to Magento. I work for a company that sells laptop LCD panels all over the world. We have ...
0
votes
0answers
15 views

Magento 2 : Stock status not accurate

I have some products which they are out of stock in backend and also in catalog pages, but on the product page, they appear as in stock. This behavior is the same whether the flat product enabled or ...
0
votes
1answer
30 views

In magento 2 how to override stock availability in product detail page in custom module

In magento 2 how to override stock availability in product detail page in custom module app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page ...
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 ...
1
vote
1answer
25 views

How to add available qty to cart when customer request more than available qty?

As asked in the question, Is there any possibility to add available qty(in stock) to the cart when customer requesting more than available qty. How magento behave with this situation? ex : I have 5 ...
1
vote
0answers
10 views

Trying to update stock on Magento OMS using API

I am trying to test out updating stock on the Magento OMS API by using the magento.inventory.source_stock_management.update method. The first step of getting the authentication token from the https://...
4
votes
1answer
34 views

Why have my configurables stock status Out of Stock

All I found so far is from the User Guide in Step 4 under 2.: The Quantity is determined by the product variations, so you can leave it blank for now. The Stock Status of a configurable ...
1
vote
2answers
38 views

Reindex Not Happening Automatically Magento 2.3

Every time I update a product stock in magento it updates perfectly in the backend but only when I manually run a reindex via SSH does it update on the front end. Very annoying when I am sometimes ...
0
votes
0answers
5 views

Magento 2 Decrease Stock Quantity When Order Placed with Manage Stock OFF

Does anyone know how to decrease stock quantity of a product if the manage stock function is switched off. From the standard backend it doesnt seem possible so I am hoping it can be coded in Thanks
2
votes
0answers
29 views

Magento 2 with Stock and Order Management Software

Hopefully someone can help with this I am running stock management software. Currently I am experiencing this isse Item Stock 3 Sellable Stock 3 Item sells Item Stock 3 Sellable Stock 2 So far so ...
1
vote
0answers
15 views

Sellable Quantity Not Matching Product Quantity

I have alot of SKU which the sellable quantity is less that the actual quantity. So quantity could be 5, but sellable quantity is 3. I thought it could be open orders, or processing orders, so I ...
1
vote
2answers
45 views

How to set qty to product on MSI Magento 2.3

In my custom module, I'm using StockRegistryInterface to set qty and save my product. But on Magento 2.3 I started facing the issue of having 0 salable qty right after saving the product. After ...
1
vote
0answers
14 views

Setting out of stock using MAGMI?

I want to set a products stock status to "out of stock". This is the csv file content: sku;is_in_stock 2714575;0 After that, the stock status did not change in the backend. Any idea what I am ...
0
votes
0answers
109 views

While saving product throws “Unable to save Stock Item” exception in magento 2.2.6

While saving product in backend,throws "Unable to save Stock Item". I have tried after flushed the cache and reindexing but still exception throws. I have reffered below link, but no luck https://...
0
votes
1answer
23 views

Magento MSI; add custom attribute to Sources in M2

we want to use multiple sources using Magento Multistock MSI. 2 of our 5 stock locations are called 'virtual'. They have stock that is not readily avilable but can be sold. OUr idea is to mark ...
0
votes
1answer
25 views

Magento 2 Error filtering template?

After installed module we are getting one error message called "Error filtering template: You cannot define a correlation name 'stock' more than once" Mentioned with below code. Can anyone ...
2
votes
2answers
52 views

Salable Quantity is greater than quantity

My salable quantity is greater than my quantity. How has this happened? I recently updated to Magento 2 and have been trying to get my head around the MSI but still can't figure out how salable ...
0
votes
0answers
22 views

Stock Alert / Out of Stock Threshold

I've set up my products so that I'm notified by email when stock drops below a certain threshold, the issue is that the email I recieve only tells me that a product has dropped below the threshold not ...
0
votes
2answers
262 views

Showing Salable QTY in frontend Magento 2.3

We are currently showing our available qty in stock on the frontend of each product using the following code: <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
1
vote
2answers
94 views

How to show out of stock product configuration in Magento 2.2.7?

The display of out of stock products is enabled in the store configuration. This means that out of stock simple products are displayed. But if one or more configuration of a configurable product is ...
3
votes
1answer
58 views

Manage Stock only option available is Yes

When I go to advanced inventory and want to set Manage Stock to No I only have the option Yes available. But why? I have no idea where to start debugging any clue would be appreciated or maybe ...
1
vote
0answers
22 views

Show Product Out of Stock if Related Item Out of Stock

Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?
5
votes
2answers
163 views

How do I post JSON to a web API method?

I want to send a JSON string via API, and then parse the JSON in code. I don't want Magento to try to convert my JSON parameter to a PHP object. I'm trying to add this to the stock registry API. ...
5
votes
1answer
95 views

Magento 2 : Bundle product should goes Out of stock if default option is not in stock

Magento2 default behaviour if default option of bundle product is not in stock, system should check for second option and set that option as a default and bundle product should stay as in-stock. ...
0
votes
0answers
22 views

Product option not shown when out of stock?

In my Magento 2.2.3 shop the option images and dropdowns are not shown if the product is out of stock. I want them anyway but just the add to cart button should not be shown. The images are shown on ...
2
votes
1answer
12 views

Call for Stock option

The nature of the business we have is that stock is sometimes not kept on site and can be ordered in for next day, however we operate in a way that means our website displays as out of stock. Is there ...
0
votes
1answer
23 views

Magento 2 - Edit Price/Quantity from Catalog > Products main view

Is it possible to edit information for products (such as the quantity or price) on the overview page? For instance, I have 15 products pulled up, and need to add stock to all of them (but different ...
0
votes
1answer
23 views

Can't add items to cart in Magento 1.7

I'm working on migrating my site over to a new server and everything is up and running, except when I go to add an item into stock it doesn't work. I am not getting a Magento error nor is it ...
1
vote
1answer
97 views

how to sort stock by quantity in magento 2.3

In magento frontend i want to sort products by maximum quantity first to lower number of stock (Quantity sort in descending order) Please advise which module to be made and where to save the files i ...
1
vote
1answer
21 views

Product Stock is not updated via Repository but works ok via Model save() method

via ProductRepository: $product = $this->productRepository->get($product['sku']); $stockItem = $this->stockRegistry->getStockItem($product->getId()); $stockItem->setIsInStock(true);...
0
votes
0answers
15 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
10 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
67 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) ...
1
vote
1answer
121 views

How to manage stock in multi store website in Magento 2?

I am using Magento 2.1.4 I have created 11 website each with 2 or 3 store view in Magento under same admin. Now I want to enable "Manage Stock" options only for two websites. but it seems that this ...
0
votes
0answers
26 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
49 views

Stock increases by itself Magento 1.9.2.0

I have an issue on a Magento 1.9.2.0 webshop. About 3 weeks ago products with a Stock of 0 automatically change to a Stock of 1 within half an hour. As far as I know there have not been any changes ...
1
vote
1answer
54 views

Magento 1.9.4 override Inventory tab template

I would like to override the template file used for the inventory tab in admin product edit section. This is located by default at: /app/design/adminhtml/default/default/template/catalog/product/tab/...
1
vote
1answer
63 views

cataloginventory_stock_status randomly has missing entries

What could cause cataloginventory_stock_status to have missing entries I have to fix manually? It makes the product appear out of stock even though it isn't. I've tried replicating by flushing, ...
0
votes
1answer
95 views

Magento 2 Programmatically stop decreasing stock qty while placing an order

I don't want to decrease stock qty when order is placed. I know this can be done in admin by setting decrease stock to NO. But I want to change the update stock logic, so I need to know where can I ...
0
votes
0answers
29 views

Magento 2 Which function is called to deduct product inventory when order is placed?

When a new order is placed in Magento 2. The quantity is substracted for the product bought. I want to edit this logic, where can I find the function that is being called for this?
0
votes
1answer
25 views

Magento Custom grid sort issue

Dear community I have made a custom module that will allow stock movement history to be kept for products. However, as illustrated below: figure 1; pressing edit on an order in the admin order view, ...
0
votes
1answer
94 views

Show only 1 month old out of stock products

I'm trying to override the prepareProductCollection to show a list of products which will have all in stock products and one month old out of stock products. So far I was able to filter out the ...
1
vote
1answer
55 views

M2 - Get stock quantity on product detail page

I need to get the stock quantity on the product detail page. I'm not an expert in Magento but I was being told that using the objectmanager is not a good idea, but in almost every example I find I see ...
0
votes
0answers
40 views

before place order checkout stock by remote api

We are using Magento2.2.6 and we need to update stock when remote ERP also call remote ERP API when placing an order, Currently we are using Magento2's observer pattern and update stock when user ...
0
votes
0answers
236 views

How to clone/copy product in magento 2 properly way

My scenario is after select one product existed but I add new SKU , price, qty, name. All other attribute of product select will copy and will not change value But when i tried to add my custom code. ...
2
votes
1answer
33 views

Mail Notification when Item is Out of Stock

I am trying to achieve the following: When an item is Out of Stock send an E-Mail Notification to the warehouse. First question would be: what's the easiest and cleanest way to achieve this?! My ...
0
votes
1answer
41 views

Magento 1.8.1 Product Stock alert emails not sending

The Product Stock Alert emails are not sending. Other emails such as new membership and password chages are sending Cron appears to be working - the "catalog_product_alert" job is scheduled and ...
0
votes
2answers
127 views

Magento 2: How do I track configurable product inventory with intangible attributes?

I'm on Magento 2.2.3, and created some configurable product with multiple attributes and I would like to track my inventory. Magento treats each variation as a simple product with it's own inventory,...