Questions tagged [qty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
380 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 ...
2
votes
0answers
25 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
132 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 ...
4
votes
1answer
10k 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 ...
4
votes
3answers
5k 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
3
votes
2answers
6k 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
54 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
291 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
263 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
3k 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
2answers
3k 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
68 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
2k 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
2answers
3k 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
210 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
4answers
949 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
2k 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
3k 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
1answer
3k 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
2k 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
0answers
27 views

Code for cart items

I need code to check when a user adds a item in a cart, it is already available in cart or not. if it is already available then i want to update the quantity of the item by 1.
0
votes
1answer
472 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
2k 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
2answers
3k 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, ...
3
votes
2answers
1k 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
198 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,...
1
vote
3answers
8k 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 ($...
4
votes
1answer
129 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
931 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 ...
2
votes
1answer
1k 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
300 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
253 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
499 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
1k 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
587 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 ...
1
vote
1answer
46 views

Can anyone help me to find the file from where i rename product QTY

How to find the file name and location in Magento 2? I want to rename the Quantity to Qty as you can see in the picture
2
votes
3answers
8k views

How to get product QTY on product view page?

I'm trying to get the quantity of the products in this file below, using $_product->getQty() but doesn't get, is returned NULL. design/frontend/MyCompany/MyTheme/Magento_Catalog/templates/product/...

1
2