Questions tagged [quantity]

Questions related to products or inventory quantity or stock

Filter by
Sorted by
Tagged with
0
votes
0answers
3 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 ...
0
votes
0answers
15 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....
0
votes
1answer
10 views

Magento 2 : Get Global Max Allowed Quantity

How can I get global max sales qty in cart page.
0
votes
0answers
19 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!
0
votes
0answers
8 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 ...
0
votes
0answers
24 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 ...
0
votes
2answers
36 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 ...
0
votes
0answers
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
0
votes
1answer
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 ...
0
votes
0answers
18 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 ...
0
votes
0answers
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 ...
0
votes
0answers
18 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 ...
2
votes
1answer
49 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\...
0
votes
0answers
144 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. ...
0
votes
0answers
28 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.
0
votes
1answer
88 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/...
0
votes
1answer
178 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 ...
0
votes
1answer
137 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. ...
0
votes
1answer
32 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
52 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
35 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 ...
1
vote
1answer
34 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
24 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 ...
1
vote
2answers
66 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
29 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
46 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
156 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
127 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 ...
1
vote
1answer
593 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
66 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
1answer
115 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....
1
vote
0answers
59 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
83 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
23 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
55 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
32 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
19 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
214 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
1answer
126 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
24 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
62 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
86 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
501 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
568 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
116 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
609 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
254 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
140 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
138 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....

1
2 3 4 5
7