Guest maver Posted October 13, 2005 Share Posted October 13, 2005 Hi all, I use v3.0.4 my problem it is: When I mark price to a item example (1 €) in the page it appears 0,77 €. Why?Which is the mistake? Thank you Quote Link to comment Share on other sites More sharing options...
Guest hennaboy Posted October 13, 2005 Share Posted October 13, 2005 Check your currency default in the general settings. Is it set to Euro? Also check the currencies. Make sure that your Euro is 1.000 and not any other value. Quote Link to comment Share on other sites More sharing options...
Guest maver Posted October 13, 2005 Share Posted October 13, 2005 Exactly, the value of the currency was bad (0,766 €). Thank you very much. Quote Link to comment Share on other sites More sharing options...
Guest ssppaarree Posted October 13, 2005 Share Posted October 13, 2005 Hi, I have a simular problem. Is it possible to change the "." (period) to a "," (comma) for the currencies? My currency is set to Euros but I still have a "." (period) at the decimal. Quote Link to comment Share on other sites More sharing options...
Guest Captmac Posted October 17, 2005 Share Posted October 17, 2005 Thanks for pointing me in the right direction Hennaboy - a little trap for beginners that I also fell into. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2005 Share Posted October 17, 2005 I published a new version of the functions.php file that would support VERY large numbers and a way to show european currency annotation. You can do it by incorporating this into yours. In /includes/functions.inc.php replace your existing priceFormat() function with this one: ////////////////////////////////// // Format Price //////// function priceFormat($price, $dispNull = FALSE){ if($price == TRUE){ global $currencyVars; $price = $price * $currencyVars[0]['value']; ################################################################# # Edit made by Sir William -- http://www.swscripts.com/ # Here's the original line from the code: # return $currencyVars[0]['symbolLeft'].sprintf("%.".$currencyVars[0]['decimalPlaces']."f", $price).$currencyVars[0]['symbolRight']; # # The following line will properly format the number with commas and a # decimal in US format like this: 1,234,567.89 return $currencyVars[0]['symbolLeft'].number_format($price,$currencyVars[0]['decimalPlaces'], '.', ',').$currencyVars[0]['symbolRight']; # If you'd like a European convention of: 1.234.567,89 simply comment # the above line and uncomment the one below # return $currencyVars[0]['symbolLeft'].number_format($price,$currencyVars[0]['decimalPlaces'], ',', '.').$currencyVars[0]['symbolRight']; } elseif($dispNull == TRUE) { global $currencyVars; ################################################################# # Edit made by Sir William -- http://www.swscripts.com/ # Here's the original line from the code: # return $currencyVars[0]['symbolLeft'].sprintf("%.".$currencyVars[0]['decimalPlaces']."f", 0.00).$currencyVars[0]['symbolRight']; # # The following line will properly format the number with commas and a # decimal in US format like this: 1,234,567.89 return $currencyVars[0]['symbolLeft'].number_format(0.00,$currencyVars[0]['decimalPlaces'], '.', ',').$currencyVars[0]['symbolRight']; # If you'd like a European convention of: 1.234.567,89 simply comment # the above line and uncomment the one below # return $currencyVars[0]['symbolLeft'].number_format(0.00,$currencyVars[0]['decimalPlaces'], '.', '.').$currencyVars[0]['symbolRight']; } else { return FALSE; } } It also supports MUCH larger currency amounts. Comment or uncomment the version you like. I'd think that in a future version, brooky will add a switch for this. :rolleyes: Quote Link to comment Share on other sites More sharing options...
Guest Pheasant Posted November 6, 2005 Share Posted November 6, 2005 Hi all, I'm new to Cube Cart & the forum but not new to ecommerce & web design. My problem is that the price I set in the admin, eg, £21.99, is not what shows on the site. For some reason it shows £11.31. My version is Cube Cart 3.04, and the Sale mode is switched off in the admin, problem still there either way. Has any one any ideas? Sean Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 6, 2005 Share Posted November 6, 2005 :( Did you read the first three posts in this topic? ;) Quote Link to comment Share on other sites More sharing options...
Guest Pheasant Posted November 7, 2005 Share Posted November 7, 2005 Did you read the first three posts in this topic? Yes I have. I had set the value to 1.0000, which saved correctly, but the problem persists. I may reinstall the package and see how it goes. All settings within the admin seem fine and a colleague who works with me says all seems well. A second head on the job helps sometimes. Not to worry, I will try a reinstall and see how it goes. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 7, 2005 Share Posted November 7, 2005 As long as your default currency (in Admin General Settings) is set to GBP, and your GBP exchange rate is set to 1.0, your prices should be okay. Post a URL if you like ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted November 18, 2005 Share Posted November 18, 2005 Thanks that has answered one query, second query is.......how do we update currency values to keep in line with daily exchange rates? Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 18, 2005 Share Posted November 18, 2005 Free download here, thanks to webwonderuk. Quote Link to comment Share on other sites More sharing options...
Guest digilution Posted November 25, 2005 Share Posted November 25, 2005 As long as your default currency (in Admin General Settings) is set to GBP, and your GBP exchange rate is set to 1.0, your prices should be okay. Post a URL if you like I had the same problem where my prices were different. I changed the default currency to GBP and set it at 1.0 and US set at a lower rate but my products show in $ not £. Help What I have noticed now if I disable US dollars in the setup, is stated update failed. Is it possible only to show one currency? Quote Link to comment Share on other sites More sharing options...
Guest degsey69 Posted November 25, 2005 Share Posted November 25, 2005 What I have noticed now if I disable US dollars in the setup, is stated update failed. Is it possible only to show one currency? Yes it is possible to have only one currency by only enabling the one you wish to use in the admin panel. I have found that if it is a British site using GBP then why bother to show the rest it just deters from the true point of the shoppingcart and thats SALES!!!!! If you are only selling in one country then only use that curency and that allows you to edit out the curency box in the index.tpl in your skins folder which gives you more space to use in the columns to promote sales. ;) Quote Link to comment Share on other sites More sharing options...
Guest digilution Posted November 25, 2005 Share Posted November 25, 2005 What I have noticed now if I disable US dollars in the setup, is stated update failed. Is it possible only to show one currency? Yes it is possible to have only one currency by only enabling the one you wish to use in the admin panel. I have found that if it is a British site using GBP then why bother to show the rest it just deters from the true point of the shoppingcart and thats SALES!!!!! If you are only selling in one country then only use that curency and that allows you to edit out the curency box in the index.tpl in your skins folder which gives you more space to use in the columns to promote sales. ;) Quote Link to comment Share on other sites More sharing options...
Guest degsey69 Posted November 25, 2005 Share Posted November 25, 2005 Ok To explain further, I just experimented with my test store with a fresh install, its seems that just by changing the currency to GBP in admin and updating it still shows as $ even with UK GBP as the only currency, but I noticed that when I changed the address to United Kingdom in the admin panel and updated, the currency then defaulted to GBP in the shopping cart. Hope this works for you ;) Quote Link to comment Share on other sites More sharing options...
Guest Arono Posted April 19, 2007 Share Posted April 19, 2007 Hi, I have a problem with the price. When I'm adding a product and enter the amount in euros, it changes to us dollars. How do i get the Add Product to add the price in euros. I've also edited the default currency on General Settings to Euro. Thanks. Quote Link to comment Share on other sites More sharing options...
Guest fightingfund Posted March 15, 2009 Share Posted March 15, 2009 Thanks for pointing me in the right direction Hennaboy - a little trap for beginners that I also fell into. A big thank you from me too. Quote Link to comment Share on other sites More sharing options...
Guest DarkSkull Posted May 12, 2009 Share Posted May 12, 2009 I have a price issue that has not been covered by the previous posts. When I add my products I have put in the price, but when I look at the items as a customer would the prices are not being displayed. I have double and triple checked my settings and everything looks correct. Am I missing something somewhere that is causing my prices to not be shown? Thx Darkskull Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.