Shakway Posted May 18, 2012 Share Posted May 18, 2012 Hello, I've just installed PrestaShop and I came along this limitation (based on my country). In Kuwait the Kuwaiti Dinar uses 3 decimal places in the price instead of two. There is no place to customize this in PrestaShop when you add a new currency.. Any idea? Thanks.. Ahmad Link to comment Share on other sites More sharing options...
phrasespot Posted May 18, 2012 Share Posted May 18, 2012 Wow, that is what I call a curreny. 1000th of a unit, no wonder you have 1/4 dinar banknotes. Sadly there is not an easy way to do what you are asking. There are a lot of places that needs to be touched to make the 3 decimal places work. Depending on what you are selling, you could list your prices in fils instead of dinars. That is the only shortcut solution I can think of. Link to comment Share on other sites More sharing options...
vijayprasad83 Posted August 30, 2012 Share Posted August 30, 2012 Hi Ahamd, I think there is one to achieve this by changing number format para meter hard coded i.e /* 0,000.000 X */ case 5: $ret = number_format($price, 3, '.', ',').$blank.$c_char; break; Just use copy paste this code to your file i.e root/Class/Tools.php on Line number 438 after the case 4. You can get the currency in 3 decimal format. like i did it on my website : http://www.ringcart.com I hope this can help you. Thanks, Vijay 1 Link to comment Share on other sites More sharing options...
kobi44 Posted October 23, 2012 Share Posted October 23, 2012 But how change it in presta 1.5? There is $c_decimals... /* X 0,000.00 */ case 1: $ret = $c_char.$blank.number_format($price, $c_decimals, '.', ','); break; Link to comment Share on other sites More sharing options...
T0x1c Posted February 24, 2013 Share Posted February 24, 2013 In 'config/defines.inc.php' change define('_PS_PRICE_DISPLAY_PRECISION_', 2); to define('_PS_PRICE_DISPLAY_PRECISION_', 3); Link to comment Share on other sites More sharing options...
bellini13 Posted February 25, 2013 Share Posted February 25, 2013 you can refer to this post http://www.prestashop.com/forums/index.php?/topic/196757-3-decimal-currencies/page__view__findpost__p__1089081 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