Questions tagged [stock]

Denotes questions related to stock management and configuration on Magento

Filter by
Sorted by
Tagged with
0 votes
2 answers
32 views

Magento 2.4 get stock qty after the product is saved in plugin

How to get stock qty after the product in saved via plugin? With code bellow I allways get "stock qty" 0 no matter what. di.xml: <type name="Magento\Catalog\Model\ResourceModel\...
user avatar
0 votes
0 answers
15 views

Magento 2 "out of stock" label on product page

I need to add “out of stock” string next to product option when product are out of stock on this list. Can someone help me?[
user avatar
0 votes
0 answers
16 views

Magento 2.3.2. How can I add the stock quantity column to the 'Related Products' admin grid?

Basically, I want to add related products that are in stock, rather than those that aren't, so I am looking to add the stock quantity column to the related products grid on the admin side in order to ...
user avatar
  • 25
0 votes
1 answer
26 views

Magento 2 swatches

I'm not good at Magento coding, so bear with me. I want to expose swatches for products with quantity 0 in the product list (changing the text with a ligther color with CSS for example) example: I'm ...
user avatar
  • 3
0 votes
0 answers
12 views

Add bcc to back to stock alert notification

I am struggling to add bcc to back in stock alert notification. I would like the mail to be sent to customer and bcc admin. I've tried adding the addBcc part but did not work. Mage::getModel('core/...
user avatar
1 vote
1 answer
66 views

Checkout cart error: The requested qty is not available

I'm using Magento 2.4.4, clients reported issues with the items in the cart, and I'm able to simulate by having two carts in different clients' accounts with the same item that has 1 item in stock. ...
user avatar
0 votes
0 answers
37 views

Programmatically update Stock Status Magento 2

I am trying to update Stock Status when the quantity is updated. Either from admin or web API (rest). app/code/Namespace/Module/etc/events.xml <?xml version="1.0" ?> <config xmlns:...
user avatar
  • 359
0 votes
1 answer
34 views

Property "Qty" does not have accessor method "getQty" in class Magento\InventoryApi\Api\Data\SourceItemInterface

I get this error: [2022-03-24 11:32:10] main.CRITICAL: Report ID: webapi-623c56baea1fe; Message: Property "Qty" does not have accessor method "getQty" in class "Magento\...
user avatar
  • 2,749
0 votes
0 answers
25 views

Stock sources as filters layered navigation

I'm quite new to Magento2 so correct me if there is anything unclear or impossible to do. We have different stock sources (stock for Europe and for the UKs). I would like our customers to be able to ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
0 votes
0 answers
50 views

Extend API V1/products to put the not available products at the end

I want to display out of stock products at the end of the V1/products response. So far I tried to create a plugin on Magento\Catalog\Api\ProductRepositoryInterface to override the getList method but ...
user avatar
0 votes
1 answer
34 views

Where is the "notify me when in stock" data saved in which table?

Hi I am trying to see where is "notify me in stock alert " data saved to which table. Moreover, default Magento customer profile should include the item alert list or not?
user avatar
  • 518
0 votes
1 answer
28 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="...
user avatar
  • 772
0 votes
1 answer
31 views

Magento 2: How to get cart items and its stocks using custom API?

I'm learning Magento 2 API. I need to create a custom API to get cart items and its stocks. I can see there is an API available to get cart items in Magento by default which is the below GET V1/carts/...
user avatar
  • 480
0 votes
0 answers
16 views

Change value of csv column before importing in magento stock

We can import stocks into our Magento warehouses automatically. For this from supplier we need a csv file. We can import the file direct from ftp or an url. We can also import local file on our server....
user avatar
  • 101
0 votes
1 answer
26 views

Magento 2 - Getting wrong quantity from a simple product

I've only recently started working with Magento and developement in general, so I am new at this. I need a (simple) product's quantity for some custom logic. But I don't know how to get it into my ....
user avatar
  • 3
1 vote
1 answer
95 views

"The requested qty is not available" not always shown?

Magento 2.4.2 Lets say I have a qty of 1 for product X. Now when I try to put a qty of 10 of product X to the cart, the message "The requested qty is not available" is NOT shown. Nothing is ...
user avatar
0 votes
0 answers
5 views

Magento 2 wrong tax calculation frontend plus able to order quantity what isn't in stock

Look: Where you see tax, but it should be 21% = €24,36 and this shows €26,77 Also in backend the order shows 30% while the calculation isn't Look: And second, The quantity of this product in stock ...
user avatar
0 votes
0 answers
25 views

Product cost price

Simple question. If I add a cost price to the simple product. (I'm taking cost and not wholesale price) does it affect anything the customer sees on the front end Does it affect the price the ...
user avatar
0 votes
1 answer
26 views

How to retrieve updated stock quantity after modifying source item repository?

I am trying to add stock quantity dynamically and use the current stock quantity for adding the product to the cart. The stock quantity gets updated successfully, however the ProductRepository keeps ...
user avatar
  • 1
0 votes
0 answers
69 views

Magento Product Stock status changes automatically

We are facing an issue with Magento 2.4. We are using MSI and we have 3 warehouses. All products have been assigned 3 warehouses and we manage stock using MSI. A product can be available in one ...
user avatar
  • 269
0 votes
1 answer
36 views

Manage stock needs to be set per store

Situation: Magento 2.4.2 p1 (but was also like this on earlier versions) We have Magento multistore. So example. I create a configurable product from our imports (Emagic manager). I set ‘manage stock’...
user avatar
  • 101
0 votes
0 answers
74 views

Bundle product shows out of stock in frontend : options and selection do not match

I have a magento with multiple store. I created from the backoffice a bundle product with 2 options containing each one 3 selections of items This product appears as out of stock in my store frontend. ...
user avatar
  • 772
1 vote
3 answers
77 views

How to save stock attribute value ('qty') for a product with Magento 2 objectmanager?

I've found out how to do this with other attributes. For example a custom 'location' attribute: $product = $this->objectManager->get('Magento\Catalog\Model\Product')- >load($post['id']); ...
user avatar
0 votes
0 answers
16 views

Use In Stock simple product image instead of configurable product in magento 2.4

Is there any way through which a simple product image will be used by the configurable product? For example, I have one configurable product of which there is 4 simple product with different images ...
user avatar
0 votes
0 answers
10 views

Subtract/reduce more than one unit from a product's stock/inventory

I want to configure that my shop subtracts/reduces a defined stock value from the product stock specified in product or elsewhere. Is this possible and if, how can I do it?
user avatar
  • 17
0 votes
3 answers
521 views

Magento 2.4.4 - Unable to place order: There are no source items with the in stock status

I assume that the client couldn't proceed with items in the cart that aren't in stock, but even with a clean Magento installation, it's happening. How could I solve or find the reason for this issue?
user avatar
0 votes
0 answers
146 views

Magento 2: Get source inventory qty based on store view

I want to show stock qty based on store view here: I tried getting msi source item qty by sku using: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productMsis = $...
user avatar
0 votes
1 answer
47 views

how to get stock total for all simple products linked to a configurable product in magento2

I want to get all the qty total for all simple products linked to a specific configurable product I have to do the following (check my code below) but it returns "0" on total, can anyone ...
user avatar
  • 5
0 votes
0 answers
14 views

Magento 2.4 stock / source 2 same stock but different values

Im relatively new to Magento and could need some advice. I have 2 Products wich has to rely on the same stock but with different stock-values. For example: Product A is 4 times in stock (value of 1 ...
user avatar
0 votes
2 answers
49 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 ...
user avatar
0 votes
0 answers
7 views

Source stock issue

Getting an issue with some of my sources_stock : RE / SX / YT are missing from source qty in admin grid. RE stock is shown as 0 This behaviour seems to be identical to all my envs local / sandbox / ...
user avatar
  • 772
0 votes
0 answers
13 views

Retrieve stock updates from default Magento API

We are looking for a way to get the stock from Magento (2.3/2.4) and sync it to an external application (and keep it up-to-date). Is there a way to do this with the default API, so without the ...
user avatar
  • 1
0 votes
0 answers
16 views

Getting stockItem before change not working on production server

I need to observe API's changes on stockItems from other sources coming to my store, although the below code is working on my local server, the old stock qty is always 0 on the production server. ...
user avatar
0 votes
0 answers
16 views

Salable Quantity

I have been looking for the salable quantities of items on Magento Commerce. I did see it on Catalog -> Inventory -> Products, but I want to export the data to use it in Magento Business ...
user avatar
0 votes
0 answers
29 views

Display stock qty on custom options magento 2.4.2

I bought the advanced product options suite from Mageworx but after installation on Magento 2.4.2 I realised that backorder for stock is not working the way I want it (out of stock can only be ...
user avatar
1 vote
1 answer
91 views

Where Inventory_stock_% table get updated in Magento 2?

The problem I'm facing is that The table Inventory_stock_13 used for the 2nd website is updated incorrectly. When set source status to Out of stock, column is_salable is still 1 and quantity is ...
user avatar
0 votes
0 answers
33 views

Stock Quantity not increasing after cancelling order

I have a magento store configured with 2 sources. When I placed the order, the salable quantity decreased. After creating a shipment for the order and choosing one of the available 2 sources, the ...
user avatar
  • 1
0 votes
1 answer
1k views

The stock item was unable to be saved. Please try again

I'm running a custom import. At some point the error: The stock item was unable to be saved. Please try again. Is triggered by : $this->_productRepository->save($prod); Now I'm trying to figure ...
user avatar
  • 772
0 votes
1 answer
18 views

Stock set to zero after sale

Magento 2.4.2 For some reason product stock is being set to 0 after an order is placed, regardless of quantity previously in stock or quantity ordered. What could be causing this? How can I debug ...
user avatar
0 votes
0 answers
62 views

Programmatically creating a quote/order: Unable to disable "is salable" / quantity check completely

I am programmatically creating an order. I have a product with a stock of 50. If I create an order with 40 units, it works as expected. If I try to order for example 60 units, I get an exception: The ...
user avatar
  • 1,053
0 votes
0 answers
78 views

Updating stock via REST API returns 200 but does not update

I'm attempting to update the stock level of a product via the REST API, PUT /rest/V1/products/{sku}/stockItems/{stockId}. When I send the request, it responds with 200 OK and the ID of the stock item, ...
user avatar
0 votes
0 answers
169 views

Magento 2.4: How to create a new Inventory Source Programmatically?

I want to create a new Inventory Source via Script. I can see that there is an option to create it via admin panel at Stores>Inventory>Sources>Add New Source But I want to create it via ...
user avatar
  • 480
0 votes
1 answer
15 views

Magento 2.3.6 - Stock do not go from 1 to 0

We have Magento 2.3.6 and MIS is disabled. So we have an issue when products are sold from any number down to 0 it does not decrease at all. E.g. if we have 10 left of a product and someone buys 10 ...
user avatar
0 votes
0 answers
16 views

Aggregate the physical stores inventory to make more products available

A merchant wants to aggregate the physical stores inventory to make more products available in their Magento store. Currently they are using the default inventory configuration with a single source. ...
user avatar
0 votes
1 answer
22 views

Why the massive product update via admin isn't working?

I'm just updated all my 12k products via admin massive action, I changed the stock status to in stock, but it's not running. How could I force it to run and fix it the next time?
user avatar
0 votes
1 answer
97 views

Magento 2 How to restore stock after cancel order

I am working on Magento 2.3.5 p-1 I have created a custom module that adds a mass action to the sales order grid, through a controller this action changes the order status to "customCancel" ...
user avatar
  • 64
0 votes
2 answers
101 views

Get all stock quantities given one product

These are the stocks I have On my export this is what i'm getting, as you can see (for re and re_pro which belong to the same website) the quantity is fine , but the salable qty is a merge of both; ...
user avatar
  • 772
0 votes
1 answer
340 views

Salable Quantity is greater than quantity with some products

on some cases my salable quantity is greater than my quantity, not for all product but for example to 10 products on 1000. I could not figure out why, I also tried to delete the product and insert it ...
user avatar
  • 1
0 votes
1 answer
331 views

Magento 2.4 - Stock Alerts not showing

I can't figure out why, buy products alerts aren't showing. here's my config; Would anyone have any suggestions?
user avatar

1
2 3 4 5
11