質問 > フロント機能 > 円表記を全角の¥から半角の¥にしたい |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
nyorai |
投稿日時: 2019/9/26 11:25
対応状況: −−−
|
仙人 登録日: 2015/8/21 居住地: 投稿: 302 |
Re: 円表記を全角の¥から半角の¥にしたい こんな感じになるかと思います。
public function getPriceFilter($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',') { // $locale = $this->eccubeConfig['locale']; // $currency = $this->eccubeConfig['currency']; // $formatter = new \NumberFormatter($locale, \NumberFormatter::CURRENCY); // return $formatter->formatCurrency($number, $currency); return '¥' . number_format($number); } |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
円表記を全角の¥から半角の¥にしたい | h_tanaka | 2019/9/25 15:00 |
Re: 円表記を全角の¥から半角の¥にしたい | nyorai | 2019/9/26 9:54 |
Re: 円表記を全角の¥から半角の¥にしたい | h_tanaka | 2019/9/26 10:26 |
» Re: 円表記を全角の¥から半角の¥にしたい | nyorai | 2019/9/26 11:25 |
Re: 円表記を全角の¥から半角の¥にしたい | h_tanaka | 2019/9/26 12:07 |