Questions tagged [number-format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers

Can you override decimal places for Expresso Store price variables in the templates?

Expresso Store lets you determine your price decimal places globally. So even if you generally price things as whole dollars ($125.00), it's likely you'll need to set your display to 2 decimal places, ...
James Muspratt's user avatar
1 vote
1 answer

How to get order to go 1, 2, 3, 4... rather than 1, 10, 11, 12, 2, 3, 4

I'm sure this is a simple one, but it's got me stumped so I'd appreciate your thoughts. Here goes... I'm displaying a selection of images The order of these images is controlled by using orderby="...
Tom Perkins's user avatar
1 vote
1 answer

Formatting number from the hit counter (how to add comma)

I need to display the number of visitors to a website on the homepage, and I'm wondering if there is a way to add formmating to the number output by the {hits} variable.
Mike M's user avatar
  • 11
1 vote
2 answers

Decrementing a field value in an Events channel when a form is submitted

I was wondering if anyone can help me. I've got an events channel with a 'number of places available' number field, which users uploading an event populate with how many spaces they have available for ...
Julie's user avatar
  • 11
1 vote
2 answers

{exp:number_format} not working on some pages

I have a snippet {exp:number_format number="{price}" decimals="2" dec_point="." thousands_sep=","} I use this snippet in two pages. The weird thing about this is that in one page, it outputs ...
developarvin's user avatar
  • 2,347
0 votes
1 answer

Quick questions on importing data using datagrab

I'm going to be importing some info using DataGrab for about 700 entries (on this site an entry is a construction project). One of the fields is a number that shows the cost of the project. On the ...
Mike Lohrman's user avatar