Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [qty]

The tag has no usage guidance.

1
vote
0answers
16 views

Magento 2.3.1 manage stock = no but showing only 0 left

I have turned on the feature in Magento that shows only x remaining when the stock is less than 5 which works fine. However on products that are set to stock manage = no, it's showing there's only 0 ...
1
vote
1answer
33 views

Add to cart one product with different size at once in product listing page magento 2.3

I want my customers to add products with different size at once in the shop cart, is this possible ? can anyone help me ? please see attached screenshot: https://imghostr.com/F2QnsQgR
0
votes
1answer
50 views

How to add Qty in add to cart form on Product Listings Page for configurable product in Magento 2

I want to add Qty field on product list page for configurable product and simple product. I am using Magento 2.3.1 can you guide me how can I do?
1
vote
3answers
65 views

how to add negative qty product into cart in magento. 2

How to add a out of stock (less than 0 ) product in shopping cart in magento 2 In my backorders setting i have custom option as Allow pre-order when i select a custom option and saved a ...
0
votes
0answers
12 views

Edit quote qty but price incorrect for mutiple products

I would like to update quote from a order. When I update qty of a item from quotes it make correct subtotal and tax. However, when I update great than 2 items then subtotal and tax get last data ...
0
votes
0answers
17 views

Sell simple product and configurable as pair

I'm currently using bundle products to list a simple product sold as a pair. Is there a better way to do it? The reason i'm asking is that bundle cause weird behaviour with tier pricing on the ...
1
vote
0answers
38 views

Magento 2.2.3: Unable to add more than 1 qty product in the cart

I've created a custom theme and wishlist page looks like this Product is getting added in the cart for qty 1. But when I set qty more than 1, I am redirecting to the product detail page. Here is my ...
0
votes
0answers
41 views

Restrict product quantity drop down value for configurable products magento 1.9

<label for="qty"><?php echo $this->__('Quantity') ?></label> <select class="input-text qty" name="qty" id="qty"> <?php $i = 1 ?> <?php $productQty = (int)...
1
vote
0answers
75 views

Magento2 : How Can I Update My Custom Fee While I Update Qty From Admin New Invoice Section

I have create one module to add custom fee to order product wise , for eg . 1 product = 10 , so 5 product = 50 , and custom fee is working fine in all section like checkout, order, Invoice now my ...
1
vote
1answer
39 views

How to add Qty Input to product list WIDGET

How can you add Qty Input to product list Widget in Magento 2. (not the the product list page as described here) I have added a product list widget to a CMS page like by clicking on the insert widget ...
0
votes
0answers
24 views

How to add update button in qty in checkout cart?

How to add update button in qty in checkout cart ? How to add update button in qty in checkout cart?
0
votes
0answers
13 views

fixed decimal qty on certain sku

I'm looking for a way out for some products that they only have certain qty behavior like 0.25kg/0.5kg/0.75kg, is there any method that could help to show this behavior on frontend or if I can check ...
2
votes
0answers
10 views

QTY box validation

I want to set a validation to use only English keyboard number on QTY box in product page magento 2.1 I mean that with any keyboard press 3 it use English keyboard not for-example Arabic keyboard
1
vote
1answer
23 views

Magento 2 - How to sell items separately or as a set?

We currently have a lot of items that we sell either as a full set or as individual items. For example say we have a product - Green Marbles. The individual sizes are small,med,large. Or a full set ...
1
vote
1answer
731 views

Magento 2.3 Saleable stock qty does not equal Global Attribute Qty

I have a simple product,(one of many), that is linked to a configurable product. I'm trying to get the salable quantity and attribute quantity to match. The site is in a dev env, so I don't think ...
0
votes
0answers
51 views

Quantity not getting validated (the way it should) for numbers between 1 - 9

I have problem with quantity increments, unable to increase the quantity for a product in the cart by increasing the quantity number in the input field, the input field for quantity does not seem to ...
3
votes
3answers
637 views

Magento 2.3 : How to set qty for multiple sources (Multi source inventory) programmatically

I have a site with 3 inventory sources. I want to add and update product inventory to each source by product sku. Please help me
2
votes
2answers
678 views

Magento 2.3 : Getting qty from all assigned sources (Multi warehouse inventory) programmatically

How to get qty from all assigned sources (Multi warehouse inventory) programmatically i.e sources and corresponding quantities.
0
votes
0answers
33 views

Magento2 QTY is always decimal, is this default? Can it be set non decimal?

My QTY is always in decimal for all products I import, is the decimal qty actually magento2's default? I've set the column on my import, but it seems I always get the decimal regardless. How do I set ...
1
vote
2answers
75 views

How to display stock quantity only for simple products?

I want to display stock quantity only for simple products. For that, I added some code and it's working fine for simple products. But the thing is it's also showing quantity for other types of ...
0
votes
1answer
58 views

Magento 1.9 set default 'Qty' to 100 and 'Stock Availability' to Blank

In magento 1.9 I need to set the default qty value to 100 and Stock Availability to blank while creating a duplicate product. So when a user duplicates a product, he should see qty value as 100 and ...
2
votes
1answer
427 views

How to extend sidebar.js to perform action on Qty change in Minicart Magento 2

I added a text field Box in minicart that need to perform some calculation on keyup to update Qty. I Added box field by modifying module-checkout/view/frontend/web/template/minicart/item/default....
1
vote
1answer
588 views

Magento 2: Show out-of-stock products in search results?

We have disabled out-of-stock products from showing on the frontend, but would like to override this for search results only. How would we accomplish this? Note: this store has thousands of products ...
0
votes
0answers
28 views

How to add different quantity packages for a product?

I am using Magento 2.2 and want to be able to set different packages that can be purchased. Like for wine for example. It should be possible to order 1 bottle or 6 or 18 for example. I know the qty ...
1
vote
1answer
334 views

Set Individual Product's Minimum Qty Allowed in Shopping Cart for a particular customer group

I'm looking to setup a particular product with a minimum order quantity but only for a single customer group ("Wholesale"). Is there a way to do this using the core Magento 2 functionality? Barring ...
1
vote
1answer
498 views

Magento 2 how to do minicart ajax update

Is there any way to update the mini cart with ajax without update button. I am using Magento 2.1.7 how to do mini cart ajax update when qty increment(+) and decrement(-) inside the mini cart, as qty ...
0
votes
1answer
49 views

Magento 1.9.x Quantity Select Box Increments - How can i limit them?

We currently display product quantities in select box <select><option> type inputs and limit the select dropdown to a maximum Qty of 30. This has been working fine for us however we want ...
4
votes
1answer
112 views

Magento 2 Product quantity showing empty on Update Product details page

Step to reproduce Add product to cart Go to cart page Click on Edit item parameter. Qty box value empty. Any help would be appreciated!Thanks.
1
vote
2answers
267 views

Magento2: How to get product quantity and minimum quantity value?

In magento 2 how to get product quantity and minimum quantity value customly created modules?
0
votes
2answers
639 views

How to get quantity of each product in cart magento 1.9

After added products to cart, we can get all qty in cart. But I want to get qty of each product, how to do? Thanks. This is my cart I added product. I want to get qty of each product, example: ...
0
votes
0answers
42 views

Split order based on quantity in magento 2.2

I am using Magento 2.2.5 I want to split order based on the quantity which is ordered by the customer. how I will split in the admin panel.
0
votes
0answers
25 views

Mageno1.9 update inventory qty fields having custom values

Can anyone help me how to update the custom values of inventory quantity fields in magento1.9: Like: Qty: test1: 20 test2L: 30
0
votes
0answers
114 views

How to Add Checkbox on Bundle Products

i want multiple select product with checkbox and handle user define quantity as show in picture in magento 2
0
votes
1answer
1k views

Shopping cart page, update quantity by ajax

Issue:- Is there a ready solution to update shopping cart page by ajax url/checkout/cart/? I found similar questions but there is no working solution, but as for me, it's very useful feature and ...
1
vote
1answer
710 views

How to get the Qty left in stock of a particular product in Magento 2

anybody can suggest me that how can i display the left quantity in stock of a particular product in product details page ?. I am using Magento 2.1.3.
0
votes
1answer
271 views

Get total Qty of Items Ordered in Create Order in Magento Admin

I want to Sum up all the QTY of each all items. I added another column, actually I just removed the Colspan. I want all QTY to be summed up. Then thses are the files that I adjusted For view app/...
0
votes
1answer
1k views

Magento 2 - Get product qty and special price from product collection

I am able to get a product collection by using the ProductRepositoryInterface: \Magento\Catalog\Api\ProductRepositoryInterface Then loop through products by doing: $list = $this->...
3
votes
1answer
2k views

Magento 2 Rest Api get Products List including qty field

I am trying to make an api call to get a list of products. I am using searchCriteria to filter the products collection. The following information of the product is needed: -sku, name, id, price, ...
2
votes
2answers
834 views

Magento : Show same product as separate in cart

I have products with different custom options. When a same product with same custom options is added to cart twice, it appears in the cart as 2 X qty Please refer the image I want to display it as ...
0
votes
1answer
98 views

Can't using plugin for checkQty in StockStateProvider Magento 2

I am trying to using plugin to return checkQty() to true to skip validate this but I can't. I don't know why? public function aroundCheckQty($subject, callable $proceed, StockItemInterface $stockItem,...
0
votes
2answers
4k views

Magento 2: Get qty of added product in cart

I want to get total quantity of product added in cart by product ID. I use \Magento\Checkout\Model\Cart class to get all items in cart. $items = $cart->getQuote()->getAllItems(); foreach ($...
3
votes
1answer
92 views

Magento 1 : How to disable product price update on the front-end when changing a product Qty

I want to disable the price update with qty. In default magento price calculation is "Product PriceXQty". I want to disable it and total price in the cart is product price only.
1
vote
0answers
645 views

Can't update products qty in cart Magento 2

I have some trouble with updating products quantity in cart. When I change qty in the mini cart and click update, nothing happened. I saw a similar problem in Magento 1.9 and there were answers to ...
0
votes
1answer
376 views

Magento 2 : Add to cart qty validation

In default Magento 2 Why "e" is allowed to be entered and no any other letters in Qty textbox, It should allow only numbers.
1
vote
1answer
257 views

Display quantity with “if conditions”

I use this to display the quantity of my products. <div class="availability-qty"> <?php if ($_product->isAvailable()): ?> <p class="availability in-stock"><?php echo $this-...
0
votes
2answers
177 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
350 views

Magento 2 : How to Get Product SKU Quantity Displayed on Details Page

Magento 2, How to get the product SKU quantity displayed on product details page。
3
votes
0answers
1k views

Magento 2 : How to Update Price After Changing Qty On Cart

How to update price after qty changed by dropdown in magento 2. I changed qty input type to dropdown like below code in default.phtml: <td class="col qty" data-th="<?php echo $block->...
1
vote
1answer
480 views

How to restore items' Qtys for canceled orders

If an order is being canceled, its items should be restored into the inventory. How can this be implemented? Thanks
3
votes
1answer
412 views

Magento : Get Quantity of Added Product in cart_product_add_after Event

I need to get quantity of product being added NOT quantity of that product in cart. E.g. I am on product view page and set quantity to 5 and click on "Add to Cart". I need to get that quantity in ...