Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Wednesday, January 18, 2023

How to Remove Decimal From Quantity in Magento 2 Admin Product Grid

Magento 2 CMS offers networks in the administrator board for simple information the executives. It offers the Items, Clients, Orders, and so on lattices to deal with the information of items, clients, and orders.

Today, I'll discuss the items matrix, and especially the item amount segment in the items framework.

The Items network in Magento 2 presentations item data like item ID, thumbnail, name, item type, property set, SKU, cost, amount, status, and so forth.

Presently, in the default Magento 2 CMS, the item amount is shown in decimal organization up to 4 decimals. For instance, it shows 100.0000 amount for items with 100 amount.

The underneath picture shows the default organization of how the item amount is shown in the administrator item matrix in Magento 2:

Nonetheless, much of the time, the item amount is dependably in the entire number. The whole number worth of the item amount has neither rhyme nor reason.

Consequently, you might need to eliminate this superfluous arrangement of amount and just showcase it as 100 on the items matrix in the administrator board of Magento 2.

You can remove decimals from quantity in admin product grid Magento 2 utilizing the beneath code.

For more info,visit https://meetanshi.com/blog/remove-decimal-from-quantity-in-magento-2-admin-product-grid/


No comments:
Write comments


Get more of our update !