Change log

currencies

This component renders a form select element of all currency names, codes and symbols by default, and can also be used to output currency data to a Liquid collection.

{% component type: "currencies" %}

Parameters and Options

Parameter
Values
Required
Description
type
currencies

This is the name of the entity that needs to be used for the component retrieving function.

layout
<path/to/layout>

Path to file that will contain the Liquid layout content to be parsed.

If an empty string, nothing will be rendered.
If paramater is not included, the default virtual layout will be rendered (see below).

collectionVariable
<yourLiquidVariableName>

Assigns the data to a Liquid collection enabling further access to the data on the Page or Template using Liquid.

Your collectionVariable value must only contain English letters, numbers or underscores. Spaces or special characters are not supported.

Liquid Output

The below output shows the list of currency data:

{
  "Items": [
    {
      "Code": "AED",
      "Sign": "د.إ",
      "DigitalCode": "784",
      "Name": "UAE Dirham",
      "Params": {}
    },
    {
      "Code": "AFN",
      "Sign": "Af",
      "DigitalCode": "971",
      "Name": "Afghani",
      "Params": {}
    },
    {
      "Code": "ALL",
      "Sign": "L",
      "DigitalCode": "8",
      "Name": "Lek",
      "Params": {}
    },
    {
      "Code": "AMD",
      "Sign": "Դ",
      "DigitalCode": "51",
      "Name": "Armenian Dram",
      "Params": {}
    },
    {
      "Code": "AOA",
      "Sign": "Kz",
      "DigitalCode": "973",
      "Name": "Kwanza",
      "Params": {}
    },
    {
      "Code": "ARS",
      "Sign": "$",
      "DigitalCode": "32",
      "Name": "Argentine Peso",
      "Params": {}
    },
    {
      "Code": "AUD",
      "Sign": "$",
      "DigitalCode": "36",
      "Name": "Australian Dollar",
      "Params": {}
    },
    {
      "Code": "AWG",
      "Sign": "ƒ",
      "DigitalCode": "533",
      "Name": "Aruban Guilder/Florin",
      "Params": {}
    },
    {
      "Code": "AZN",
      "Sign": "ман",
      "DigitalCode": "944",
      "Name": "Azerbaijanian Manat",
      "Params": {}
    },
    {
      "Code": "BAM",
      "Sign": "КМ",
      "DigitalCode": "977",
      "Name": "Konvertibilna Marka",
      "Params": {}
    },
    {
      "Code": "BBD",
      "Sign": "$",
      "DigitalCode": "52",
      "Name": "Barbados Dollar",
      "Params": {}
    },
    {
      "Code": "BDT",
      "Sign": "৳",
      "DigitalCode": "50",
      "Name": "Taka",
      "Params": {}
    },
    {
      "Code": "BGN",
      "Sign": "лв",
      "DigitalCode": "975",
      "Name": "Bulgarian Lev",
      "Params": {}
    },
    {
      "Code": "BHD",
      "Sign": "ب.د",
      "DigitalCode": "48",
      "Name": "Bahraini Dinar",
      "Params": {}
    },
    {
      "Code": "BIF",
      "Sign": "₣",
      "DigitalCode": "108",
      "Name": "Burundi Franc",
      "Params": {}
    },
    {
      "Code": "BMD",
      "Sign": "$",
      "DigitalCode": "60",
      "Name": "Bermudian Dollar",
      "Params": {}
    },
    {
      "Code": "BND",
      "Sign": "$",
      "DigitalCode": "96",
      "Name": "Brunei Dollar",
      "Params": {}
    },
    {
      "Code": "BOB",
      "Sign": "Bs.",
      "DigitalCode": "68",
      "Name": "Boliviano",
      "Params": {}
    },
    {
      "Code": "BRL",
      "Sign": "R$",
      "DigitalCode": "986",
      "Name": "Brazilian Real",
      "Params": {}
    },
    {
      "Code": "BSD",
      "Sign": "$",
      "DigitalCode": "44",
      "Name": "Bahamian Dollar",
      "Params": {}
    },
    {
      "Code": "BTN",
      "Sign": "",
      "DigitalCode": "64",
      "Name": "Ngultrum",
      "Params": {}
    },
    {
      "Code": "BWP",
      "Sign": "P",
      "DigitalCode": "72",
      "Name": "Pula",
      "Params": {}
    },
    {
      "Code": "BYR",
      "Sign": "Br",
      "DigitalCode": "974",
      "Name": "Belarussian Ruble",
      "Params": {}
    },
    {
      "Code": "BZD",
      "Sign": "$",
      "DigitalCode": "84",
      "Name": "Belize Dollar",
      "Params": {}
    },
    {
      "Code": "CAD",
      "Sign": "$",
      "DigitalCode": "124",
      "Name": "Canadian Dollar",
      "Params": {}
    },
    {
      "Code": "CDF",
      "Sign": "₣",
      "DigitalCode": "976",
      "Name": "Congolese Franc",
      "Params": {}
    },
    {
      "Code": "CHF",
      "Sign": "₣",
      "DigitalCode": "756",
      "Name": "Swiss Franc",
      "Params": {}
    },
    {
      "Code": "CLP",
      "Sign": "$",
      "DigitalCode": "152",
      "Name": "Chilean Peso",
      "Params": {}
    },
    {
      "Code": "CNY",
      "Sign": "¥",
      "DigitalCode": "156",
      "Name": "Yuan",
      "Params": {}
    },
    {
      "Code": "COP",
      "Sign": "$",
      "DigitalCode": "170",
      "Name": "Colombian Peso",
      "Params": {}
    },
    {
      "Code": "CRC",
      "Sign": "₡",
      "DigitalCode": "188",
      "Name": "Costa Rican Colon",
      "Params": {}
    },
    {
      "Code": "CUP",
      "Sign": "$",
      "DigitalCode": "192",
      "Name": "Cuban Peso",
      "Params": {}
    },
    {
      "Code": "CVE",
      "Sign": "$",
      "DigitalCode": "132",
      "Name": "Cape Verde Escudo",
      "Params": {}
    },
    {
      "Code": "CZK",
      "Sign": "Kč",
      "DigitalCode": "203",
      "Name": "Czech Koruna",
      "Params": {}
    },
    {
      "Code": "DJF",
      "Sign": "₣",
      "DigitalCode": "262",
      "Name": "Djibouti Franc",
      "Params": {}
    },
    {
      "Code": "DKK",
      "Sign": "kr",
      "DigitalCode": "208",
      "Name": "Danish Krone",
      "Params": {}
    },
    {
      "Code": "DOP",
      "Sign": "$",
      "DigitalCode": "214",
      "Name": "Dominican Peso",
      "Params": {}
    },
    {
      "Code": "DZD",
      "Sign": "د.ج",
      "DigitalCode": "12",
      "Name": "Algerian Dinar",
      "Params": {}
    },
    {
      "Code": "EGP",
      "Sign": "£",
      "DigitalCode": "818",
      "Name": "Egyptian Pound",
      "Params": {}
    },
    {
      "Code": "ERN",
      "Sign": "Nfk",
      "DigitalCode": "232",
      "Name": "Nakfa",
      "Params": {}
    },
    {
      "Code": "ETB",
      "Sign": "",
      "DigitalCode": "230",
      "Name": "Ethiopian Birr",
      "Params": {}
    },
    {
      "Code": "EUR",
      "Sign": "€",
      "DigitalCode": "978",
      "Name": "Euro",
      "Params": {}
    },
    {
      "Code": "FJD",
      "Sign": "$",
      "DigitalCode": "242",
      "Name": "Fiji Dollar",
      "Params": {}
    },
    {
      "Code": "FKP",
      "Sign": "£",
      "DigitalCode": "238",
      "Name": "Falkland Islands Pound",
      "Params": {}
    },
    {
      "Code": "GBP",
      "Sign": "£",
      "DigitalCode": "826",
      "Name": "Pound Sterling",
      "Params": {}
    },
    {
      "Code": "GEL",
      "Sign": "ლ",
      "DigitalCode": "981",
      "Name": "Lari",
      "Params": {}
    },
    {
      "Code": "GHS",
      "Sign": "₵",
      "DigitalCode": "936",
      "Name": "Cedi",
      "Params": {}
    },
    {
      "Code": "GIP",
      "Sign": "£",
      "DigitalCode": "292",
      "Name": "Gibraltar Pound",
      "Params": {}
    },
    {
      "Code": "GMD",
      "Sign": "D",
      "DigitalCode": "270",
      "Name": "Dalasi",
      "Params": {}
    },
    {
      "Code": "GNF",
      "Sign": "₣",
      "DigitalCode": "324",
      "Name": "Guinea Franc",
      "Params": {}
    },
    {
      "Code": "GTQ",
      "Sign": "Q",
      "DigitalCode": "320",
      "Name": "Quetzal",
      "Params": {}
    },
    {
      "Code": "GYD",
      "Sign": "$",
      "DigitalCode": "328",
      "Name": "Guyana Dollar",
      "Params": {}
    },
    {
      "Code": "HKD",
      "Sign": "$",
      "DigitalCode": "344",
      "Name": "Hong Kong Dollar",
      "Params": {}
    },
    {
      "Code": "HNL",
      "Sign": "L",
      "DigitalCode": "340",
      "Name": "Lempira",
      "Params": {}
    },
    {
      "Code": "HRK",
      "Sign": "Kn",
      "DigitalCode": "191",
      "Name": "Croatian Kuna",
      "Params": {}
    },
    {
      "Code": "HTG",
      "Sign": "G",
      "DigitalCode": "332",
      "Name": "Gourde",
      "Params": {}
    },
    {
      "Code": "HUF",
      "Sign": "Ft",
      "DigitalCode": "348",
      "Name": "Forint",
      "Params": {}
    },
    {
      "Code": "IDR",
      "Sign": "Rp",
      "DigitalCode": "360",
      "Name": "Rupiah",
      "Params": {}
    },
    {
      "Code": "ILS",
      "Sign": "₪",
      "DigitalCode": "376",
      "Name": "New Israeli Shekel",
      "Params": {}
    },
    {
      "Code": "INR",
      "Sign": "₹",
      "DigitalCode": "356",
      "Name": "Indian Rupee",
      "Params": {}
    },
    {
      "Code": "IQD",
      "Sign": "ع.د",
      "DigitalCode": "368",
      "Name": "Iraqi Dinar",
      "Params": {}
    },
    {
      "Code": "IRR",
      "Sign": "﷼",
      "DigitalCode": "364",
      "Name": "Iranian Rial",
      "Params": {}
    },
    {
      "Code": "ISK",
      "Sign": "Kr",
      "DigitalCode": "352",
      "Name": "Iceland Krona",
      "Params": {}
    },
    {
      "Code": "JMD",
      "Sign": "$",
      "DigitalCode": "388",
      "Name": "Jamaican Dollar",
      "Params": {}
    },
    {
      "Code": "JOD",
      "Sign": "د.ا",
      "DigitalCode": "400",
      "Name": "Jordanian Dinar",
      "Params": {}
    },
    {
      "Code": "JPY",
      "Sign": "¥",
      "DigitalCode": "392",
      "Name": "Yen",
      "Params": {}
    },
    {
      "Code": "KES",
      "Sign": "Sh",
      "DigitalCode": "404",
      "Name": "Kenyan Shilling",
      "Params": {}
    },
    {
      "Code": "KGS",
      "Sign": "",
      "DigitalCode": "417",
      "Name": "Som",
      "Params": {}
    },
    {
      "Code": "KHR",
      "Sign": "៛",
      "DigitalCode": "116",
      "Name": "Riel",
      "Params": {}
    },
    {
      "Code": "KPW",
      "Sign": "₩",
      "DigitalCode": "408",
      "Name": "North Korean Won",
      "Params": {}
    },
    {
      "Code": "KRW",
      "Sign": "₩",
      "DigitalCode": "410",
      "Name": "South Korean Won",
      "Params": {}
    },
    {
      "Code": "KWD",
      "Sign": "د.ك",
      "DigitalCode": "414",
      "Name": "Kuwaiti Dinar",
      "Params": {}
    },
    {
      "Code": "KYD",
      "Sign": "$",
      "DigitalCode": "136",
      "Name": "Cayman Islands Dollar",
      "Params": {}
    },
    {
      "Code": "KZT",
      "Sign": "〒",
      "DigitalCode": "398",
      "Name": "Tenge",
      "Params": {}
    },
    {
      "Code": "LAK",
      "Sign": "₭",
      "DigitalCode": "418",
      "Name": "Kip",
      "Params": {}
    },
    {
      "Code": "LBP",
      "Sign": "ل.ل",
      "DigitalCode": "422",
      "Name": "Lebanese Pound",
      "Params": {}
    },
    {
      "Code": "LKR",
      "Sign": "Rs",
      "DigitalCode": "144",
      "Name": "Sri Lanka Rupee",
      "Params": {}
    },
    {
      "Code": "LRD",
      "Sign": "$",
      "DigitalCode": "430",
      "Name": "Liberian Dollar",
      "Params": {}
    },
    {
      "Code": "LSL",
      "Sign": "L",
      "DigitalCode": "426",
      "Name": "Loti",
      "Params": {}
    },
    {
      "Code": "LYD",
      "Sign": "ل.د",
      "DigitalCode": "434",
      "Name": "Libyan Dinar",
      "Params": {}
    },
    {
      "Code": "MAD",
      "Sign": "د.م.",
      "DigitalCode": "504",
      "Name": "Moroccan Dirham",
      "Params": {}
    },
    {
      "Code": "MDL",
      "Sign": "L",
      "DigitalCode": "498",
      "Name": "Moldavian Leu",
      "Params": {}
    },
    {
      "Code": "MGA",
      "Sign": "",
      "DigitalCode": "969",
      "Name": "Malagasy Ariary",
      "Params": {}
    },
    {
      "Code": "MKD",
      "Sign": "ден",
      "DigitalCode": "807",
      "Name": "Denar",
      "Params": {}
    },
    {
      "Code": "MMK",
      "Sign": "K",
      "DigitalCode": "104",
      "Name": "Kyat",
      "Params": {}
    },
    {
      "Code": "MNT",
      "Sign": "₮",
      "DigitalCode": "496",
      "Name": "Tugrik",
      "Params": {}
    },
    {
      "Code": "MOP",
      "Sign": "P",
      "DigitalCode": "446",
      "Name": "Pataca",
      "Params": {}
    },
    {
      "Code": "MRO",
      "Sign": "UM",
      "DigitalCode": "478",
      "Name": "Ouguiya",
      "Params": {}
    },
    {
      "Code": "MUR",
      "Sign": "₨",
      "DigitalCode": "480",
      "Name": "Mauritius Rupee",
      "Params": {}
    },
    {
      "Code": "MVR",
      "Sign": "ރ.",
      "DigitalCode": "462",
      "Name": "Rufiyaa",
      "Params": {}
    },
    {
      "Code": "MWK",
      "Sign": "MK",
      "DigitalCode": "454",
      "Name": "Kwacha",
      "Params": {}
    },
    {
      "Code": "MXN",
      "Sign": "$",
      "DigitalCode": "484",
      "Name": "Mexican Peso",
      "Params": {}
    },
    {
      "Code": "MYR",
      "Sign": "RM",
      "DigitalCode": "458",
      "Name": "Malaysian Ringgit",
      "Params": {}
    },
    {
      "Code": "MZN",
      "Sign": "MTn",
      "DigitalCode": "943",
      "Name": "Metical",
      "Params": {}
    },
    {
      "Code": "NAD",
      "Sign": "$",
      "DigitalCode": "516",
      "Name": "Namibia Dollar",
      "Params": {}
    },
    {
      "Code": "NGN",
      "Sign": "₦",
      "DigitalCode": "566",
      "Name": "Naira",
      "Params": {}
    },
    {
      "Code": "NIO",
      "Sign": "C$",
      "DigitalCode": "558",
      "Name": "Cordoba Oro",
      "Params": {}
    },
    {
      "Code": "NOK",
      "Sign": "kr",
      "DigitalCode": "578",
      "Name": "Norwegian Krone",
      "Params": {}
    },
    {
      "Code": "NPR",
      "Sign": "₨",
      "DigitalCode": "524",
      "Name": "Nepalese Rupee",
      "Params": {}
    },
    {
      "Code": "NZD",
      "Sign": "$",
      "DigitalCode": "554",
      "Name": "New Zealand Dollar",
      "Params": {}
    },
    {
      "Code": "OMR",
      "Sign": "ر.ع.",
      "DigitalCode": "512",
      "Name": "Rial Omani",
      "Params": {}
    },
    {
      "Code": "PAB",
      "Sign": "B/.",
      "DigitalCode": "590",
      "Name": "Balboa",
      "Params": {}
    },
    {
      "Code": "PEN",
      "Sign": "S/.",
      "DigitalCode": "604",
      "Name": "Nuevo Sol",
      "Params": {}
    },
    {
      "Code": "PGK",
      "Sign": "K",
      "DigitalCode": "598",
      "Name": "Kina",
      "Params": {}
    },
    {
      "Code": "PHP",
      "Sign": "₱",
      "DigitalCode": "608",
      "Name": "Philippine Peso",
      "Params": {}
    },
    {
      "Code": "PKR",
      "Sign": "₨",
      "DigitalCode": "586",
      "Name": "Pakistan Rupee",
      "Params": {}
    },
    {
      "Code": "PLN",
      "Sign": "zł",
      "DigitalCode": "985",
      "Name": "PZloty",
      "Params": {}
    },
    {
      "Code": "PYG",
      "Sign": "₲",
      "DigitalCode": "600",
      "Name": "Guarani",
      "Params": {}
    },
    {
      "Code": "QAR",
      "Sign": "ر.ق",
      "DigitalCode": "634",
      "Name": "Qatari Rial",
      "Params": {}
    },
    {
      "Code": "RON",
      "Sign": "L",
      "DigitalCode": "946",
      "Name": "Leu",
      "Params": {}
    },
    {
      "Code": "RSD",
      "Sign": "din",
      "DigitalCode": "941",
      "Name": "Serbian Dinar",
      "Params": {}
    },
    {
      "Code": "RUB",
      "Sign": "р.",
      "DigitalCode": "643",
      "Name": "Russian Ruble",
      "Params": {}
    },
    {
      "Code": "RWF",
      "Sign": "₣",
      "DigitalCode": "646",
      "Name": "Rwanda Franc",
      "Params": {}
    },
    {
      "Code": "SAR",
      "Sign": "ر.س",
      "DigitalCode": "682",
      "Name": "Saudi Riyal",
      "Params": {}
    },
    {
      "Code": "SBD",
      "Sign": "$",
      "DigitalCode": "90",
      "Name": "Solomon Islands Dollar",
      "Params": {}
    },
    {
      "Code": "SCR",
      "Sign": "₨",
      "DigitalCode": "690",
      "Name": "Seychelles Rupee",
      "Params": {}
    },
    {
      "Code": "SDG",
      "Sign": "£",
      "DigitalCode": "938",
      "Name": "Sudanese Pound",
      "Params": {}
    },
    {
      "Code": "SEK",
      "Sign": "kr",
      "DigitalCode": "752",
      "Name": "Swedish Krona",
      "Params": {}
    },
    {
      "Code": "SGD",
      "Sign": "$",
      "DigitalCode": "702",
      "Name": "Singapore Dollar",
      "Params": {}
    },
    {
      "Code": "SHP",
      "Sign": "£",
      "DigitalCode": "654",
      "Name": "Saint Helena Pound",
      "Params": {}
    },
    {
      "Code": "SLL",
      "Sign": "Le",
      "DigitalCode": "694",
      "Name": "Leone",
      "Params": {}
    },
    {
      "Code": "SOS",
      "Sign": "Sh",
      "DigitalCode": "706",
      "Name": "Somali Shilling",
      "Params": {}
    },
    {
      "Code": "SRD",
      "Sign": "$",
      "DigitalCode": "968",
      "Name": "Suriname Dollar",
      "Params": {}
    },
    {
      "Code": "STD",
      "Sign": "Db",
      "DigitalCode": "678",
      "Name": "Dobra",
      "Params": {}
    },
    {
      "Code": "SYP",
      "Sign": "ل.س",
      "DigitalCode": "760",
      "Name": "Syrian Pound",
      "Params": {}
    },
    {
      "Code": "SZL",
      "Sign": "L",
      "DigitalCode": "748",
      "Name": "Lilangeni",
      "Params": {}
    },
    {
      "Code": "THB",
      "Sign": "฿",
      "DigitalCode": "764",
      "Name": "Baht",
      "Params": {}
    },
    {
      "Code": "TJS",
      "Sign": "ЅМ",
      "DigitalCode": "972",
      "Name": "Somoni",
      "Params": {}
    },
    {
      "Code": "TMT",
      "Sign": "m",
      "DigitalCode": "934",
      "Name": "Manat",
      "Params": {}
    },
    {
      "Code": "TND",
      "Sign": "د.ت",
      "DigitalCode": "788",
      "Name": "Tunisian Dinar",
      "Params": {}
    },
    {
      "Code": "TOP",
      "Sign": "T$",
      "DigitalCode": "776",
      "Name": "Pa’anga",
      "Params": {}
    },
    {
      "Code": "TRY",
      "Sign": "₤",
      "DigitalCode": "949",
      "Name": "Turkish Lira",
      "Params": {}
    },
    {
      "Code": "TTD",
      "Sign": "$",
      "DigitalCode": "780",
      "Name": "Trinidad and Tobago Dollar",
      "Params": {}
    },
    {
      "Code": "TWD",
      "Sign": "$",
      "DigitalCode": "901",
      "Name": "Taiwan Dollar",
      "Params": {}
    },
    {
      "Code": "TZS",
      "Sign": "Sh",
      "DigitalCode": "834",
      "Name": "Tanzanian Shilling",
      "Params": {}
    },
    {
      "Code": "UAH",
      "Sign": "₴",
      "DigitalCode": "980",
      "Name": "Hryvnia",
      "Params": {}
    },
    {
      "Code": "UGX",
      "Sign": "Sh",
      "DigitalCode": "800",
      "Name": "Uganda Shilling",
      "Params": {}
    },
    {
      "Code": "USD",
      "Sign": "$",
      "DigitalCode": "840",
      "Name": "US Dollar",
      "Params": {}
    },
    {
      "Code": "UYU",
      "Sign": "$",
      "DigitalCode": "858",
      "Name": "Peso Uruguayo",
      "Params": {}
    },
    {
      "Code": "UZS",
      "Sign": "",
      "DigitalCode": "860",
      "Name": "Uzbekistan Sum",
      "Params": {}
    },
    {
      "Code": "VEF",
      "Sign": "Bs F",
      "DigitalCode": "937",
      "Name": "Bolivar Fuerte",
      "Params": {}
    },
    {
      "Code": "VND",
      "Sign": "₫",
      "DigitalCode": "704",
      "Name": "Dong",
      "Params": {}
    },
    {
      "Code": "VUV",
      "Sign": "Vt",
      "DigitalCode": "548",
      "Name": "Vatu",
      "Params": {}
    },
    {
      "Code": "WST",
      "Sign": "T",
      "DigitalCode": "882",
      "Name": "Tala",
      "Params": {}
    },
    {
      "Code": "XAF",
      "Sign": "₣",
      "DigitalCode": "950",
      "Name": "CFA Franc BCEAO",
      "Params": {}
    },
    {
      "Code": "XCD",
      "Sign": "$",
      "DigitalCode": "951",
      "Name": "East Caribbean Dollar",
      "Params": {}
    },
    {
      "Code": "XPF",
      "Sign": "₣",
      "DigitalCode": "953",
      "Name": "CFP Franc",
      "Params": {}
    },
    {
      "Code": "YER",
      "Sign": "﷼",
      "DigitalCode": "886",
      "Name": "Yemeni Rial",
      "Params": {}
    },
    {
      "Code": "ZAR",
      "Sign": "R",
      "DigitalCode": "710",
      "Name": "Rand",
      "Params": {}
    },
    {
      "Code": "ZMW",
      "Sign": "ZK",
      "DigitalCode": "967",
      "Name": "Zambian Kwacha",
      "Params": {}
    },
    {
      "Code": "ZWL",
      "Sign": "$",
      "DigitalCode": "932",
      "Name": "Zimbabwe Dollar",
      "Params": {}
    },
    {
      "Code": "ANG",
      "Sign": "NAƒ",
      "DigitalCode": "532",
      "Name": "Netherlands Antillean Guilder",
      "Params": {}
    },
    {
      "Code": "XOF",
      "Sign": "CFA",
      "DigitalCode": "952",
      "Name": "West African CFA franc",
      "Params": {}
    },
    {
      "Code": "KMF",
      "Sign": "CF",
      "DigitalCode": "174",
      "Name": "Comorian franc",
      "Params": {}
    }
  ],
  "Params": {
    "type": "currencies",
    "layout": "",
    "collectionvariable": "currencyCollection"
  }
}

Virtual Layout

If not using any custom layout or collection, the default virtual layout will output as a form select element:

<select>
    {% for item in this.items %}
    <option value="{{item.Code}}">{{item.Name}} ({{item.Symbol}})</option>
    {% endfor %}
</select>

Accessing the Data

JSON Output

You can output the full JSON for your component data by referencing the root Liquid object {{this}} in your module’s layouts, or directly on your page, if using the collectionVariable parameter in your component tag.

For example:

{% component type: ... collectionVariable: "myData" %}

You can then render the JSON like so:

{{myData}}

For more details on using this approach, see Part 2 of the free ‘Learning Liquid Course’.

Rendering Property Values

This data is also accessible directly on the Page or Template via a Liquid Collection by adding collectionVariable to the Component.

An example using collectionVariable with value "currencyCollection":

{% component type: "currencies", collectionVariable: "currencyCollection" %}

Accessing a specific item within the collection. In this case the third item (zero based index), which in our example would render the value Lek

{{currencyCollection.items[2]['name']}}


Related Articles

  • Site Settings & Management
    Domains

    The Treepl CMS Domain settings allow you to control default domain, landing pages, domain authentication for system emails along with country and cultural settings like number and currency formatting.
  • Site Settings & Management
    Payment Settings

    Integrate various payment gateways, for multiple countries and currencies, into Treepl CMS for form payments, subscriptions and eCommerce workflows.
  • CRM
    Orders

    Orders store accounts of any payments made via the website and provide management for additional payments, invoices, order statuses, tracking info, the products purchased within the order and the details of the form submission used to take the order.
  • CRM
    Advanced CRM Groups

    Advanced CRM Groups allow you to extend the data fields within multiple areas of the CRM, either globally or on a per-record basis.
  • OpenAPI (Admin)
    CRM Orders API

    Retrieve and Update Order Items via the public API endpoint using "where" filtering.
  • OpenAPI (Admin)
    CRM Order Lines API

    Create, Retrieve, Update and Delete CRM Order Lines within an Order via the public API endpoint.
  • Liquid Objects & Usage
    {{ order }} object

    This liquid object will output the order details of a submitted payment. ...
  • OpenAPI (Admin)
    CRM Order Assets API

    Create CRM Order Assets, such as Discount Codes, Gift Vouchers, Shipping Options and Tax Codes via the public API endpoint.
  • OpenAPI (Admin)
    CRM Order Payments API

    Create, Retrieve, Update and Delete CRM Order Payments within an Order via the public API endpoint using "where" filtering.
  • OpenAPI (Admin)
    CRM Order Statuses API

    Retrieve CRM Order Statuses via the public API endpoint using "where" filtering.
  • OpenAPI (Admin)
    Print API

    Retrieve the print version of an Order asset via the public API endpoint by type.
  • Liquid Components
    module (Catalogs)

    This module component fetches data relating to eCommerce Catalogs and can be used to render Catalog structures and Products within them.
  • Liquid Components
    module (Products)

    This module component fetches data relating to eCommerce Products and can be used to render Product information.
  • Liquid Components
    ecommerce_add_to_cart

    This component renders an anchor element allowing the javascript function to add the item to the shopping cart.
  • Liquid Components
    ecommerce_buy_now

    This component renders an anchor element allowing the javascript function to add the item to the shopping cart and then proceeding directly to the shopping cart page.
  • Liquid Components
    ecommerce_item_quantity

    This component renders a form input element allowing a quantity to be set for when the source item is added to the shopping cart.
  • Liquid Components
    item_attributes

    This component fetches all attributes/options for a specified product. By default, each attribute group is rendered, with its options and any prices, according to their specified form inputs.
  • Liquid Components
    related_items

    This component fetches related items of a specific source item, such as a Product that has had Related Products assign to it.
  • Liquid Components
    grouped_items

    This component fetches grouped items of a specific source item, such as a Product that has been Grouped with other Products and allows the ability to navigate between grouped items.
  • OpenAPI (Admin)
    Ecommerce Discount Codes API

    Create, Retrieve, Update and Delete Ecommerce Discount Codes via the public API endpoint using "where" filtering.
  • OpenAPI (Admin)
    Ecommerce Gift Vouchers API

    Create, Retrieve, Update and Delete Ecommerce Gift Vouchers via the public API endpoint using "where" filtering.
  • Liquid Components
    shopping_cart

    This component fetches data relating to the shopping cart, such as any products added, order totals, tax, shipping, etc.
  • OpenAPI (Admin)
    Ecommerce Shipping Options API

    Create, Retrieve, Update and Delete Ecommerce Shipping Options via the public API endpoint as well as return external shipping providers and settings.
  • Liquid Components
    shipping_options

    This component renders a form select element of all shipping options configured on the site, and can also be used to output shipping option data to a Liquid collection.
  • Liquid Components
    shippingProviderFields

    This component provides a placeholder for populating additional Shipping Provider options to the user.
  • OpenAPI (Admin)
    Ecommerce Taxes API

    Create, Retrieve, Update and Delete Ecommerce Taxes via the public API endpoint using "where" filtering.
  • Liquid Components
    tax_codes

    This component renders a form select element of all tax codes configured on the site, and can also be used to output tax code data to a Liquid collection.
  • Liquid Components
    payment_form_fields

    This component is used to render payment fields, and payment related validation errors, within a form using the capabilities provided by your configured payment gateway.
  • Liquid Components
    orders

    This component fetches Orders from the CRM, either owned by the logged-in user or for all customer Orders.
  • eCommerce
    Getting Started

    To get started with the eCommerce module there are some overall settings to configure that provide eCommerce with further context in order to function appropriately for your situation.
  • eCommerce
    Products

    Products are one of the most powerful and flexible modules in Treepl CMS. Create customised product schemas with multiple price points, catalogs, inventory tracked attributes/variables, SEO optimisation and more.
  • eCommerce
    Catalogs

    When organising any eCommerce store, Catalogs are crucial to your Products structure and browserbility. Easily create and customise unlimited product catalogs for your online store.
  • eCommerce
    Discount codes

    Provide discount code functionality for your Treepl CMS shopping cart. Ideal for promotions, customer loyalty and conversions or to help move more stock.
  • eCommerce
    Gift vouchers

    Gift vouchers can be issued to your customers or purchased by them online via the shopping cart.
  • eCommerce
    Taxes

    Create any number of required tax codes specific to the shipping country selected in your Treepl CMS shopping cart.
  • Liquid Components
    countries

    This component renders a form select element of all country names and country codes by default, and can also be used to output country codes/names to a Liquid collection.
  • Liquid Components
    domain_settings

    This module component retrieves settings associated with the current domain, or optionally from another specified domain configured in the site instance.
  • eCommerce
    Shipping Options

    Treepl CMS provides the ability to configure both custom shipping options and integrated shipping providers based on a variety of conditions during the shopping cart stage.
  • eCommerce
    Settings

    These various eCommerce settings allow you to further control and customise the way your website functions, both in the admin and on the front-end, in terms of eCommerce functionality.
  • eCommerce
    eCommerce Javascript

    This is the provided javascript options for further controlling/customising the ecommerce javascript provided by the CMS.
  • Extensions
    Abandoned Cart Recovery

    With Abandoned Cart Recovery functionality, you can automatically send email reminders to customers who add products to their cart (while logged in) and leave without completing the order.
  • Extras
    Migrating to Advanced Payment Flow

    This article describes differences and possible required actions for migrating to the Advanced Payment Gateway flow.

External Resources

There are currently no external resources available.

Please let us know if you have any other contributions or know of any helpful resources you'd like to see added here.


Questions?

We are always happy to help with any questions you may have.
Visit the Treepl Forum for community support and to search previously asked questions or send us a message at support@treepl.co and we will consult you as soon as possible.