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-status]

The tag has no usage guidance.

1
vote
1answer
31 views

Magento 2.3 - Fetching child/associated products of configurable product only returns In Stock products

In order to fetch all associated products of configurable product. I used this code $childProducts = $configurableproduct->getTypeInstance()->getUsedProducts($configurableproduct); It return ...
2
votes
0answers
22 views

What is the difference Between cataloginventory_stock_status & cataloginventory_stock_status_idx

If I use cataloginventory_stock_status and cataloginventory_stock_status_idx return different values, what is the main difference between these two tables?
0
votes
2answers
30 views

Custom Availability not working anywmore with new template [magento 1.9]

When I set up a product in stock "-1" the availability is not displayed, the product always displays "In Stock". Is it possible to add a condition for products in stock "-1" to display the "...
0
votes
3answers
58 views

How to get all products with Qty in magento2

I am trying to get all products with it's stock qty in magento2. please let me know if anybody have solution.
0
votes
0answers
16 views

Bundle/Configurable availability

Is there a way to see the dynamic availability for bundle and configurable product? example: Configurable product X have in-stock availability; Associated product Y (associated of X) has out-of-...
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
37 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) ...
0
votes
0answers
23 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
140 views

Programmatically updating stock in and out Magento 1

I have a magento 1 store and also a third party, centrally controlled stock system. Now, I have a script that imports stock from this third party and updates the stock in the magento database which ...
0
votes
1answer
263 views

How to show “out of stock” child products for configurable product in list and product view page magento 2?

I am trying to show out of stock child products for configurable product in details and product view.I changed the settings from catalog inventory to display out of stock products even it is not ...
1
vote
1answer
272 views

Magento 1.9 Update stock product status with sql query

We want to update stock status with sql query. This query worked and products status does as out of stock in product page. But when i did clearing cache, products is appearing in stock when i check ...
0
votes
1answer
55 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 ...
0
votes
1answer
575 views

How to display available quantity of each product in Magento 2

I want available stock Qty to be displayed right underneath of the home page and quick view like I have marked on,what would be the easiest approach to achieve this? (I use an advanced warehouse ...
1
vote
2answers
40 views

display stock information to logged customer only in Magento 2?

I want to display stock only to logged customers in product page. can you guide me how can I do and in which file?
3
votes
3answers
93 views

How to display stock information to logged in customer only in Magento 2?

I want to display stock only to logged in customers. can you guide me how can I do?
1
vote
1answer
550 views

Stock status and back orders in Magento 2

I want to enable customers to be able to place backorders In the docs its states for stock status of "Out of Stock" the following Unless Backorders are activated, prevents the product from being ...
0
votes
1answer
39 views

Magento 2 - Upsell configurable product shows out of stock - How to loop through simple products and return whether these are in stock?

I have a related products section on my product page where I display my upsell products. The issue I have is where it displays a configurable product, it shows the product as out of stock since it is ...
0
votes
1answer
40 views

Magento CE 1.9 Script for setting stock

I need a script that will check all magento products and set them to instock if the qty is greater than 0. The plan is to run this as a scheduled cronjob so that it will be checking for any products ...
0
votes
1answer
27 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 ...
0
votes
0answers
140 views

Updating low stock alert email Magento 1.9

We have low stock inventory turned on in Magento. It was brought to my attention that there was a misspelling but I can't seem to figure out what file to edit. The furthest I got was this file ...
2
votes
2answers
741 views

How to add Stock Status(default attribute) column in admin product grid Magento 2?

I want to add product stock status field in product grid and in filter options. How can I achieve this? I am using Magento CE 2.1.4.
0
votes
0answers
79 views

how to subtract stock after order status is completed not on processing in magento 1.9?

Inventory is enabled and just placed an order, after placing order stock automatically subtract by quantity. Here, I only want that stock should subtract when I complete the order by clicking on order ...
0
votes
0answers
108 views

Display backorder info on bundled products?

I'm trying to add a "backorder message" to my product pages. I've changed the stock-box code in default/template/catalog/product/view.phtml to: <div class="stock_box"> <?php if ($...
0
votes
2answers
53 views

M2 - Display “in stock / out of stock” ONLY when item is out of stock?

I've just turned on the option "Display Products Availability in Stock on Storefront" which is working as it should - display either "in stock" or "out of stock" on the front end, but I want to change ...
0
votes
1answer
68 views

Magento 2 Possible to make Stock Status working for storeviews?

In Magento, Stock Status is global, so when a product is Out-Of-Stock, then it's disabled for all websites / storeviews. Are there anyways to make Stock Status working on storeview level? I have ...
0
votes
1answer
99 views

How to disable a product using Id in phtml?

I need to disable a product which is added by specific role. My code below: $role_id = 1 ; //get user's role id from system configuration $objectManager = \Magento\Framework\App\ObjectManager:...
0
votes
1answer
145 views

Get random products that are in stock

This is my code, i get random products here ... $products = Mage::getModel('catalog/product')->getCollection(); $products->addAttributeToSelect(array('name', 'thumbnail', 'price')); //feel free ...
0
votes
1answer
48 views

How to check the upsell products stock and status in magento 2

I need to check whether the upsell product is enabled or not and also check whether it is in stock or not in Magento 2. Please provide me a solution
4
votes
1answer
2k views

Magento2: Configurable product showing out of stock child products

I'm facing issue that configurable products showing out of stock associated products even if the backend setting "Display Out of Stock Products" at Configuration->Catalog->Inventory->Stock Options is ...
2
votes
1answer
122 views

Magento statuses and states and reviews through kount/braintree (GENE)

I'm working on changing various "order states" based on their statuses in magento when they come in via kount Ens.php. I've had some success with a couple of them but I can't seem to figure out the ...
1
vote
1answer
334 views

How to get disable products in product collection in magento2.2

I am trying to get product collection with all enabled/disabled products. It works fine until I upgrade Magento to 2.2. Now It's not fetching disabled products in collection. Here is my code - ...
2
votes
1answer
1k views

Magento2 set “in stock” when programmatically update qty

I use this code to programmatically update the stock but status remain "out of stock". How to force Magento to set "in stock" when qty change from 0 to 1 or more ? foreach($importArray as $line){ ...
0
votes
2answers
323 views

Override default “Only x left” message

I want to extend default "Only x left" message. Can you tell me which file controls it? At the moment message is visible only when stock is less than qty threshold. I want if stock is more than qty ...
1
vote
1answer
289 views

Magento 2 reload stock status of configurable product

I've been trying to understand the "On stock" issue on the product page for a few days now. Unfortunately, with the standard installation some things work differently than expected. Why does the ...
1
vote
0answers
31 views

Set front-end product in stock / out of stock of each product

I tried to modify the product's frontend stock status. First I got my stock for each product that is different for each customer in my outside database. How can I make the customization in magento ...
2
votes
1answer
1k views

Email Notification On Low stock, Out of stock , Back to stock Magento 1.9

I want to create a stock alert where user can subscribe product_alert_stock table in the database store details when user click on subscribe link. Currently it sends on two conditions : On stock ...
0
votes
2answers
153 views

How to show the total quantity number(Like 10) instead of In Stock Status in Magento 2.x?

I need help for Magento 2.x. Recently I have developed a eCommerce site. On products details page has "Stock Availability" using "In Stock" status. So, I want to show the total number of quantity "...
2
votes
0answers
585 views

Magento $_product->isSaleable() alternative

We have a Magento 1.9.3 site that only has configurable items on it. On the list page, we need to check if the item is in stock, the way we're doing this is by checking if($_product->isSaleable()) ...
1
vote
1answer
239 views

'only x left threshold' option not working

I have set the threshold to 7, I've set a simple product to quantity 2 and manage stock etc is on, it's also in stock. The setting 'Display products availability in stock in the frontend' is set to ...
0
votes
2answers
72 views

How can I make products with positive qty out of stock?

I would like only products that have qty=>5 to be marked as in stock, those that are less than five would be marked as out of stock and they won't be available for sale.
0
votes
2answers
360 views

Get SKUs of “in stock” products

I’m looking for a faster way to retrieve a list of SKUs of "in stock" products. I’m using this code $products_collection = \Mage::getResourceModel('catalog/product_collection')->...
0
votes
1answer
872 views

How to call observer on stock update in Magento2? [duplicate]

I have tried to call my observer when stock is updated. Here is my etc/adminhtml/events.xml code <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
258 views

Set cron job to module stock status

Here is great module for stock Status From Enru magento-stock-status but now issue is its works on save action. I want to set it Cron Job. cron job run On Daily basis Kindly let me know how can i ...
1
vote
4answers
4k views

How to display stock information on product page?

I would like to display the stock status (In Stock | Sold Out) on the product page. How can I achieve that?
0
votes
2answers
172 views

Magento : Mass Uploading Qty by sku - Become Out of Stock - 2

mass uploading qty by sku but need to change code to "Qty for Item's Status to Become Out of Stock - 2" as thats what we have set global. public function _updateStocks($data){ $connection = $...
0
votes
1answer
295 views

Available Qty is 0 but stock availability status is showingthe item instock [duplicate]

I have set the "Qty for item's status to become out of stock" to 0 and the available Qty has become 0 but the item is still shown as in-stock.
0
votes
1answer
398 views

Qty for Item's Status to Become Out of Stock not working

I have configured Magento 1.9 as shown in picture. Display out of stock products to YES, and Qty for items status to become out of stock 4 The problem is, even though the quantity of a product is ...
0
votes
1answer
123 views

change logic stock status for visibility product view

i would like to change logic visibility:status i want logic work like this if any simple(child)product has qty > 0 Show product status in stock else show out of stock. My code is app/design/...