Questions tagged [quantity]

Questions related to products or inventory quantity or stock

Filter by
Sorted by
Tagged with
0
votes
1answer
28 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
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
1answer
27 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
38 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
32 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
33 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 ...
0
votes
1answer
64 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
16 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
23 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
26 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
70 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
34 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
36 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
20 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
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
20 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
42 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
122 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
90 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
30 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
111 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
119 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
108 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
94 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
26 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
20 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
33 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
28 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
63 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
44 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 ...
2
votes
1answer
68 views

Magento 2 : Product Quantity Update Programatically If Product Status is Disabled

We want update product quantity programatically. If product status is Enable then quantity update properlly. But which product status is Disable quantity not update in it. We create one custom module ...
1
vote
0answers
43 views

Remove quantity for some products in minicart

I need to remove the quantity from some product of my minicart. But as the minicart is loaded in ajax, I need to deal with this with JS. Sometime of remove the input, sometime it doesn't. And if I ...
0
votes
1answer
17 views

Getting product stock levels / quantities in Magento 2.3

I have the following code to get a product collection but how do I also return back the stock levels too $products = $this->productCollectionFactory->create() ->...
2
votes
2answers
153 views

Where does Magento decrement quantity of a product after the order is placed?

I need to check the Product Salable Quantity of a product after a successful order to change one of the product´s attributes. I keep getting the product salable quantity before It´s decremented. ...
0
votes
4answers
21 views

How to set qty number to add to cart on product page

How to set certain number when the product page loads up. Default level when you click on a product the add to basket quarry is always one how to change that to different value for each store. I know ...
2
votes
0answers
53 views

How to update quantity into order summary at checkout page?

Magento Version : 2.3.0 As per client requirement, i need to update quantity from order summary at checkout page. Please suggest me, how can i implement this functionality? Thanks in advance
1
vote
1answer
20 views

Minimum quantity and increase with minimum quantity

I would like to have a product with a minimum quantity of 25 and if someone wants to order more and press on the arrow for more it needs to jump to 50, 75 etc. My product is only available per 25. ...
2
votes
1answer
758 views

Can't check requested quantity for products without Source Items support issue on 2.3.1

I have a custom module installed . A module that adds product type to display a product. On the product configuration, it offers other sets of parameters(Min, max price & total price target to set ...
1
vote
0answers
25 views

Sellable Quantity Not Matching Product Quantity

I have alot of SKU which the sellable quantity is less that the actual quantity. So quantity could be 5, but sellable quantity is 3. I thought it could be open orders, or processing orders, so I ...
1
vote
3answers
966 views

How to set qty to product on MSI Magento 2.3

In my custom module, I'm using StockRegistryInterface to set qty and save my product. But on Magento 2.3 I started facing the issue of having 0 salable qty right after saving the product. After ...
0
votes
1answer
45 views

Get stock data for grouped products in Magento 2

How to get grouped product stock in Magento 2? If it uses parent product's quantity, then how can I get the default qty which is set while grouping?
3
votes
2answers
557 views

Salable Quantity is greater than quantity

My salable quantity is greater than my quantity. How has this happened? I recently updated to Magento 2 and have been trying to get my head around the MSI but still can't figure out how salable ...