View Formatted Number
Formats a number for use in displaying cart calculations. All of the price display tags (like cart_subtotal) make use of the same parameters for formatting. Except for the "number" parameter, all other parameters are optional. If other parameters are not passed in, the defaults set in CartThrob settings will be used.
Table of Contents
Parameters
In addition to the parameters below, you may also use parameters found in Global Number Formatting.
number
The number to be cleaned & formatted
number="12"
Examples
{exp:cartthrob:view_formatted_number number="12.1234" prefix="$" decimals="2" }