Questions tagged [qty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
20 views

How to move Wish List next to Qty input box in product detail page?

I want to move ADD TO WISH LIST next to QTY Input box in product details page. Guide me how to achieve this
0
votes
0answers
26 views

Add ajax qty plus minus buttons in shop page

Hello guys i want to add qty plus and minus in catalog view so when my clients press plus automatically add the item to cart and if the press minus remove the item specific qty from cart. and if they ...
0
votes
0answers
8 views

Magento2 :: Need to set product out of stock for particular category when quantity decrease to 2

Magento2 Need to set products out of stock for particular category when qty is decrease to 2. For all other category is 1. How can I achieve this?
0
votes
0answers
8 views

Cart merge issue in magento 2.3.5

I am facing an issue of cart item merge. I have set Max cart allowed qty to 1. Create a customer add 1 item to cart & logout, now add same item to cart as guest & now login as previously ...
1
vote
1answer
56 views

How do we get the total price to change dynamically with quantity?

If I change the Quantity for a product in product view page, the price has to change automatically. How can it be achieved? Please help me to do this. CODE:- <?php /** * Copyright © Magento, Inc. ...
0
votes
2answers
23 views

Magento 2: Prevent add to cart or qty increase if a product already exists in cart

I want a feature where if a customer tries to add a product which already exists in cart then it should prevent it from adding again or qty increase. Instead I want to show a message that 'The product ...
1
vote
1answer
30 views

M2: Can't decrease qty in cart: Attention The requested qty is not available

I have Magento 2.3.5 installed. Let's say we have 3 of Product A in stock and I add 5 of them to cart. It shows a notification at the cart saying: The requested qty is not available. That is fine and ...
1
vote
1answer
80 views

Magento 2 add Dropdown Quantity Box In Checkout Cart Page

I am trying to replace Drop-down instead of text box at Quantity at Checkout cart page. How can i override /Magento_Checkout/templates/cart/item/default.phtml Thank you
0
votes
0answers
6 views

Magento 2 - update the various types of quantities with each click on the color

On my configurable product there are obviously all the color variations and with each click the product image changes. What I would like to do is to be able to take the various quantity values for the ...
0
votes
0answers
30 views

Magento 2 - get Qty of used products of Configurable

I'm trying to take the various quantities of the products associated with the configurable in this way but the code does not work: $simple_collection = $_product->getTypeInstance()->...
3
votes
2answers
85 views

I have to disable the MSI and enable the usual qty field only in the magento 2.3.5 version

I have to disable the MSI and enable the usual qty field only in the Magento 2.3.5 version https://www.rakeshjesadiya.com/disable-sources-in-multi-source-inventory-magento-2/ I tried to use the ...
0
votes
1answer
26 views

Add product to quote, if he has zero stock qty

How i can add product (for example with 10 qty) to quote if this product has 0 stock qty.
0
votes
0answers
19 views

Update salable quantity when product is added to cart

Our client asked us to develop this feature and I have no idea how to start, the concept is when the user adds a product to the cart the product salable quantity should be updated and the product ...
0
votes
1answer
76 views

How to add dropdown for product qty in update cart page in magento 2?

I added dropdown for product qty box in addtocart.phtml like below: <div class="field qty"> <label class="label" for="qty"><span><?php /* @escapeNotVerified */ echo __('...
1
vote
0answers
48 views

Magento 2 How to get product qty before added to cart with JS?

I'm trying to get the quantities of a bundle product before added to cart with js, jquery, knockout js or whatever can allow me to do this. I want to validate that user cannot add to cart if the qty ...
0
votes
1answer
13 views

Change qty input to the counter of the number of products on mini-cart

How to change qty input to the counter of the number of products. Expected Result:
1
vote
0answers
34 views

Magento2.3 - Add Quantity Increment/Decrement on Category Page

I want to add Quantity Increment/Decrement buttons on Category Page. I am using a theme that already provides this feature on product page. Now I want to add same feature in category pages. Anyone ...
0
votes
0answers
11 views

Magento 2 change qty based on availability

How i change qty programmatically based on availability? I have a lot products where availability is "out of stock" and their stock should change to 0 but when product is "in stock" qty should stay ...
1
vote
0answers
60 views

Magento2.3 - My saleable quantity is reducing twice after placing an order

After creating an order with qty = 5 I see that the saleable quantity of that product reduces by 10. I already checked the table inventory_reservation and two rows where created: Attached the ...
0
votes
1answer
34 views

magento , the qty of products goes into minus on backorder

I'm trying to put qty to 0 if qty < 0, but it's not working for me i all time have qty on minus my code don't working for me public function salesOrderSaveAfter($event) { $order = $event->...
2
votes
3answers
317 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
2answers
58 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
149 views

Magento 1.9 - CCAvenue Orders Automatically Cancelling

I have received order, if i try to take invoice its not possible to do that because of qty canceled as well as Canceled updated in Comment History, I am using CCAvenue Payment Gateway. How to solve ...
1
vote
0answers
245 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
108 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) ...
1
vote
0answers
24 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
58 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
61 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
450 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 ...
3
votes
4answers
2k 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 ...
1
vote
2answers
213 views

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

After get qty its show zero always Magento2
0
votes
1answer
113 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
136 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
66 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
160 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
316 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
241 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
191 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.
1
vote
2answers
114 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
404 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
335 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
63 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
56 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
440 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 ...
1
vote
0answers
288 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 ...
1
vote
0answers
83 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
276 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
87 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 ...
3
votes
1answer
7k 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 ...