6 votes
Accepted

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

app/design/frontend/Module/theme/Magento_Checkout/web/template/minicart/item/default.html <div class="product-item-pricing"> <!-- ko if: canApplyMsrp --> ...
Hitesh Balpande's user avatar
5 votes
Accepted

Magento 2: How to hide quantity box for certain products which has only quantity?

There is a config in Admin: Log in to Admin > PRODUCTS > Catalog > choose a Product > Advanced Inventory > Maximum Qty Allowed in Shopping Cart > set to 1. Overwrite as below magento\app\design\...
Khoa TruongDinh's user avatar
3 votes

Quantity Increment and Decrement Button not work in Magento 2

=> Go to your theme Folder and create file called addtocart.phtml and past below code. Quantity Increment and Decrement Button working fine by using below code E.g : app/design/frontend/...
Navin Bhudiya's user avatar
2 votes

get Qty Increments

Try following way: <?php $qtyIncrements = 0; $validators = $block->getQuantityValidators(); if(isset($validators['validate-item-quantity']) && isset($validators['validate-item-quantity']['...
Sohel Rana's user avatar
  • 35.8k
2 votes
Accepted

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

Found the solution by adding this code to the theme product listing phtml file. app/design/frontend/Sm/destino/Magento_Catalog/templates/product/list.phtml <div class="box-tocart"> ...
Arsalan Ul Haq's user avatar
2 votes

Magento 2: How to hide quantity box for certain products which has only quantity?

Create an after plugin for shouldRenderQuantity. In your di.xml, add this. <type name="Magento\Catalog\Block\Product\View"> <plugin name="Vendor_Module::configurable-no-...
phagento's user avatar
  • 529
1 vote

How to customize update Mini-cart individual product price total when qty increased - KnockoutJS

you can follow this link ..... https://www.youtube.com/watch?v=czt4WvHILa4
Nitish's user avatar
  • 53
1 vote

Magento 2 product list quantity increment buttons

Magento 2 product listing page add quantity increase and decrease buttons Add below HTML code in form of add to cart section <div class="field qty"> <div class="control qty-...
Baharuni Asif's user avatar
1 vote
Accepted

Magento 2: How to get Total Qty?

Try following way: public function __construct( \Magento\Sales\Api\OrderRepositoryInterface $orderRepository, \Magento\CatalogInventory\Model\Stock\StockItemRepository $stockItemRepository ) {...
Sohel Rana's user avatar
  • 35.8k
1 vote

Magento get product availiblity on checkout review

Instead of getting inventory direct from id,first need to fetch cart item sku then getinventory $sku = $_item->getSku(); $_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $...
Amit Bera's user avatar
  • 77.5k
1 vote
Accepted

Date new stock displayed wrong

Here is new code. $date = new Zend_Date($_product->getData('delivery_eta'), 'MM-dd-yyyy'); $date = Mage::helper('core')->formatDate( $date, Mage_Core_Model_Locale::FORMAT_TYPE_FULL, false )...
Neklo.com's user avatar
  • 2,379
1 vote
Accepted

wrong quantity [zero] is displaying in particular phtml page

Try to use the $assinproducts instead of the $mpAssignProductModel in the file1.phtml. You should add your input with qty after the condition: <?php foreach($this->getCollection() as $...
Siarhey Uchukhlebau's user avatar
1 vote

wrong quantity [zero] is displaying in particular phtml page

You have load model using id. so your code not working $mpAssignProductModel->getQty(); Change it to: $mpAssignProductModel->getData('qty');
Prashant Valanda's user avatar
1 vote

Bundle products add to cart issue

Is difficult to say without knowing what your bundle product module does or whether it handles with Qty. Do you have some observer checking for such in any add_to_cart events? I have seen that for ...
davidmpaz's user avatar
  • 230

Only top scored, non community-wiki answers of a minimum length are eligible