csw516 Posted July 27, 2017 Share Posted July 27, 2017 後台 商店參數->一般->小數位數 [PS_PRICE_DISPLAY_PRECISION] 設定為0位在前台看到的仍舊是有2位數,只是有多了四捨五入到小數0位在1.6版能在幣值設定顯示小數, 但1.7版本沒有 只有上述所說的設定位置 請問是BUG 還是其他設定問題? Link to comment Share on other sites More sharing options...
design_xie Posted July 29, 2017 Share Posted July 29, 2017 確實在官方尚未更新之前的確有這個小問題,這是討論串的連結 詳細可以前往 Tips to round prices with NO decimals displayed with Prestashop 1.7. 版主也是台灣版的, 您可以到跟目錄的>Translations>cldr>main-zh-Hant-TW-numbers 所以您要到main-zh-Hant-TW-numbers檔案內 找 "currencyFormats-numberSystem-latn":{"currencySpacing":{"beforeCurrency":{"currencyMatch":"[:^S:]","surroundingMatch":"[:digit:]","insertBetween":"\u00a0"},"afterCurrency":{"currencyMatch":"[:^S:]","surroundingMatch":"[:digit:]","insertBetween":"\u00a0"[spam-filter],"accounting":"#,##0.00\u00a0\u00a4;(#,##0.00\u00a0\u00a4)","standard":"#,##0.00\u00a0\u00a4","unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"} 找"currencyFormats-numberSystem-latn"這段字串的後面有段"standard": 台灣版原本 $ format : standard:\u00a4#,##0.00 去除小數點只要將.00刪除,保留0即可 變成 standard:\u00a4#,##0 我建議改成歐元版,這樣就可以把原改成在數字後 standard: #,##0\u00a0\u00a4 \u00a4 是貨幣符號 \u00a0 是空白符號 然後要把NT$符號改成中文"元" 前往同資料夾的main-zh-Hant-TW-numbers-currencies檔案內 搜尋字串,將"symbol":"NT$","symbol-alt-narrow":"NT$" 把"NT$"改成"元" 就可以呈現123元了 更新上載後,要到 進階設定>效能>清除快取 如果沒改變, 到 進階設定>模板彙整壓縮>選擇 檔案更新時重新編譯樣板>儲存 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now