getCurrencies(int
items_per_page)
The getCurrencies method is used to get the CurrenciesList object that represents a list of active currencies.
items_per_page
int
Number of items in a page of internal paginator. Parameter is optional. Default value is 10.
Returned value
The CurrenciesList object.
Example
source{% set currencies = ObjectApi.getCurrencies() %}
{% for currency in currencies %}
{{ currency.code }}: {{ currency.shortName }}
{% if currency.isDefault %}
<h4>(Default currency in Shop)</h4>
{% endif %}<br>
{% endfor %}
outputPLN: polish zloty <h4>(Default currency in Shop)</h4>
EUR: euro
GBP: british pound sterling