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

2
votes
0answers
24 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
14 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?
4
votes
2answers
54 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
86 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
20 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
22 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
69 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
17 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
14 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 ...
0
votes
0answers
30 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
33 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
22 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
46 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
42 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
33 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
29 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
52 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
21 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
24 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
93 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
38 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
36 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
208 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
31 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
64 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,...
0
votes
1answer
53 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
73 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
40 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
212 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
35 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
46 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
193 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
28 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
55 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
30 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
35 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
56 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
26 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
70 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 ...
2
votes
1answer
821 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
302 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
89 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
20 views

magento 2 more than 2/3 products but one stock

It is possible to link multiple products to 1 stock. so as an example: product 1 product 2 product 3 stock: 20 if an order is made for product 1 2 or 3, the total stock will go down. Let me know!...
0
votes
0answers
23 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 ...