Jump to content
xt:Commerce Community Forum

Einheitliche Preisformatierung


gswkaiser

Recommended Posts

Da ich bei eingen Preisen die W?hrung direkt neben dem Preis hatte ("5.00EUR"), habe ich das xtCommerce abgew?hnt.

Dazu muss in "includes\classes\currencies.php"

der Code


$format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(xtc_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right'];


ersetzt werden durch

// W. Kaiser    

$format_string = rtrim($this->currencies[$currency_type]['symbol_left']) .' ' . number_format(xtc_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . ' ' . ltrim($this->currencies[$currency_type]['symbol_right']);

// W. Kaiser    


Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...