Skip to main content

Questions tagged [stock-availability]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Order qty sometimes going through as 2 instead of 1

I have a script which submits 5 orders to a staging instance of Magento using MSI for the stock. All 5 orders in the script are for the same product and with a Qty of 1 item. I noticed that the ...
Keppotec's user avatar
1 vote
1 answer
46 views

How to add a stock availabilty and sku next to price of the product on product page in magento 2?

How to add a stock availabilty and sku next to price of the product on product page in magento 2 ? Please answer this briefly because i am new in magento 2. Also do we have to create a particular ...
Chicky's user avatar
  • 11
1 vote
1 answer
32 views

Inventory stock update while using payment gateway

Need possible use cases for a scenario in magento 2 when a customer places an order during checkout after entering place order stock from inventory gets reduced then customer moved to payment gateway ...
Rekha S's user avatar
  • 11
0 votes
1 answer
203 views

How to disable Stock Status in Advance Inventory section under product page

I need to disable stock status field under advance inventory section in the product page. I don't want to remove it but show it disabled. Please suggest.
Sumit Verma's user avatar
1 vote
1 answer
809 views

How to set product OUT OF STOCK and enable Manage Stock for this product in Magento 2.4

I work on Magento 2.4 and I'd like to enable programmatically for selected products "Manage Stock" option and set status Out Of stock. Like here: But I did not found how it should be done ...
Sebas's user avatar
  • 27
1 vote
1 answer
362 views

Getting the minimum qty allowed in a shopping cart without deprecated methods

Previously to get the minimum qty allowed in a shopping cart I would use the following code: public function __construct( \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry ){ ...
Goose84's user avatar
  • 2,621
1 vote
0 answers
47 views

I need to show configurable products that are out of stock and block their purchase

I need to show configurable products that are out of stock and block their purchase. To show out of stock. For normal products it works fine, but in the case of configurable products it just doesn't ...
Pavlo Vovchenko's user avatar
0 votes
1 answer
320 views

show list of products with negative salable qty magento 2

Is it possible to show a list of products with a negative salable qty in magento 2.3
Shaun's user avatar
  • 109
2 votes
1 answer
2k views

How to get product collection along with is saleable attribute in Magento 2?

I'm using magento v2.4.1 and I'm extending \Magento\Catalog\Block\Product\ListProduct in my custom module block to load a custom product collection like this: protected function _getProductCollection()...
jojo's user avatar
  • 39
0 votes
1 answer
71 views

How to update discontinued items from vendor in magento2

we update stock from vendor, when a product is out of stock or discontinued, they are not getting update. the feed to qty=0 else just remove them from the feed and I cannot know which items they are ...
Dan's user avatar
  • 13
2 votes
1 answer
2k views

Magento 2 create the Inventory source programmatically

I am new to Magento 2 Can anyone help me with how to programmatically create the Inventory source? What is the use of the stock channel?
SARAVANA PRASANTH's user avatar
0 votes
1 answer
563 views

how to get child item object while adding to cart?

I wanna put customize the code with qty while adding to cart product. For that I have created Plugin Magento\Quote\Model\Quote\Item and used addQty() method,but in this method I call quoteItem object. ...
Niraj Patel's user avatar
0 votes
1 answer
104 views

Magento Saleable quantity not reflecting

Here is an interesting one. All the id numbers were created at the same time but the highlighted ones have both been disabled so should have a '0' for saleable quantity? The one highlighted at the top ...
user3313215's user avatar
2 votes
1 answer
1k views

checkout cart page stock status check in magento 2.3

How to check checkout cart page stock status in magento 2.3 my custom code add this file but not working <?php if ($product->isAvailable()): ?> <div class=&...
Ravindrasinh Zala's user avatar
0 votes
1 answer
92 views

Confusion around Salable Quantity

Can anyone explain what salable quantity is and how do you change it? Each time I change the stock quantity the salable quantity changes too. I don't understand why. salable quantity seems to be 4, ...
t3chn0hippy's user avatar
0 votes
1 answer
33 views

Is there a way of pulling off a report from M2 that shows stock against each SKU - specifically those with catalog view

I would like to pull off a report to show which SKU's are in stock on Magento - specifically the main SKU's not by size. Is this possible?
Hillary Becque's user avatar
1 vote
0 answers
491 views

Most bough items block porto theme: addition of a stock check

A client is using Magento 2.1.3 with the Porto theme. The homepage of that site has a div which has tabs of different categories with the most bought items. Per category it loads a block in the ...
JerGrun's user avatar
  • 343
1 vote
0 answers
82 views

Magento2.3: Product is showing as OUT OF STOCK even the product has set to stock

I have created a simple product and set it as IN STOCK and given 1000 in quantity field. However, when I check the product in front-end, I can see the product is showing out of stock. Why it is ...
MagentoDev's user avatar
0 votes
1 answer
387 views

How to call displayProductStockStatus() method from a custom block?

in catalog_product_view.xml of my theme I have a block like this `<block class="Magento\Catalog\Block\Product\View" name="extra.product.info" template="product/view/extra-product-info.phtml" after=...
Max's user avatar
  • 176
0 votes
1 answer
337 views

Show available inventory configurable products Magento 2

I have got it working and its outputting the right information, but I do not get the toggle to work. Now I think thats because of the use of swatches. Hopefully someone here can help me out with that! ...
JorgB's user avatar
  • 328
2 votes
1 answer
2k views

Magento 2.3.X : Display error message when user add more products to cart than the stock quantity in

Thank you for reading my question. I am working on a Magento 2.3 version and facing an issue which is When I add the product to cart more than the available stock it doesn't show the error ...
Shahzad Ahmed's user avatar
3 votes
4 answers
22k views

How to get product stock status on the listing page in Magento 2?

I am using Magento 2.3.1 I want to display stock status on the listing page. So, how can I get "Stock Status" attribute value on the listing page? I have tried below code: <?php $...
Chintan Kaneriya's user avatar
2 votes
0 answers
1k views

Magento2 Products filter quantity_and_stock_status is not working

We are developing an iOS app for a Magento website using Magento2 rest apis. App is fetching and showing all products added to the magneto website. But some of the products are not being added to the ...
Rajender Kumar's user avatar
1 vote
0 answers
56 views

Availability-only not shown on inventory level in Magento 1.9

For my Magento store, the threshold qty is not considered on inventory level, although this is set up in the backend. This is the view with the output of the QTY message app/design/frontend/base/...
zerox92's user avatar
  • 11
0 votes
1 answer
3k views

Can't set product's stock - default stock: 0

I have issue on Magento 2.3.2 - Every product I add has Salable Quantity -- Default Stock: 0 -- therefore all the time out of stock. It happens to every product I add. I tried reindexing, clearing ...
Marek Ni's user avatar
0 votes
1 answer
2k views

In magento 2 how to override stock availability in product detail page in custom module

In magento 2 how to override stock availability in product detail page in custom module app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page ...
Divya Sekar's user avatar
  • 1,495
5 votes
6 answers
9k views

error when submit shipment - Not all of your products are available in the requested quantity

Customer created order, and all went well. Now I try to ship the product and get this error: Not all of your products are available in the requested quantity. I checked and all product are on plenty ...
goodlook's user avatar
  • 152
0 votes
1 answer
77 views

I have update the quantity and change Stock Availability to instock but quantity not updated

I have update the quantity and change Stock Availability to instock but quantity not updated. It displayed product saved, but quantity not updated.
user78059's user avatar