Passer la navigation

[Résolu] content template – display numeric value to include a comma for pricing.

This support ticket is created Il y a 4 years, 2 months. 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 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Shane Il y a 4 years, 2 months.

Assisté par: Shane.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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