A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [qty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
22 views

How to get salable qty in magento 2.3.3?

How to get salable qty of each Product and display in Product view page. Can someone help me? Thanks in advance.
0
votes
1answer
20 views

Extract array “qty” string from the array in Magento 2

Have a code that gets quantity from Magento 2 product class ClassName { private $getSalableQuantityDataBySku; public function __construct( GetSalableQuantityDataBySku $...
0
votes
0answers
14 views

Export product quantity to CSV for Magento 2.3

Does anyone have a code to retrieve quantity of product in Magento 2.3 and insert it into CSV with $data[] = $product->.........; Thank you!
-1
votes
0answers
19 views

How to call function to get product quantity in Magento 2.3 [closed]

how to call this function? use Magento\InventorySourceDeductionApi\Model\GetSourceItemBySourceCodeAndSku; ... public function __construct( GetSourceItemBySourceCodeAndSku $...
0
votes
2answers
29 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!
0
votes
0answers
18 views

Magento 1.9 Order - What is the issue new order qty canceled?

I have received order, if i try to take invoice its not possible to do that because of qty canceled, How to solve the issue?
0
votes
0answers
26 views

Magento 2 how to update price on quantity change in product detail page using knockout

I am using magento version 2.3.2 I want update price based on Qty change using Knockout js in Product detail page anyone help here, thank in advance
1
vote
1answer
43 views

Set custom default qty when creating new product Magento 2.3

I need Quantity field to be filled with custom value when creating new product in admin. I have already tried modificators (haven't figured out how to set data for new product with modifyData($data) ...
0
votes
0answers
15 views

Magento 2: Cart is allowing update more than available qty

I am having very odd issue. I am using Magento 2.3.2. I have migrated data from magento 1.9.3. While I am adding product to cart, It works perfect, however whenever I try to update qty from cart it ...
0
votes
1answer
27 views

Decimals in Minimum Qty Allowed in Shopping Cart

I have a special setup where we have some products that are sold on exact sizes (like 3.14 sq m). In order to comply with local invoice regulations the base price needs to be provided in 1 sq m, so ...
2
votes
0answers
24 views

Magento 2: How to add product QTY in layered navigation filter?

I need to add qty filter in Layered Navigation so Customer can filter products using qty. I have implemented using product stock status but due to backorders. I need to display products based on ...
1
vote
1answer
141 views

Magento 2.3.2: How to override a Inventory Deduction API model?

I want to override below Magento core file vendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php to add code $qty=0; inline 83. I tried by my self but getting an ...
0
votes
0answers
9 views

Magento 2.3.2: Need decrease salable quantiy on while set from admin ,Decrease Stock When Order is Placed set “NO”

Is it possible to still decrease salable quantity on place order while select from admin, Decrease Stock When Order is Placed set "NO". if yes please help how can.
0
votes
0answers
16 views

Magento Api stockItems/{sku}

I need to call stockItems/{sku} but the sku contains special characters like / . I have tried to encode but I don t know how magento is handling it. Please help
3
votes
4answers
555 views

How to update product qty and Stock Status update programmatically by product id : Magento 2

I want to update product qty and change Stock Status as in stock by programmatically by product id. I dont want to insert new product, but I want only update existing product by its id. Any one know ...
0
votes
0answers
24 views

Magento 2.3 : Update product quantity in cart

I have a custom module ajax cart. How can I update the quantity of product I added in first photo, and it is synchronized with the quantity in the cart. Thank in advance.
1
vote
2answers
55 views

Magento 2: after get qty its show zero always [closed]

After get qty its show zero always Magento2
0
votes
1answer
30 views

Magento 2 limit max length in Qty field

I wan't to know how to set a max length for the Qty field that is when you click a product (I guess it's product View) I tried to override the following template and set maxlength = "4" but did not ...
0
votes
1answer
29 views

Enable decimal qty cause problem when updating cart qty magento 2

I need to the allow decimal qty so I set it to yes but qty can be integer also. So when I updated my qty to integer number it show me warning : please enter a valid value. Why do I have this behaviour ...
0
votes
1answer
40 views

How to set allow decimal qty to yes for all products magento 2

I need to set this configuration to yes for all product is there a way to do it once fo all products ?? any idea please
0
votes
1answer
43 views

How to get extension attributes in product list by using api in magento2

I am using "http://localhost/rest/V1/products" api to get product details but not able to get product quantity in response. So I searched and found that we can get product quantity with extension ...
0
votes
1answer
100 views

How to change qty of simple product after their creation magento 2

I want to change dynamically the qty of simple product according to custom management so how to proceed using plugin or a certain event and is their a specific function to mention like afterGetName ...
1
vote
0answers
114 views

Qty problem for bundle product Magento 1.9

I have one bundle product, and in that product default quantity is 1 But when am trying to add that product in cart getting this error This product is available for purchase in increments of 10 ...
0
votes
1answer
74 views

Decimal Qty increment not working

I am not able to set qty increments as decimal (example 0.5) for product. can anyone help me on that.
0
votes
0answers
31 views

Magento2 weight and qty decimal seperator

How to remove weight decimal from product page? Right now I set 3KG on admin panel but it shows 3.0000 in product page Also i have this issue on QTY too. it shows 5.00. I use Magento 2.1.8
0
votes
0answers
62 views

Magento 2 | SOAP api

I have created an API in Magento 2.3 to update the product qty in bulk. The functionality is working fine, when we execute the API using the $soapClient = new SoapClient($wsdlUrl, ['version' => ...
1
vote
2answers
57 views

Decimal of price and qty magento2.1

I have a problem in my customer panel myorder tab. In my order i see price 12,125.0000 and QTY: 5.0000 how should i remove decimal from them? it is just in my order and methods that i used is like ...
2
votes
0answers
174 views

Mageto 2.3. How add Qty & increment and decrement for Product page and category page and widget

I am just sharing variant how i added increment and decrement for Product page and category page and widget I have created it in my custom theme into module Magento_Catalog. You should create file: ...
1
vote
1answer
171 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
44 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
54 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
181 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
13 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
19 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
189 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
60 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
81 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
175 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
35 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
17 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
24 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
50 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
4k 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
2k 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
2k 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
39 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
145 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
138 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
1k 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
1k 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 ...