Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [quantity]

The tag has no usage guidance.

2
votes
0answers
10 views

bundle vs single quantity discount

I write you because I am trying to create a shopping cart rule that applies a discount to a bundle of materials (2 different materials in each BOM) if the user places more than 10 bundles in the ...
3
votes
0answers
14 views

Grouped Product - force same quantity for all products

I am using Magento 2.3. I have defined 4 different simple products with a price of 3.99 each. I want to create a grouped product to allow the user to purchase 1 of each product, with a total price of ...
1
vote
2answers
57 views

how to add quantity increment and decreament (+ and - button) in minicart magento 2?

actually i am trying to add quantity increment and decreament (+ and - button) in minicart magento 2.3. If anyone have any idea please guide me.
3
votes
0answers
40 views

Magento 2: How to add quantity field in category page [duplicate]

I need to add quantity box in category page. your help will be greatly appreciated
0
votes
0answers
30 views

Disable add to cart button if quantity more than one in magento 1.9

I want to disable add to cart button if quantity more than one in magento 1.9
0
votes
2answers
27 views

Item is out of stock but available on storefront

Can you please guys explain, me how can I do this ? "If an item is out of stock can it stay on the site but say 'More stock on its way' and not allow people to order until stock is available again."
2
votes
2answers
461 views

Salable Quantity is showing zero in product grid magento 2?

Actually in my case Salable Quantity is showing zero in product grid Magento 2.3? Due to this issue, products are not showing in frontend. If anyone has any idea please tell me. For this re-...
0
votes
1answer
31 views

Is it possible to import decimal quantity while products imports for some of the products magento 2?

I am thinking to allow decimals quantity to some of the products while products import Magento 2. If anyone have idea please guide me.
1
vote
0answers
28 views

product quantity is not added more than one product in magento1

In magento1.9 If I will try to add product more than 1 item then item is added in cart only 1 item. I have checked admin configuration is fine but I am unable to to add more than one items in cart. ...
0
votes
1answer
21 views

How to remove “Please enter a quantity greater than ##” when adding a product to cart

I need to remove the "Please enter a quantity greater than ##" message from the product detail page, what file do I have to edit to stop only this specific alert? Thanks! Gonzalo
0
votes
2answers
44 views

What Magento Version (2.x) support Multiple Inventory System

I have more than one store, i need to update more than one store inventory for same product. May i know what Magento Version (2.x series) support multiple inventory System.
1
vote
1answer
38 views

M2 - Get stock quantity on product detail page

I need to get the stock quantity on the product detail page. I'm not an expert in Magento but I was being told that using the objectmanager is not a good idea, but in almost every example I find I see ...
0
votes
1answer
27 views

How do I hide the quantity box in bundle product page?

Basically I've already set default quantity(1) for the linked product in the bundle product display page, now I just want to hide the quantity selection for the linked product all together. Appreciate ...
0
votes
2answers
65 views

Magento 2: How do I track configurable product inventory with intangible attributes?

I'm on Magento 2.2.3, and created some configurable product with multiple attributes and I would like to track my inventory. Magento treats each variation as a simple product with it's own inventory,...
0
votes
0answers
33 views

Configurable Product Add to Cart Issue

I have a configurable product with 4 associated product with it. When I go to configurable product and select a configurable option A and Add product to cart, product added in cart successfully. But ...
2
votes
2answers
527 views

Store level Inventory for individual product Magento 2.2.0

Is there any way that have enable Store level Inventory. Its not about user config Inventory at Catalog > Inventory Its about Admin >> Catalog >> Product >> Open product which you want to ...
1
vote
1answer
422 views

Magento 2 How to set product minimum quantity selected to minimum qty configured in the Advanced Inventory product level

If 5 is the minimum Qty on Advanced Inventory product level for a product then in Product detail page it should as 5 default selected. How can I achieve this.
0
votes
1answer
109 views

Hide the Qty Box in bundle product

I'm trying to find how to remove the qty box on the individual product options in bundles. User doesn't have permission to edit the qty in these box and I want to remove them for a cleaner look. ...
3
votes
2answers
1k views

Magento 2 stock inventory is not being updated

when I placed order in front-end or back-end, quantities of product is not getting reduced or decremented When i have checked in admin panel... Please help me out.. Thanks in advance...
1
vote
2answers
212 views

Magento2: How to get product quantity and minimum quantity value?

In magento 2 how to get product quantity and minimum quantity value customly created modules?
1
vote
1answer
214 views

How to show Qty left in Magento 2 Listing page?

I need to show Qty left message with qty of product in product detail page with below condition. If the available stock is less than 'Notify for Quantity Below' parameter of each product. And can we ...
1
vote
1answer
145 views

Magento 1.9.2. - Update in real time Tier Price when i change quantity

I'm trying this code because I want to see the price of the product change dynamically when in the input field of the quantity exchange the number (this only for the products that have the tier price)....
0
votes
0answers
88 views

Magento2.2.6 : How to maintain different quantities for different websites in multi website?

I am working on Magento-2.2.6. I created two websites for our two stores under single Magento installation. That means, i am working on Multple websites under same Magento installation In this, i ...
0
votes
2answers
72 views

Allow only specific number of quantity products per cart

I have to allow only specific numbers of total quantity products in cart. For example i have to allow total 10 products per cart. it's doesn't matter to specific product, products from specific ...
0
votes
1answer
184 views

Store Quantity of product in meters,cm in magento 2.1.12

I want to make a website for custom shirt.I want to store quantity in meters,centimeters.It is possible in magento 2.1.12.
2
votes
1answer
736 views

Qty Uses Decimals Magento 2 does not work

Our client needs to give the option to the customers to buy certain products in the decimal quantities. i.e. the customers can buy in periods on 0.25. (0.25, 0.50, 0.75, 1, 1.25....... ) Enabled the ...
0
votes
1answer
145 views

How to get ordered quantity from product?

I'm trying to get the ordered quantity from my catalog/product collection, but I'm having this error: Call to undefined method Mage_Catalog_Model_Resource_Product_Collection::addOrderedQty() Here ...
0
votes
2answers
220 views

Cancel order and restore products stock qty

I'm using the following code to cancel programmatically some orders in my magento website: foreach($orderCollection as $order): $order = Mage::getModel('sales/order')->load($order->getId());...
0
votes
1answer
785 views

How to get the stock quantity of the item and show it on a list.phtml page in Magento 2.2.3?

I have been trying to display the stock quantity of each item on the "list.phtml" page but not getting anywhere. Please see the attached photos as an example; this is what I have been trying to ...
0
votes
0answers
139 views

Price not updating with quantity?

I want to update the (total) price on the product pages when the quantity is changed (which it doesn't right now but I know it did at some point so maybe an extension broke this functionality?). The ...
0
votes
0answers
53 views

How to show product stock qty after clicking color?

i've got question here and i need assistance : how to show product stock qty after clicking color? example : when i click grey that's stock 5, when i click blue that's stock 3. P.S : this ...
0
votes
1answer
75 views

How to set the order of the query as descending

I have created a query that would allow me to sort my products based on the quantity they have been ordered. But when I print the query, the quantity ordered is coming in Ascending order. I want to ...
0
votes
2answers
233 views

Magento 2 get availabe stock of product

I need to display available quantity on product list and details page and other pages where product shows. I extended product list class as below <?xml version="1.0"?> <config xmlns:xsi="...
8
votes
1answer
324 views

Restricting customers to max of (some number) purchases for a certain product in Magento

Is there any good modules out there that can handle this? Or would this be a custom event / observer that needs to be written? Here's an image on a non magento site that shows specifically what i'm ...
0
votes
2answers
569 views

Magenoto2: how to get cart item quantity on front end

I am currently using this code and it is working fine, $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); $...
1
vote
0answers
82 views

Catalog Price Rule quantity based discount on original price

Right now I am working on Magento2 Promotion functionality.as per our client requirement we need to apply a discount on the product based on quantity(using the catalog price rule). For that, I have ...
1
vote
0answers
29 views

Using QTY in Rule-Based Product Relations

Using Magento EE 1.14 and would like to be able to use the inventory quantity for rule-based product relations (related, upsell, cross sell). However, I don't see a way to make the quantity available ...
2
votes
1answer
432 views

Magento 2 add Product Quantity to Products in category in backend

Update: Meanwhile I found a solution and updated my code. I added quantity column in 'Products in category', how can I display the value of quantity for every product. Here is my code, in app/code/[...
0
votes
0answers
63 views

Is it possible Product Qty* scope change [Global] to [Store] in Magento admin?

Is that possible as per Magento we need to change product Qty field scope [Global] To [Store]?
0
votes
1answer
193 views

Product Quantity Dropdown

I am trying to change the quantity input shown on the product page to a select field where the maximum quantity selectable equals the total stock quantity minus quantity in cart. While this is ...
1
vote
0answers
88 views

How to show product availble quantity status for configurable products Magento 2?

Available products shows in default simple product in product view page but not showing for configurable products.
0
votes
1answer
23 views

What’s the best way to achieve this several options/quantities pricing model? (not tier)

We sell tours and activities, and often price for child is different from adult price. Currently to achieve needed functionality we are creating 2 simple products for each product (productX-adult, ...
1
vote
1answer
1k views

Quantity Increment and Decrement Button not work in Magento 2

I'm using custom modules to show quantity increment/decrement in quantity box using KnockoutJS. Making custom modules for every folder is correct.but it nothing happpend, after click on increment/...
0
votes
1answer
245 views

Magento 2 : use_config_min_sale_qty on website states 10

When I add a new product or a product option to a configurable product it sets the min_sale_qty to 10 which states a message like: The fewest you may purchase is 10. I want to set this for all ...
1
vote
1answer
63 views

Custom inventory decrement

I have a product that is sold in quantities of 25. If a customer orders one of the product, they actually receive 25. However, in the warehouse, the product is not packaged in bundles of 25. When a ...
1
vote
2answers
290 views

Magento 2 Unable To Get Simple Product Quantity

I am unable to get simple product's quantity Can anyone help out please. I have tried: $product = $block->getAllowProducts(); foreach ($product as $child) { print_r($child->getQty()); ...
1
vote
1answer
202 views

Updating minimum order quantity (Front End View)

I am trying to change the 'Minimum order quantity' on the front end because it currently displays '0'. All simple and configurable products currently display 0. I have gone into the attributes of ...
0
votes
1answer
235 views

How to show the total quantity number(Like 10) instead of “In Stock” status in Magento 2.x?

How to show the total quantity number(Like 10) instead of "In Stock" status in Magento 2.x? I need help for Magento 2.x. Recently I have developed an eCommerce site. On products details page has "...
0
votes
0answers
88 views

Dropdown qty for configurable products magento

I have added this to my view.phtml to set qty as dropdown. This is working for simple products but when i try configurable it takes only qty as 1 even if select 3 or 4 from dropdown. My max cart qty ...
0
votes
1answer
69 views

Quantity problem in Cart

I've purchased wholesale packaged product extension to use it on my website. I am not sure if it is because of this extension, but when a customer orders qty of 2 or up and go to cart, the qty shows ...