Questions tagged [stock]

Denotes questions related to stock management and configuration on Magento

Filter by
Sorted by
Tagged with
0
votes
0answers
3 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 ...
0
votes
0answers
13 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 ...
0
votes
1answer
21 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
20 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’...
0
votes
0answers
18 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. ...
1
vote
3answers
28 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']); ...
0
votes
0answers
10 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 ...
0
votes
0answers
9 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?
0
votes
1answer
44 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?
0
votes
0answers
33 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 = $...
0
votes
1answer
39 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 ...
0
votes
0answers
12 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 ...
0
votes
2answers
30 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
0answers
5 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 / ...
0
votes
0answers
8 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 ...
0
votes
0answers
14 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. ...
0
votes
0answers
11 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 ...
0
votes
0answers
14 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
14 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 ...
0
votes
1answer
69 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 ...
0
votes
1answer
15 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
29 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, ...
0
votes
0answers
52 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 ...
0
votes
1answer
14 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 ...
0
votes
0answers
12 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. ...
0
votes
1answer
12 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?
0
votes
1answer
35 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" ...
0
votes
2answers
58 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; ...
0
votes
0answers
6 views

Stock status issue - Magento 2.3.6

We have an issue when we have 1 of something in stock, the value never goes from 1 to 0. And if we cancel the order, the value goes to 2 instead of staying at 1. Does anyone know why this is happening?...
0
votes
1answer
182 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 ...
0
votes
0answers
23 views

Order split based on product attribute reducing qty twice

I have integrated Magento 2 order split based on product attributes with help of this extension. https://github.com/magestat/magento2-split-order My plugin file is below. public function ...
0
votes
0answers
51 views

Magento 2.4 stock_item in /v1/products API

The stock_item seems deprecated in the Magento /V1/products endpoint there is some mentioned here: Magento 2: Get Product Stock status details in Rest API Magento 2: Rest API add "stock_item"...
0
votes
1answer
153 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?
0
votes
0answers
26 views

Bypass inventory validation on a non-MSI store

For the last couple of weeks, I have been trying to find a way where a product is a backorder only on the main stores while being able to be freely ordered one store in particular. We cannot use MSI ...
0
votes
1answer
67 views

How to get stock quantity for a given product_id

Does anyone know how to get StockItem by product_id in Magento 2.4.x? We have the following code that works most of the time, but sometimes it throws the following error: "The stock item with the ...
0
votes
1answer
70 views

Magento 2.4.2 stock wrong on productpage

I have installed magento 2.4.2 community edition as multistore. The configurable products are uploaded with a csv from the supplier. On the page with all products I get the right message that the ...
1
vote
1answer
34 views

Stock quantity change API

I want to change quantity number on specific product after payment receive. And after that I reveave 400 error. Is it possible to change the stock quantity? Or Am I doing something wrong? I try to do ...
0
votes
0answers
9 views

how to create controller to show product name and stock status (Available/out of stock) in magento?

I want to create a table to show stock status if all products. This table will contains following fields: => Product Name => Product SKU => Quantity => Stock Status (In Stock / Out of ...
1
vote
1answer
320 views

Magento 2.4.1 Move Out of Stock In last Of Category Listing

I want to move out of stock product in last of the category listing, itried below code but same seems not working. app/code/Meetanshi/StockQuantity/etc/module.xml <?xml version="1.0"?> ...
1
vote
2answers
262 views

Display Out of Stock Products in the End on Category Pages - Magento 2.4.0

I want to display all out of stock products in end on category pages, I have tested few solution which is mentioned on Magento stack exchange, But no one is working for me. Anybody can help me ...
0
votes
1answer
1k views

Magento2: Product Stock Bulk Update API

I'm looking for the bulk variant of the product stock update API /rest/default/V1/products/{productSku}/stockItems/{itemId} Objective: I want to update quantities of multiple products in one API call ...
0
votes
0answers
106 views

Stock issue - Magento 2.3

We have an issue, not anything major, more like an annoying issue, and we do not understand why. One of our stores has low stock, so if we have 1 left and someone buys it, in Magento admin, it shows ...
0
votes
1answer
157 views

How to allow Notify me when Product back in stock for Guests / not Logged-In users?

I want to notify to customer and guests, when products back in stock, But in magento this feature is working only for customers, who is register on my website, But i want allow to also guests and not ...
0
votes
0answers
55 views

Remove Stock Status if Price = 0 in Magento 2.3

Is there a way to hide the Out Of Stock message for products with $0 as a price only? I realize that the saleable quantity can be hidden in Go to Stores > Configuration > Catalog > Inventory &...
0
votes
1answer
46 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
0answers
15 views

Paypal order payment verification Stock

I use Paypal under Magento 1.9 and it happens once or twice a week that orders are in payment verification status. It lasts about 15 days. During this period of time the product sold is still ...
0
votes
1answer
121 views

Catalog product and Stock index Error

I am getting this strange error while reindex, and I cannot find any solution on google or on stackoverflow. Stock index exception: SQLSTATE[42S01]: Base table or view already exists: 1050 Table './...

1
2 3 4 5
10