ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Insert a comma after every third character

May 13, 2013 7:35pm

Subscribe [2]
  • #1 / May 13, 2013 7:35pm

    APGWest

    295 posts

    I’ve got a feed that is giving me a price of an item as text.  I would like to insert a comma after every third zero “character”, starting from the right, preferably without having to enable PHP.  EE do anything like this or anyone know of an add-on for such a problem?

  • #2 / May 13, 2013 10:54pm

    Bhashkar Yadav

    727 posts

    Hi Don,

    I think, you would like to have thousands separator in the price. You can use the plugin Number Format (http://devot-ee.com/add-ons/number-format) and can put the tag like:

    {exp:number_format number="{price}" decimals="2" dec_point="." thousands_sep=","}

    I hope, it would help you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases