Mateusz321 Posted September 23, 2021 Share Posted September 23, 2021 Hy all. I have a strange issue: Regular price is more then 2 decimals, after discount but not for all products. Link to comment Share on other sites More sharing options...
Mateusz321 Posted September 24, 2021 Author Share Posted September 24, 2021 Hi All, I changed two files currency.php and product.php, but still 6 decimals appeared... Unfortunately still no solution for the issue..... Any solution? Link to comment Share on other sites More sharing options...
endriu107 Posted September 24, 2021 Share Posted September 24, 2021 Did you check in tpl file? Maybe issue is there. Link to comment Share on other sites More sharing options...
Mateusz321 Posted September 24, 2021 Author Share Posted September 24, 2021 Hi, Could you please give me some suggestion? which .tpl file is responsible for the price format ? Thank you Link to comment Share on other sites More sharing options...
endriu107 Posted September 24, 2021 Share Posted September 24, 2021 There isn't a file responsible for currency format globally, you need to find this element file and check there is it rounded or not. Prestashop changees few times place where global decimals are declared, in your version you can check in XML file in /localization/CLDR/core/common/main Link to comment Share on other sites More sharing options...
Mateusz321 Posted October 28, 2021 Author Share Posted October 28, 2021 Thank you for advice. After long investigation I didn't found any issue, price of the products before the discount is still displayed with more then 2 decimals. Someone may have an idea ? Link to comment Share on other sites More sharing options...
ps8modules Posted October 28, 2021 Share Posted October 28, 2021 (edited) Prestashop version 1.7.6.3 ? Classic theme ? Edited October 28, 2021 by WebSoft (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted October 28, 2021 Share Posted October 28, 2021 find ./themes/your-theme/templates/catalog/_partials/product-prices.tpl replace to: <span itemprop="price" content="{$product.price_amount}">{Tools::displayPrice(round($product.price_amount, 2))}</span> 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