0

As the documentation notes, every Craft Commerce store has a primary currency.

You can get this from an order as order.currency, but since it's a global setting, is there a way to get it from settings rather than from a cart or order (i.e. craft.commerce.carts.cart.currency)? I know I can do craft.commerce.settings.paymentCurrency[0], but is it guaranteed that the first item in this list is the primary currency?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.