Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
8 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
11 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
8 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 ...
1
vote
1answer
20 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
16 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
43 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
36 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
27 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
0answers
14 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
29 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
8 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
20 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
0answers
14 views

Query to get product list with all in stock and 1 month old out of stock products

Trying to create a query to get all instock and 1 month old out of stock products from database. Have the following query but not working. SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`,...
0
votes
1answer
84 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
31 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
29 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
112 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
29 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
0answers
20 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
30 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,...
-1
votes
0answers
20 views

Magento quantity issue

I was hoping someone could help with an issue I'm facing in Magento 2. When the last product is ordered the quantity does not go down to 0. Say there is a quantity of 1 left for a product and 1 is ...
0
votes
1answer
44 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 ...
1
vote
1answer
29 views

Magento 2: Update Stock programmatically and checking with isSalable()

I am trying to update the stock programmaticaly, but I'm having some issues. What i want to do is before viewing a product on the frontend, check with an external web service to see if the product is ...
0
votes
2answers
35 views

Get product in stock proucts when manage stock enabled

I'm doing some customization on magento 1.9.x website. I need to get all products with in stock and manage stock enabled I'm using this code $stockCollection = Mage::getModel('cataloginventory/...
1
vote
1answer
112 views

How to show Qty left in Magento 2 Listing page?

I need to show Qty left message with qty of product in product detail page with below condition. If the available stock is less than 'Notify for Quantity Below' parameter of each product. And can we ...
1
vote
1answer
30 views

Save product observer - detect availability

I have catalog_product_save_after observer where I want detect when product became available for sale (Magento 2.2). I'm trying to compare some attributes using this code $old = $product->...
2
votes
2answers
44 views

Magento CE 1.9 collecting the LowStockDate value

I've made a quick script to collect out of stock products that are: a) qty greater than 0 b) have been out of stock for 2 weeks. This will then set the is_instock_value for products that match those ...
2
votes
1answer
103 views

What is the difference of stock_status and is_in_stock in stockItem object?

code: $inventory = "http://example.com/index.php/rest/V1/stockStatuses/".$products_object->sku; $ch1 = curl_init($inventory); curl_setopt($ch1, CURLOPT_CUSTOMREQUEST, "GET")...
0
votes
1answer
27 views

Massive Stock Update

I currently have a code capable of updating the stock of products but this code involves updating the stock of each product one by one. Is there any functionality capable of sending an array of SKUs ...
0
votes
0answers
53 views

Magento 1.9.3.9 Stop custom method occurring twice

I have made a custom module to track stock changes. However, for example when I place an order for an item with zero or less stock there are two entries "product ordered...." and "stock saved ...
0
votes
1answer
21 views

How can I show the stock values of config, simple's stock (available sizes) on the catalog page?

I'm trying to figure out how to show the sizes of simple products in stock on a catalog front-end page. After getting the values I'd like to extend the catalog pages with a nice hover effect showing ...
1
vote
0answers
27 views

CE 1.9 - Automatic Restock of Product by predetermined date

When we sell out of a product in magento its marked "out of stock". We then order the new stock and wait for it to arrive before manually setting the product back to "in stock". The trouble with this ...
0
votes
0answers
34 views

Magento 2.2.5 creating simple product programmatically, Qty value not getting saved

I am using Magento 2.2.5 creating simple product programmatically. But qty value not getting saved, In stock status of product is working fine using below code but every time Qty field is blank $...
1
vote
0answers
46 views

Update product stock with observer Magento 2

right now I need to have a sincronization between my magento products and a third party software, lets call it X, X stores all the products info, my goal is to use a observer to update a single ...
0
votes
1answer
24 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 ...
1
vote
1answer
51 views

Magento 2.2 soap api catalogInventoryStockRegistryV1UpdateStockItemBySku

I'm trying to use Magento soap catalogInventoryStockRegistryV1UpdateStockItemBySku, but I cannot understand how parameters should be passed. I know there is REST documentation but if I apply the REST ...
1
vote
1answer
632 views

How to get stock quantity of configurable product in Magento 2

I am able to get all the available sizes of configurable product calling getJsonConfig() of below class Magento\ConfigurableProduct\Block\Product\View\Type\Configurable; But I need stock of ...
2
votes
1answer
193 views

Magento 2: It shows me products out of stock

In the product information, going to the next product shows me some that are out of stock. I have the configuration that there are no products out of stock ... Edit: I think the problem comes from ...
0
votes
1answer
24 views

Products stop displaying in category page only on explicitly saving

I have setup a CRON job for updating the stock in my Magento store regularly. I have set the Magento configuration as not to show any product with respect to which all the associated products are out ...
1
vote
0answers
78 views

Best way to bulk update stock and price for 50+ thousands of products?

We have well over a hundred thousand products in our magento CE 1.9.2.4. Many are drop shipped from a number of suppliers. Several suppliers can provide the same product. Naturally they will all have ...
0
votes
0answers
21 views

Problem with the inventory status update

My online store is running on Magento-1.9.X Even if all the associated products with respect to product become out of stock. the inventory status of the configurable product status still displays as ...
0
votes
2answers
179 views

Cancel order and restore products stock qty

I'm using the following code to cancel programmatically some orders in my magento website: foreach($orderCollection as $order): $order = Mage::getModel('sales/order')->load($order->getId());...
0
votes
0answers
80 views

Configurable product and associated products are in stock. Associated products have quantity > 0, still showing Out of Stock in front end.

Configurable product and associated products are in stock. Associated products have quantity > 0, still showing Out of Stock in front end. The products instock and qty values are updated ...
0
votes
1answer
596 views

How to get the stock quantity of the item and show it on a list.phtml page in Magento 2.2.3?

I have been trying to display the stock quantity of each item on the "list.phtml" page but not getting anywhere. Please see the attached photos as an example; this is what I have been trying to ...
1
vote
1answer
20 views

group product or bundle product?

I have product A which is composed of 2 products B and 1 product C. The user can buy the Product A (so with product A B C ) on a page. The stock is decreased on A B C. OR He can separately buy ...
2
votes
0answers
73 views

Magento 1.9 Add Backorder status of a product to the product grid in backend

I'd like to add the status of the Backorder in the main manage product grid as an column so I can see it in 1 instance. the status is visable when you click on a product and go to inventory and you ...
0
votes
1answer
266 views

SOLVED - Delete Out of Stock Products Programmatically

I'm using Magento 2.2.3 and I need to create a php script to delete all out of stock items from my catalog. Any idea? Thanks in adv
0
votes
0answers
34 views

Magento 2 stock Repository update

I am looking for a way to use stock qty in magento 2 reading external DB. Here what I tried : Let's say I have the collection, from the event observer catalog_product_collection_load_before. How ...
0
votes
2answers
159 views

Magento 2 get availabe stock of product

I need to display available quantity on product list and details page and other pages where product shows. I extended product list class as below <?xml version="1.0"?> <config xmlns:xsi="...
0
votes
0answers
38 views

Credit memo item back to stock always return null

When trying to create a new credit memo, we can check or uncheck return to stock for each credit memo order item: but when i tried to retrieve it like the code below, it always print null: $...