Questions tagged [quantity]

Questions related to products or inventory quantity or stock

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

Magento 2.3.2 CE Inconsistent stock status. “In Stock” when OOS and vice versa

I am having some odd inconsistencies with Magento 2.3.2 when it comes to "Quantity_and_Stock_Status". I would like to add this to my layered navigation so customers can filter out the OOS ...
0
votes
0answers
17 views

I want to add qty filter same as price filter in layered Navigation in Magento 2

In this i want to develop functionality in which qty filter is added and in that range is displayed in layered navigation as price filter. qty range as below: 1 - 50, 50 - 100, 100 - 150, ... so can ...
0
votes
1answer
14 views

Stock quantity change API

I want to change quantity number on specific product after payment receive. And after that I reveave 400 error. Is it possible to change the stock quantity? Or Am I doing something wrong? I try to do ...
0
votes
1answer
19 views

Quantity Change Event is inventory killer

Such unattended automatic quantity change events are a big hit on the SB inventories. Say you have handles 1,000 e. and your magento is synced to Quick Books for daily sales reporting. Magento ...
0
votes
2answers
53 views

Increment/decrement buttons on category page without refeshing

I want to add increment and decrement buttons for quantity on catalog page without refreshing the page Pease help!
0
votes
1answer
23 views

Salable quantity in magento 2.3.3

How can i make Quantity and Salable quantity having same value in magento 2.3.3. https://prnt.sc/xf5mlb Here it is showing different Please help
0
votes
2answers
36 views

Magento 2 - Product with Multiple Options with Quantity

I'm basically trying to have a product(t-shirt) with multiple sizes with its own quantity. Like this; Is there any extension or tutorial to do this please?
0
votes
2answers
42 views

how to get product quantity in magento 2.3 in phtml file

I am using Magento 2.3 , in my case I want to test if a product has a quantity greater than or equal to 0 in the list of all product page, to add a message a customer, but I wonder how to get it, for ...
0
votes
0answers
29 views

Magento 2 Notice: Undefined index: quantity

I'm not sure if anyone can help? I've been trying to solve this problem for some time and I've narrowed it down. I am currently having a problem when disabling a product in Magento 2. When I disable a ...
0
votes
0answers
10 views

Please help! How can you display individual quantity for each variation?

I have a configurable product with 3 variations. The quantity for each is 1,3 and 5. I want these quantities showing when selecting the relevant variation, but it currently shows the total 9, no ...
0
votes
0answers
22 views

Create fabric product which has meter as unit with default length

Want to create a fabric type of product which has Meter/Centi meter as selling unit in Magento 2. I'm following this Question Can you sell product (fabric) by the metre in Magento?, we can use decimal ...
0
votes
1answer
116 views

How to get product Quantity in Magento 2

I need to retrieve product quantity, I found that, the interfaces we used before to get product quantity are deprecated, these are: \Magento\CatalogInventory\Api\StockStateInterface $stockItem And, \...
0
votes
1answer
48 views

Increasing Quantity via CSV Import Magento 2

We are working heavily and daily with the Magento 2 CSV import. We use something like this "sku","qty" "12345","100" In this case, the qty for 12345 is set to ...
0
votes
0answers
18 views

Magento2.4 decrease stock quantity when invoice is generated

Magento2.4 I need to decrease qty only when payment is successful which is when invoice is generated. In short, need to reduce qty when Invoice is generated For that I uesd this module https://github....
0
votes
0answers
15 views

my previous developer set the max quantity of purchase of determinated products to 1 and dont know how to fix it

my problem is that my previous developer set the max quantity to purchase of determinated products ( with a especific attribute set) to max 1 and i dont know to change it to allow default quantity....
1
vote
0answers
46 views

Notice: Undefined index: quantity

I am currently facing a problem with the below error and was hoping if someone could help. Notice: Undefined index: quantity in /public_html/Magento/vendor/magento/module-inventory-sales/Model/...
1
vote
1answer
49 views

How to set a minimum qty 2 of specific category - Magento2

How to set minimum qty for specific category? For example: I have 2 categories. one - test second - test2 For test categories products : I want minimum qty should be 2. and test2 categories customer ...
1
vote
1answer
16 views

How do I get MOQ of bundle products?

How do I get MOQ of the bundle products? since Bundle product itself doesn't need to set MOQ itself, it depends on the children products. But how do I determine which children MOQ that the bundle is ...
2
votes
0answers
41 views

Filter category products by quantity - Magento 2.3

My store allows backorders, so some of the products have quantity of 0. I want to create a switch on the category page on front-end for "hide out of stock products" which filters out ...
1
vote
0answers
18 views

How to get MOQ of child that inside the bundle?

How to get MOQ (default quantity) of child product option that inside the bundle? Bundle itself doesn't contains any MOQ, so I need to find their child and get MOQ. Child option may be simple products ...
0
votes
1answer
14 views

How to get MOQ from the product by using object manager?

HI How can I get MOQ of product by using object manager?
1
vote
2answers
97 views

How to change the scope of product Quantity from Global to Website level?

I am using Magento 2.2.6 Open Source Edition, a single product has been selected for 3 websites in Product in Websites section, I would like to have different quantities of the product for each ...
0
votes
0answers
31 views

Liquid Product in Magento 2.3.4

I have a store that sells liquid products (beer). The problem I am facing is that the salable stock is in liquid ounces. Example: 1. If a customer buys a growler, Magento should decrease the stock by ...
0
votes
0answers
17 views

Limit Magento 2 Product Quantity based on Other Product

I'm selling a subscription box, in which each box can have a total Quantity of 12 Products Only. No Less than it no more than it. For Instance - Tshirts XXL Size and Tshirts L Size If a Person ...
0
votes
1answer
75 views

Magento2: How to hide the quantity box for a specific product on the checkout cart page?

I want to hide the quantity box for a specific products on the checkout cart page. I have referred this link Magento 2: How to hide quantity box for certain products which has only quantity? But it ...
0
votes
1answer
23 views

How can I add the available quantity per product on catalog on Magento 2.3?

On a category page, I try to display the available quantity per product but I cannot succeed. On the admin interface, as described in the manual, I have enabled for the attribute called ...
0
votes
1answer
54 views

Magento2.3- Inventory Management unable to decrease Salable Quantity

I am using Magento2.3.2 version. Example: 1)I added one product with 5 Quantity. So, Quantity is now 5 and Salable Quantity also 5. 2)Now I realize I have only 4 quantity and by mistake, I added 5....
0
votes
2answers
62 views

How to get total default quantity stock in stock and salable quantity stock in product In Magento 2?

I want to get 2 values. 1. How much total quantity assigns to the product? example(50) 2. How much is the total quantity remaining for that particular product? Like if 50 quantity is there and if 5 ...
0
votes
1answer
272 views

How to update product stock quantity when placing order in magento 2?

Can anyone help How to update product stock quantity when placing an order in Magento 2 programmatically? I am new to Magento. I need a sample example.
0
votes
2answers
314 views

Magento2.3 - How to add the double Quantity when I click add to cart on the product page?

I want to add the double quantity when I click add to cart button using event in Magento2.3.2 which function I can override for this. Thanks in advance.
0
votes
1answer
54 views

Disable URL redirection from catalog to product view in case of the error “The requested qty is not available” when adding too much products to cart

I can't figure where to find the code displaying "The requested qty is not available" and redirecting to the product URL when we add more product than the stock. [I'm using Magento 2.3.3 and custom ...
0
votes
2answers
319 views

Magento 2 $data[] = $product->getQty(); Returns 0

Trying to get qty of the simple product for csv. Using $data[] = $product->getQty(); but it returns 0. Looks like it returns default value. How to get the actual quantity of the products?
0
votes
1answer
152 views

Is there any way in magento 2 to prevent user to add more than 1 product in cart

I want to set a limit of 1 product in the cart. Magento 2 C.E provides an option to set a limit of qty of a single product in the cart but that option allows two individual products in the cart. I ...
0
votes
2answers
86 views

Export product quantity from Magento 2.3 to CSV file

What is the proper code to export qty attribute from Magento 2.3 to CSV. $product->getQty(); - doesn't work. Thank you!
1
vote
1answer
88 views

Get available quantity in Magento 2.3 for CSV export

I can't find a way to get the available quantity in Magento 2. I am Building a file to export products to CSV. Quantity must be stored in 'quantity_and_stock_status' but how to extract it I don't know....
2
votes
1answer
50 views

How to move “addtocart” button to the left side in category view?

I'm pretty new to Magento2 and I'm trying to move elements inside category view. I would move my add to cart button to the right of the screen in category view, and my quantity box too. I've created ...
0
votes
0answers
45 views

How can I move quantity box after product title in magento 2.3?

I want to move quantity box after product title without moving add to cart button on product detailed page. I have tried to move quantity box using jQuery but after that always single quantity (...
0
votes
1answer
739 views

What is the difference between inventory_source_item and inventory_stock_x?

With Magento's new multi-source inventory system, various new tables have been introduced into the database. inventory_source_item contains the machine name of the source, SKU, quantity, and the ...
1
vote
1answer
1k views

How to update salable quantity of product from admin or programmatic in magento 2.3?

I have got salable salable quantity of product in magento 2.3 using object manager. But we need to update quantity by programmatic or admin. $getSalableQuantityDataBySku = $this->objectManager-&...
1
vote
0answers
44 views

How Salable Quantity Works and how we can manage?

On the Category page, a product shows "Add to Cart" button and after clicking on it it redirect on product detail page with "Out of stock" message. As checked and found that this product has 2 qty ...
0
votes
0answers
30 views

Add to cart quantity reset to 1 even i added 2 qty in Arabic store Magento 2

Minicart quantity reset to 1 even I added qty 2 Magento 2. I am having the Arabic store, in the Arabic store only this issue shows, is it the problem with Locales. Please help to solve it.
1
vote
1answer
251 views

Rest API error “ ”resources“: ”Magento_CatalogInventory::cataloginventory“”

I am trying to fetch the quantity with https:mydomain.com/index.php/rest/V1/stockItems/24-MB01 I got the following error : "message": "The consumer isn't authorized to access %resources.", "...
1
vote
1answer
118 views

Update Product QTY right before place order from external remote API

We want to update and check product quantity when user clicks on "Place Order" button. If product is outofstock in remote API and get 0 qty then user should not able to "Place Order" and display ...
0
votes
1answer
226 views

Show Quantity as Item in Cart

I would like to display total quantity of items in cart in the minicart. Basically, we sell items in multiple quantities inside a box, if a user adds 1 box, technically they are adding 10 items. 1 box ...
0
votes
1answer
211 views

Magento 1.9 does available stock/qty change when product is added to cart?

I have a store where I selle unique products, so every product has a quantity of 1. When the order is placed, the quantity is decreased to 0 and the product changes to out of stock and it's no longer ...
0
votes
0answers
27 views

Magento 2.2 - Products showing out of stock

I'm having an issue where only a handful of products are showing out of stock even though they have inventory and are set to in stock. One thing I've noticed is that the products will go to in-stock ...
0
votes
1answer
109 views

Magento2.3: Product quantity is not reflecting to the minicart

I have installed a module which is for adding increment and decrement buttons for quantity. After installing the module I can see the buttons in product detail page but when i update the quantity, it'...
3
votes
0answers
430 views

Salable quantity not updated after stock import in Magento 2.3

I have multiple websites and each website have single store and a single store view. Due to which I have multiple inventory tables created in database as inventory_stock_1 (view) inventory_stock_2 (...
0
votes
2answers
3k views

Display stock status on product detail page

I have searched a lot and since I am new to magento I would like your help. I want to display my stock quantity on my product details page. Can someone please give me a step by step configuration ...
0
votes
1answer
17 views

Magento 2: How to decrements item qty?

I want to decrements item qty programmatically. $item = $this->cart->getQuote()->getItemById($itemId); $qty = $item->getQty(); if($qty > 0) { $newqty = ($qty - 1); ...

1
2 3 4 5 6