Questions tagged [quantity]

Questions related to products or inventory quantity or stock

Filter by
Sorted by
Tagged with
1 vote
1 answer
20 views

I wanto to make the qunatity of products in a dropdown

My qunatity/Qty on Product page i simple a text field. I want to change it into a drop-down.
user avatar
0 votes
1 answer
55 views

Magento 2 Product Salable Quantity shows 0 even if Qty is greater than 0

The products Salable Quantity of Simple products shows zero(0). But its Quantity is greater than zero (>0). Due to this product swatches are not showing correctly on the front end. Magento admin ...
user avatar
0 votes
0 answers
13 views

Magento2 : Save Product Quantity To Custom Attribute

I Want To save Product Quantity Value In Custom Attribute. For That, I Have Created Patch With backend_model :-Magento\Catalog\Model\Product\Attribute\Backend\Stock. Whenever I save Value It Renders [...
user avatar
0 votes
0 answers
16 views

Magento 2.3.2. How can I add the stock quantity column to the 'Related Products' admin grid?

Basically, I want to add related products that are in stock, rather than those that aren't, so I am looking to add the stock quantity column to the related products grid on the admin side in order to ...
user avatar
  • 25
0 votes
1 answer
66 views

Error message "Some of the products are disabled" on checkout

I am facing a very strange error message on checkout level on our Magento 2.4.4 instance with products with quantity below 1 and this only for customer group "Not logged in" When checking ...
user avatar
  • 27
0 votes
0 answers
13 views

Send product stock quantities of selected products add-on, does it exists?

We're running a wholesale business and would like to send our product stock information of selected products to our customers. In it's simplest form it could be an automatically emailed CSV file with ...
user avatar
1 vote
1 answer
101 views

Magento 2 - How to find all products with Salable qty as 0 via SQL query?

Is there a simple SQL query I can run to find any ENABLED product in Magento that has a salable quantity which is 0? We have thousands of products and in the back end product grid we can sort and ...
user avatar
  • 23
0 votes
1 answer
26 views

Magento 2 - Getting wrong quantity from a simple product

I've only recently started working with Magento and developement in general, so I am new at this. I need a (simple) product's quantity for some custom logic. But I don't know how to get it into my ....
user avatar
  • 3
0 votes
0 answers
5 views

Magento 2 wrong tax calculation frontend plus able to order quantity what isn't in stock

Look: Where you see tax, but it should be 21% = €24,36 and this shows €26,77 Also in backend the order shows 30% while the calculation isn't Look: And second, The quantity of this product in stock ...
user avatar
0 votes
0 answers
22 views

Shipping value rounding is changing in order summary when product qty is increased

We have set up the shipping charge as 20AED with 5% inclusive of VAT. We have configured shipping to display as Exclusive. When we place an order, in the shopping most of the time we are getting (20/1....
user avatar
0 votes
1 answer
20 views

Magento 2 : Get Global Max Allowed Quantity

How can I get global max sales qty in cart page.
user avatar
0 votes
0 answers
30 views

change place order button text when quantity is modified

I need to change place order button text when quantity is modified in cart page help please!
user avatar
0 votes
0 answers
19 views

Magento 2: Decimal quantity in Grouped Products

Steps to reproduce Magento 2.3.7 Create a number of simple products - each with the below settings in the Advance inventory section. Minimum Qty Allowed in Shopping Cart = 0.1 Qty Uses Decimals = Yes ...
user avatar
  • 121
0 votes
0 answers
32 views

Magento 2: How to implement decimal quantity with round off

How to use quantity in decimal, I know Magento has this feature by default. But I want to make this decimal quantity to round off feature. for example 0.1, 0.2, 0.3 if any user put 0.15 it should ...
user avatar
  • 121
0 votes
2 answers
117 views

Ajax Add to Cart validation - When customer add more products to cart than the stock quantity is available in Product

When user is adding/increasing quantity than how to we can restrict him ? He can't add/increase quantity more than available saleable quantity. How to we can apply validation for display error message ...
user avatar
0 votes
0 answers
16 views

get number of items in order summary

I need to display the number of product in cart page in order summary block, it has to be uploaded by ajax once we increment or decrement the quantity
user avatar
0 votes
1 answer
16 views

getCartQty code location

in Magento in Magento\Quote\Model\Quote\Item\Processor.php $candidate->getCartQty() is fetching wrong quantity for some products. I searched the whole codebase for "getCartQty()" and I ...
user avatar
0 votes
0 answers
62 views

Programmatically creating a quote/order: Unable to disable "is salable" / quantity check completely

I am programmatically creating an order. I have a product with a stock of 50. If I create an order with 40 units, it works as expected. If I try to order for example 60 units, I get an exception: The ...
user avatar
  • 1,053
0 votes
0 answers
5 views

Magento 2 | Take a specific tier price based on quantity with PHP

I'm trying to figure out how to take a specific tier price if I enter a quantity in the php function. For example, I want to have the price per 1000 pcs of a product. This is my code but I don't know ...
user avatar
  • 297
0 votes
0 answers
23 views

Magento2 change QTY in sales order

I would like to change QTY in magento2 in sales order e.g. Currently in sales order admin area & email etc.. it shows 1 or any other digit as added. I need to change it everywhere like below For ...
user avatar
  • 3,446
2 votes
1 answer
143 views

Magento 2 place order error

I am getting below error in place order with "google pay" [2021-06-30 12:00:06] report.CRITICAL: Error message {"exception":"[object] (Magento\Framework\Exception\...
user avatar
  • 367
1 vote
0 answers
293 views

Magento 2 : The requested qty is not available

While applying shipping using "/V1/stripe/payments/apply_shipping" api call, if the product's (simple product of config) product qty is 1 exact then it falls into below condition in file. ...
user avatar
  • 367
0 votes
0 answers
45 views

How to double the items in the cart by updating the quantity in the product cart page?

Double the value in the cart by updating the quantities.
user avatar
  • 19
0 votes
1 answer
139 views

How to set a default quantity in Bundle Product

Here I am trying to pre-populate bundle product quantity in bundle edit page. I tried to add a default value but its not working. here my code sample. /vendor/magento/module-bundle/Ui/DataProvider/...
user avatar
0 votes
1 answer
340 views

Salable Quantity is greater than quantity with some products

on some cases my salable quantity is greater than my quantity, not for all product but for example to 10 products on 1000. I could not figure out why, I also tried to delete the product and insert it ...
user avatar
  • 1
0 votes
1 answer
265 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. ...
user avatar
0 votes
1 answer
80 views

Decimal quantity products price

We are selling fabrics, I want the quantity to be by meter price, like decimal numbers. For example a client can order 0.1 m; 0.2m ; 0.3m; 0.4m; 0.5m etc.. If the client orders 0.15m it will transform ...
user avatar
  • 121
0 votes
1 answer
51 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 ...
user avatar
0 votes
0 answers
68 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 ...
user avatar
  • 25
0 votes
0 answers
76 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 ...
user avatar
  • 498
1 vote
1 answer
49 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 ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
1 vote
2 answers
109 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!
user avatar
0 votes
1 answer
39 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
user avatar
  • 700
0 votes
2 answers
63 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?
user avatar
  • 80
0 votes
2 answers
203 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 ...
user avatar
  • 109
0 votes
0 answers
366 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 ...
user avatar
2 votes
1 answer
971 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, \...
user avatar
  • 1,521
0 votes
1 answer
83 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 ...
user avatar
0 votes
1 answer
234 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....
user avatar
  • 3,446
1 vote
0 answers
65 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/...
user avatar
1 vote
1 answer
102 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 ...
user avatar
  • 309
1 vote
1 answer
26 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 ...
user avatar
  • 518
2 votes
0 answers
71 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 ...
user avatar
  • 111
1 vote
0 answers
42 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 ...
user avatar
  • 518
0 votes
1 answer
24 views

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

HI How can I get MOQ of product by using object manager?
user avatar
  • 518
1 vote
2 answers
308 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 ...
user avatar
0 votes
1 answer
175 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 ...
user avatar
  • 925
0 votes
1 answer
26 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 ...
user avatar
  • 15
0 votes
1 answer
64 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....
user avatar
  • 387

1
2 3 4 5
7