Zigma Posted December 31, 2008 Share Posted December 31, 2008 Hello,Instead of showing the currency sign infront the digit I wants it back of the digit.Where in the code doI change this?Now: $500 Wants to change to : 500$Thanks! Link to comment Share on other sites More sharing options...
TropischBruin Posted December 31, 2008 Share Posted December 31, 2008 Wich version are you using because to what I know and see it is always behind it. Link to comment Share on other sites More sharing options...
Zigma Posted December 31, 2008 Author Share Posted December 31, 2008 v 1.1 yes and you are right (at least for dollar and pund), but when I add a different currency it gets infront the digit.eg DK 500, SEK 500 etc Link to comment Share on other sites More sharing options...
TropischBruin Posted December 31, 2008 Share Posted December 31, 2008 v 1.1 yes and you are right (at least for dollar and pund), but when I add a different currency it gets infront the digit. Hmm, wierd is it?We in The Netherlands have our €-sign in front of the amount (but PS shows it behind)..... Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2008 Share Posted December 31, 2008 I guess is something in the /classes/Currency.php around: /** * Return formated sign * * @param string $side left or right * @return string formated sign */ public function getSign($side=NULL) { if (!$side) return $this->sign; $formated_strings = array( 'left' => $this->sign.' ', 'right' => ' '.$this->sign ); $formats = array( 1 => array('left' => &$formated_strings['left'], 'right' => ''), 2 => array('left' => '', 'right' => &$formated_strings['right']), 3 => array('left' => &$formated_strings['left'], 'right' => ''), 4 => array('left' => '', 'right' => &$formated_strings['right']), ); return ($formats[$this->format][$side]); } But I can't figure out... Hope this help a bit... Link to comment Share on other sites More sharing options...
langbianiam Posted January 1, 2009 Share Posted January 1, 2009 Hello,Instead of showing the currency sign infront the digit I wants it back of the digit.Where in the code doI change this?Now: $500 Wants to change to : 500$Thanks! You open tool.php at ./classes/tool.phpand you find tags:switch ($c_format) and you can do it here /* X 0,000.00 */ case 1: $ret = $c_char.$blank.number_format($price, $c_decimals, '.', ','); break; /* 0 000,00 X*/ case 2: $ret = number_format($price, $c_decimals, ',', ' ').$blank.$c_char; break; /* X 0.000,00 */ case 3: $ret = $c_char.$blank.number_format($price, $c_decimals, ',', '.'); break; /* 0.000,00 X */ case 4: $ret = number_format($price, $c_decimals, ',', '.').$blank.$c_char; break; Link to comment Share on other sites More sharing options...
Paul C Posted January 1, 2009 Share Posted January 1, 2009 I wish you chaps wouldn't meddle with the core code >In Back Office -> Payment ->Currencies you find the option to format the positioning of the symbols etc. for each currency. The Formatting drop-down box should do the trick? :snake: Paul Link to comment Share on other sites More sharing options...
Zigma Posted January 1, 2009 Author Share Posted January 1, 2009 thnx everyone Link to comment Share on other sites More sharing options...
Recommended Posts