Skip to content

getShopCurrency()

The getShopCurrency method is used to get a Currency object that represents current set currency in the storefront.

Returned value

The Currency object. If the currency is inactive, the default currency is returned.

Example

source
{% set currency = ObjectApi.getShopCurrency() %}
{{ currency.name }}
output
PLN