Hello Magento Pals, 

Last time we learned How to Write translatable strings in Email, PHTML, UiComponents, js, etc. in Magento 2

Today, we are going to learn how to remove decimals from the quantity product grid in Magento admin. First, If you want to remove quantity decimal, then you can do it via this code.

Create file app\code\VENDOR\EXTENSION\module.xml file

Create app\code\VENDOR\EXTENSION\view\adminhtml\ui_component\product_listing.xml

Create app\code\VENDOR\EXTENSION\Ui\Component\Listing\Columns\QtyFile.php

and that’s it- Now, You can remove decimal from quantity in product grid in Magento admin. The code strings above are just for the reference only you can customize it and implement it for your use as per your needs. If you face any problem while during so then contact our support team.

Lastly, feel free to comment below and let us know what you think about this article. Also, you can share this with your Magento colleagues and partners.

Happy Coding folks ? & If you haven’t checked our #MageheartDays Sale for Magento Lovers, Check all lovely offers from MageComp here

 

 

Click to rate this post!
[Total: 4 Average: 4.8]