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

The tag has no usage guidance.

1
vote
1answer
21 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
32 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
40 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 ...
0
votes
2answers
32 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
69 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
42 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
0answers
26 views

Best practice for making products Out of Stock when they've been Discontinued

We have Configurable products that go temporarily Out of Stock. Because these products will be restocked, we want the OOS products to be visible to the Customer (so that they can request the "Email Me ...
0
votes
1answer
17 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
36 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
18 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
98 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
350 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
65 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
61 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
0answers
33 views

How to show product stock qty after clicking color?

i've got question here and i need assistance : how to show product stock qty after clicking color? example : when i click grey that's stock 5, when i click blue that's stock 3. P.S : this ...
0
votes
2answers
40 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
0answers
31 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
46 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
105 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
0answers
21 views

How to know whether the product is in stock or out of stock using product id

I need to get whether the product is in stock or out of stock for a product in magento 2. I am using Magento\Catalog\Model\Product to get Name, Image, Price for a upsell product.So Please provide me ...
0
votes
1answer
32 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
1k 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
99 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 ...
0
votes
1answer
192 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
837 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
0answers
144 views

Magento 2 - Back in stock email no image

I've got an instance of Magento 2 installed, i have enabled email notification for when a product comes back into stock. This works, however the product image doesn't seem to be loading when i ...
0
votes
0answers
51 views

getUsedProducts how to filter out outofstock products

I rewrote some code on the category/list.phtml for showing the simple products. The attribute I use is a text swatch. The code works almost fine. The only problem is that it also shows the out of ...
0
votes
2answers
184 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 ...
0
votes
0answers
12 views

Stock status module

I am new in Magento development. I need simple module which will modify "only X remain" part to add some extra info. For example if I set X remain threshold to 100 and I have 150 items in stock, ...
1
vote
1answer
228 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
103 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 "...
1
vote
0answers
408 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
191 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
65 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
325 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
576 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
100 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 ...
0
votes
0answers
113 views

cataloginventory_stock_status

on Magento admin it says A product has 2000 stocks, but on "cataloginventory_stock_item", and "cataloginventory_stock_status_idx" it says 500 stocks are left. so i reindexed, but nothing has been ...
0
votes
0answers
63 views

Magento 1 Product out of stock

I created some new products in my store using Mag Manager and i noticed that some of them appears as "Out of stock" in fronted in spite of having stock and availability. Consider this URL: https://...
1
vote
4answers
3k 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
119 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
258 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
338 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
108 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/...
0
votes
0answers
259 views

Product visibility status not updating at front end product view page

Please help How Can i re-solve this issue. About Product visibility stock status simple(child )products is fully out of stock. it showing right at admin panel and i checked from Database there is ...
0
votes
1answer
471 views

Custom stock status considering the quantity

Magento 1.9.2 Problem. I have the code below to show me custom text depending if a product is out of stock. The thing i want to do is to get all products in stock and if the quantity is 0 or below to ...
0
votes
0answers
164 views

Stock availability : in Stock/ Out of stock Not updating on product view page

I am facing an issue about stock availability on product view page. I am using parent product: child products. My products is Fully out of stock But on product view page showing Availability:In Stock....
0
votes
1answer
163 views

Set all products in Stock with custom message from quantity 0 and below

I want to have all the products always in stock but if the quantity is 0 or below to show a custom message instead of "in stock". Magento 1.9.2