View Setting

Outputs settings values stored in the backend. This tag accepts settings names as parameters. Use setting_name="yes" to output the value associated with that setting. Only one setting value will be output for each use of this tag, so using multiple parameters is not recommended. This is useful for outputting default regions, prefixes, decimal points and other globally set values.

Only key parameters are listed below. All string parameters can be accessed with this tag however, so if you need something not on the list below, cartthrob > config > config.php to get a list of all setting parameter names. Any of the config items that are not arrays can be accessed using this tag.

Table of Contents

Parameters

prefix

Amount prefix “$”

prefix="yes"
thousands_separator

Thousands separator “,”

thousands_separator="yes"
decimal_point

Selected decimal point “.”

decimal_point="yes"
decimal_precision

The number of decimal places to round to “2”

decimal_precision="yes"
country_code

Default country code “USA”

country_code="yes"
zip

Default zip code “63303”

zip="yes"
state

Default state abbreviation “MO”

state="yes"
region

Default region “my_region”

region="yes"
currency_code

Default currency code “USD”

currency_code="yes"
shipping_option

Selected shipping plugin “Flat Rate”

shipping_option="yes"

Examples

{exp:cartthrob:view_setting prefix="yes"}10{exp:cartthrob:view_setting thousands_separator="yes"}000{exp:cartthrob:view_setting decimal_point="yes"}00