decimal

In Magento 2 Decimal comes from Database so if you want to remove from qty than you need to create column renderer. Please follow below step to create module.

Create Folder like app/code/Agtech/Qty and put below code into registration.php file
Copy to Clipboard
After that create composer.json file into above same path like registration.php and put code.
Copy to Clipboard
Create etc/module.xml file into etc folder and add sequence tag follows
Copy to Clipboard
Create a renderer Agtech/Qty/Ui/Component/Listing/Columns/DecimalRemove.php and put below code
Copy to Clipboard
Create a renderer Agtech/Qty/view/adminhtml/ui_component/product_listing.xml
and put below code
Copy to Clipboard

That’s it. Now, You can remove decimal from quantity in product grid in Magento admin. If you face any problem while during so then Contact our Support Team.

Published On: December 27th, 2024 / Categories: Magento 2 /