---
title: "money_with_currency"

doc_type: static
doc_category: static
doc_version: v20260901
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/handlebars/helpers/money/money-with-currency'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/handlebars/helpers/money/money-with-currency.md'
---


# money_with_currency

根据商店的包含货币code格式的设置，形成一个给定的价格。

## 参数

- `value` `{Number}` 金额，必填
- `[hash.code]`  `{Number}` 币种，非必填，默认值为市场币种
- `returns` `{String}` 格式化后的金额

## 用法

```handlebars
{{ money_with_currency number [code='USD'] }}
```

## 例子

<Example data={['product.price']}>
  ```handlebars
  {{ money_with_currency product.price code='USD'}}
  ```
</Example>