--- title: "Liquid filters: currency_selector" description: Generates an HTML `` element with an option for each currency available on the store. The `currency_selector` filter must be applied to the [`form` object](https://shopify.dev/docs/api/liquid/objects/form) within a [currency form](https://shopify.dev/docs/api/liquid/tags/form#form-currency). Deprecated Deprecated without a direct replacement because the [currency form](https://shopify.dev/docs/api/liquid/tags/form#form-currency) has also been deprecated. The currency form was replaced by the [localization form](https://shopify.dev/docs/api/liquid/tags/form#form-localization). Refer to this guide which explains [how to create a country selector](https://shopify.dev/docs/themes/markets/multiple-currencies-languages#implementing-country-and-language-selectors) using the localization form. ```liquid {% form 'currency' %} {{ form | currency_selector }} {% endform %} ``` ##### Code ``` {% form 'currency' %} {{ form | currency_selector }} {% endform %} ``` ## Output ```html
``` ### class ```oobleck form | currency_selector: class: string ``` Specify the `class` attribute of the ` ``` ### id ```oobleck form | currency_selector: id: string ``` Specify the `id` attribute of the ` ```