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 -->
...
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\...
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/...
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']['...
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">
...
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-...
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
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-...
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
) {...
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', $...
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
)...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
qty-increment × 53magento2 × 12
product × 10
magento-1.9 × 9
quantity × 9
cart × 8
qty × 7
php × 5
addtocart × 5
multi-vendor × 5
magento-1.8 × 4
shopping-cart × 3
mini-cart × 3
javascript × 2
configurable-product × 2
stock × 2
bundled-product × 2
inventory × 2
magento-2.1 × 1
magento2.3 × 1
magento-1.7 × 1
checkout × 1
database × 1
orders × 1
price × 1