Let’s initiate a discussion!!
If you got the qty box empty when you edit the product from the cart page, please follow the below instruction.
You need to override “vendor/magento/module-checkout/view/frontend/templates/cart/item/configure/updatecart.phtml” file in your theme
<vendername>/<themename>/Magento_Checkout/templates/cart/item/configure/updatecart.phtml
then just add below line in value
<?= $block->getProductDefaultQty() * 1 ?>
After making above changes QTY field code show will look like below:
1 2 3 4 5 6 7 8 |
<input type="number" name="qty" id="qty" min="0" value="<?= $block->getProductDefaultQty() * 1 ?>" title="<?= $block->escapeHtmlAttr(__('Qty')) ?>" class="input-text qty" data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> |
Note: I have tried this in Magento 2.3.6 – Let us know if it works with the other versions as well.
[crayon-641fc05cc30f9366201304/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.