Questions tagged [quantity]

Questions related to products or inventory quantity or stock

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

my previous developer set the max quantity of purchase of determinated products to 1 and dont know how to fix it

my problem is that my previous developer set the max quantity to purchase of determinated products ( with a especific attribute set) to max 1 and i dont know to change it to allow default quantity....
1
vote
0answers
21 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
27 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
11 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
28 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
13 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
13 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
35 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
0answers
22 views

Liquid Product in Magento 2.3.4

I have a store that sells liquid products (beer). The problem I am facing is that the salable stock is in liquid ounces. Example: 1. If a customer buys a growler, Magento should decrease the stock by ...
0
votes
0answers
15 views

Limit Magento 2 Product Quantity based on Other Product

I'm selling a subscription box, in which each box can have a total Quantity of 12 Products Only. No Less than it no more than it. For Instance - Tshirts XXL Size and Tshirts L Size If a Person ...
0
votes
1answer
26 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
0answers
6 views

On product page, how do update the total price automatically depends on the quantity that input by customer?

I need advise, on product page (configurable product & Simple Product), how do update the total price automatically depends on the quantity that input by customer? Can this work Tier pricing and ...
0
votes
1answer
22 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
0answers
25 views

Magento2.2.3 Display added product qty for each product under add to cart button in category page

I really wanna have the same feature like this. Magento 2 - How to display the quantity of each product in cart under the add to cart button in the product tile But I can't find the correct solution. ...
0
votes
0answers
34 views

How to get a product quantity from Magento 2 SOAP api?

I'm pulling a bunch of products from Magento 2 via the SOAP api in postman, but I can't seem to get the quantity of a product. I can get any or all infomation, but I really need to know how many of ...
0
votes
0answers
22 views

Required customizable options not keeping quantity from catalog to product view

When I have a product configured with required customizable options the page is redirect to the product page letting the customer know them must select a required option. This is fine. The problem is ...
0
votes
1answer
44 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
0answers
25 views

How to reset quantity in input field when adding products from grouped products page?

I have my Magento 2.3.2 site configured so that adding products to the cart keeps the customer on the page (doesn't redirect to cart). When a customer adds any product to the cart from a grouped ...
0
votes
2answers
54 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
70 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
123 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
35 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
0answers
36 views

Magento 2.3 How to update product stock quantity programmatically in web serves

Magento 2.3 How to product stock quantity update in programmatically in web serves SoapClinet api request, I want to update multi products stock quantity.
0
votes
2answers
142 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
54 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
52 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
1answer
54 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....
2
votes
1answer
45 views

How to move “addtocart” button to the left side in category view?

I'm pretty new to Magento2 and I'm trying to move elements inside category view. I would move my add to cart button to the right of the screen in category view, and my quantity box too. I've created ...
0
votes
0answers
40 views

How can I move quantity box after product title in magento 2.3?

I want to move quantity box after product title without moving add to cart button on product detailed page. I have tried to move quantity box using jQuery but after that always single quantity (...
0
votes
1answer
341 views

What is the difference between inventory_source_item and inventory_stock_x?

With Magento's new multi-source inventory system, various new tables have been introduced into the database. inventory_source_item contains the machine name of the source, SKU, quantity, and the ...
1
vote
1answer
311 views

How to update salable quantity of product from admin or programmatic in magento 2.3?

I have got salable salable quantity of product in magento 2.3 using object manager. But we need to update quantity by programmatic or admin. $getSalableQuantityDataBySku = $this->objectManager-&...
1
vote
0answers
35 views

How Salable Quantity Works and how we can manage?

On the Category page, a product shows "Add to Cart" button and after clicking on it it redirect on product detail page with "Out of stock" message. As checked and found that this product has 2 qty ...
0
votes
0answers
22 views

Add to cart quantity reset to 1 even i added 2 qty in Arabic store Magento 2

Minicart quantity reset to 1 even I added qty 2 Magento 2. I am having the Arabic store, in the Arabic store only this issue shows, is it the problem with Locales. Please help to solve it.
0
votes
0answers
27 views

Add to Cart with Quantity

I am trying to add the quantity from an input field when you click the "Add to cart" button. I have created a custom module to house this. I currently have: <div class="add-to-cart-btn"> &...
1
vote
1answer
136 views

Rest API error “ ”resources“: ”Magento_CatalogInventory::cataloginventory“”

I am trying to fetch the quantity with https:mydomain.com/index.php/rest/V1/stockItems/24-MB01 I got the following error : "message": "The consumer isn't authorized to access %resources.", "...
1
vote
1answer
87 views

Update Product QTY right before place order from external remote API

We want to update and check product quantity when user clicks on "Place Order" button. If product is outofstock in remote API and get 0 qty then user should not able to "Place Order" and display ...
0
votes
0answers
16 views

Quantity adding issue to inventory

There is any way to decrease or increase the quantity in Inventory through calcinai library(PHP). As I tried with below code $lineItem2 = new Purchase(self::$xero); $lineItem2->setCOGSAccountCode(...
0
votes
1answer
136 views

Show Quantity as Item in Cart

I would like to display total quantity of items in cart in the minicart. Basically, we sell items in multiple quantities inside a box, if a user adds 1 box, technically they are adding 10 items. 1 box ...
0
votes
1answer
112 views

Magento 1.9 does available stock/qty change when product is added to cart?

I have a store where I selle unique products, so every product has a quantity of 1. When the order is placed, the quantity is decreased to 0 and the product changes to out of stock and it's no longer ...
0
votes
1answer
15 views

Magento 2 CE/EE - Custom price and quantity at Store or Store view level

in Magento2 (CE or EE version) there's a way to set custom quantity and custom price for products based on Store or Store view? Or it's required to set that informations at Website level?
0
votes
0answers
29 views

Magento1.9 How to update quantity on cart page ajax based

I am using Mangeto 1.9 and in cart page when I update qty same reflects on mini cart using ajax based work and if I update cart item button click than work same ajax based.
0
votes
0answers
22 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
24 views

Magento 2.2 - Products showing out of stock

I'm having an issue where only a handful of products are showing out of stock even though they have inventory and are set to in stock. One thing I've noticed is that the products will go to in-stock ...
0
votes
1answer
72 views

Magento2.3: Product quantity is not reflecting to the minicart

I have installed a module which is for adding increment and decrement buttons for quantity. After installing the module I can see the buttons in product detail page but when i update the quantity, it'...
3
votes
0answers
283 views

Salable quantity not updated after stock import in Magento 2.3

I have multiple websites and each website have single store and a single store view. Due to which I have multiple inventory tables created in database as inventory_stock_1 (view) inventory_stock_2 (...
0
votes
2answers
1k views

Display stock status on product detail page

I have searched a lot and since I am new to magento I would like your help. I want to display my stock quantity on my product details page. Can someone please give me a step by step configuration ...
0
votes
1answer
17 views

Magento 2: How to decrements item qty?

I want to decrements item qty programmatically. $item = $this->cart->getQuote()->getItemById($itemId); $qty = $item->getQty(); if($qty > 0) { $newqty = ($qty - 1); ...
0
votes
0answers
292 views

Magento 2 Dropdown for Quantity instead of text box

I tried this solution it worked perfectly for me on my Magento 2.2.9. I just wish to extend it with the below functionality - Quantities for the drop-down to pick up from the Tier Prices for the ...
2
votes
2answers
178 views

Load Product Qty by sku in Magento 2 Controller

public function execute() { // Product Colletion $collection = $this->_productCollectionFactory->create(); $collection->addAttributeToSelect(['name', 'special_price', 'entity_id']...

1
2 3 4 5 6