Questions tagged [quantity]

Questions related to products or inventory quantity or stock

Filter by
Sorted by
Tagged with
0
votes
0answers
3 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
18 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
20 views

Saleable quantity = 0 but items still showing in stock on front end

I have looked all over the place for an answer to this, but am still coming up stumped. BACKGROUND: Magento 2.3.2 We are a plant nursery and sell several different versions of the same plant. I ...
0
votes
0answers
19 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
14 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
21 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
41 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
12 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
40 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
38 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
56 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
24 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
30 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
1answer
46 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
35 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
40 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
37 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
40 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
34 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
99 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
111 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
19 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
18 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
25 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"> &...
0
votes
1answer
49 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
74 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
14 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
70 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
47 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
0answers
6 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
26 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
15 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
22 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
50 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
177 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
217 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
0answers
31 views

Salable Quantity display on Product page in magento 2.3.1

I am having 2 problems with Salable Quantity on magento2.3.1 version 1. Want to show Salable Quantity default stock on the product pages 2. The site is displaying those products which have Salable ...
0
votes
1answer
15 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
142 views

How to show Quantity as filter in layered navigation in magento 2

I want to show Quantity filter in layered navigation like this Quantity 0-10(2) 11-20(4) I have enabled this attribute filter from admin panel and it is showing like Quantity In Stock(200) So ...
0
votes
0answers
169 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 ...
0
votes
0answers
21 views

Magento 2.2: First/Highest Tier price and quantity not visible

I am using the following code on product list page (category page), but it does not seem to display the very first tier price and quantity. So it basically skips it and starts with the second one, ...
2
votes
2answers
121 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']...
0
votes
1answer
130 views

Quantity increment decrements not working for grouped product magento 2

As a test I created 3 simple products and associated them with a grouped product. I enabled qty increments for the grouped product and set the allowed increment. The system allows you to add product ...
0
votes
1answer
28 views

Quantity selector does not work in magento2

We have configured single products in grouped products. The quantity selector does not work with the minus and "+" signs. See the Screen shot https://prnt.sc/ojpqi1
0
votes
0answers
21 views

Products QTY and Add to Card in Admin

I need to create a Custom Module for update fast QTY (increase or decrease) in stock. My customer don't want to open each product and go to inventory and type the current stock and save. For this I ...
0
votes
1answer
36 views

If quantity(qty) is greater then 1 so this green update button show otherwise disable. How can I do this in Magento 2?

If qty greater then 1 so this green update button show otherwise disable. How can I do this in magento2
1
vote
0answers
32 views

Availability-only not shown on inventory level in Magento 1.9

For my Magento store, the threshold qty is not considered on inventory level, although this is set up in the backend. This is the view with the output of the QTY message app/design/frontend/base/...
1
vote
1answer
83 views

M2 - Reset Salable Quantity

Is it possible to reset the Salable Quantity? It looks like our Stock and Salable Quantity is going the wrong way, they show to much difference. It can because of we removed all the test orders... So ...
0
votes
0answers
50 views

How to get configurable product stock quantity inside swatches-product.js file

Need to add option data attribute for configurable products. Product.Config.prototype.loadOptions = function() { this.settings.each(function(element) { element.disabled = false; ...
0
votes
0answers
22 views

M2 - Configurable product stock is 10, max to order is 6

I have multiple configurable products on my webshop and the quantity is set to 10, but if I want to order 7 items, I get a message "The specified number is not available". And if I order 6 items, it's ...

1
2 3 4 5 6