• Hi Roland,

    As always thank you so much for this awesome plugin!
    I don’t want the decimals to display in some cases.
    For that field I tried to convert to bigint in the log table but it is still displaying the .00 with pdb-log_list shortcode.
    I tried to change the value in the loop template but I don’t get the .00 when I do $this->field->value
    Any idea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sanaconeltantra

    (@sanaconeltantra)

    I can actually change the value using $this->field->value but I have to provide an integer and it will add the .00 anyway with the print_value

    Plugin Author xnau webdesign

    (@xnau)

    The curreny field will dispaly the decimal for all values, that’s usually the desired effect. This is not dependent on the datatype, it is formatted thart way by php.

    If I understand what you’re looking for, you’d have to use your own code to change the display to show decimals or not according to the value. The plugin is not going to do that without some ecustom code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove decimal in currency fields?’ is closed to new replies.