Hey everyone, I am new to ISPConfig... the setup took a while but it was all together a breeze! The software seems to do everything I need and then some! I am wondering if anyone knows if it is possible to change the currency type from Euros to Dollars as all of my clients live within the US... Thanks! -Jake
Take a look here: http://www.howtoforge.com/forums/showthread.php?t=8413&highlight=currency+Euro http://www.howtoforge.com/forums/showthread.php?t=8266&highlight=currency+Euro
Perfect...well sortta... Thanks for the quick reply! =) That should work well... the only other thing is, what do I need to change to turn the comma that separates the decimal to a period? Thanks again! -Jake
We're using the sprintf() function to format the prices, so it should show the correct formatting for you... If you like you can take a look at the scripts in /home/admispconfig/ispconfig/web/isp_fakt/abrechnung.
Ok, according to my research, before you use sprintf(), you have the option to either use the variable set in the operating system OR you can set it in the code. I believe that you are not using my system's configured locale. I read that you must use the OS settings or your own settings. In other words, the option to do nothing does not seem to be one of the options. If you do nothing, I don't know what sort of locales you end up with. # locale LANG=en_US.UTF-8 LANGUAGE=en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Shouldn't you be doing a setlocale() somewhere in the code? I don't see it. Is it possible this is the problem? Because a web server might be built by an ISP on one country, while a e-commerce site might be installed on it by a customer in a different country, it seems logical that this *should* be set with the software, and not taken from the OS.
how did you get it to change to USD? I could live with the comma if it has USD although a . would be better