Skip Navigation

[Resolved] content template – display numeric value to include a comma for pricing.

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 3 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2341259

We are using toolset and trying to take a numeric displayed value and display it with a comma using toolset content template.

We have added a leading $ but no comma.

As suggestions?

Phil

#2341315

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Phil,

Thank you for getting in touch.

In order to add the comma you're going to have to convert your number value to currency. You will need to use a custom shortcode to do this.

Please follow the instructions in the link below in order to do this.
https://toolset.com/forums/topic/display-numeric-value-as-money-format/

Thanks,
Shane