If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Changing products_weight field from float to decimal

Changing products_weight field from float to decimal

Locked

Started by kwright on 25 Aug 2009, 9:04 PM · Views: 558

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
25 Aug 2009, 9:04 PM
#1
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Post #1 by kwright

Is there a reason why the products_weight record needs to be type float?

I would like to change it to type decimal (4,3). Does anyone know if that would cause any issues with the various shipping modules?

The reason for the change is how MySQL handles (or doesn't handle) comparisons with float values...we run reports against a master file with weights of type decimal.

Thanks :smile:

Experience is what you get when you don’t get what you want…