cancel
Showing results for 
Search instead for 
Did you mean: 

Changing weight from 4 decimal places to 2 decimal places

SOLVED

Changing weight from 4 decimal places to 2 decimal places

The product weight is showing as 14.0000. I would like it to show as 14.00. I know I can change the value in the catalog_product_entity_decimal table in the database but I am not sure if making this change will affect anything else. Is there a place I can make a change and only affect the weight?

1 REPLY

Re: Changing weight from 4 decimal places to 2 decimal places

Don't change it in the database, change it in the ouput. Modify the template where it is displayed and wrap the output with number_format($weight, 2) for example.

Andreas von Studnitz, Trainer, Consultant, Developer and CEO of integer_net, Germany.