dux Posted August 17, 2006 Share Posted August 17, 2006 Hello. Oscommerce has great flexibility to choose if currency symbol should be right, left of price or not at all. But I want to make 2 spaces between the price and the currency symbol + removing the bold font and make the text smaller. In that way it doesnt take away the focus from the price. I cannot figure out where to do it in the menus or in the code. Can you help please ? Have a nice day all :) Link to comment Share on other sites More sharing options...
GulSar Ray's Posted August 17, 2006 Share Posted August 17, 2006 Hello. Oscommerce has great flexibility to choose if currency symbol should be right, left of price or not at all. But I want to make 2 spaces between the price and the currency symbol + removing the bold font and make the text smaller. In that way it doesnt take away the focus from the price. I cannot figure out where to do it in the menus or in the code. Can you help please ? Have a nice day all :) Hello in file catalog/includes/classes/currencies.php file on line no. 42 following code is there /******************/ $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number * $rate, $this->currencies[$currency /********************/ You have to put the "$symbol_you_want " as shown below /*********************/ $format_string = $this->currencies[$currency_type]['symbol_left'] . $symbol_you_want . number_format(tep_round($number * $rate, $this->currencies[$currency /*********************/ Aslo on line no 49 following code is there /******************/ $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number, $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']; /******************/ You have to put the "$symbol_you_want " as shown below /*********************/ format_string = $this->currencies[$currency_type]['symbol_left'] . $symbol_you_want . number_format(tep_round($number, $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']; /*********************/ This will definately helps you Gulmohar Hard Work Is The Simplest Way Of Success Link to comment Share on other sites More sharing options...
dux Posted August 17, 2006 Author Share Posted August 17, 2006 Great it worked!!! Thanks Gulmohar - fast and precise respons :) I altered my code as follows (see bold text): Line 42 $format_string = $this->currencies[$currency_type]['symbol_left'] . '?' . number_format(tep_round($number, $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']; Line 49 $format_string = $this->currencies[$currency_type]['symbol_left'] . '?' . number_format(tep_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']; But still one problem remains. How do I make the font smaller and without bold ? Link to comment Share on other sites More sharing options...
GulSar Ray's Posted September 2, 2006 Share Posted September 2, 2006 Great it worked!!! Thanks Gulmohar - fast and precise respons :) I altered my code as follows (see bold text): Line 42 $format_string = $this->currencies[$currency_type]['symbol_left'] . '?' . number_format(tep_round($number, $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']; Line 49 $format_string = $this->currencies[$currency_type]['symbol_left'] . '?' . number_format(tep_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']; But still one problem remains. How do I make the font smaller and without bold ? For that you have to write the class in catalog/stylesheet.css file. And apply that class wher you want the font size small or whatever. By default for price oscommerce uses ' class="main" ' from style sheet with bold tag "<b></b>" explicitely wherever to show currency as bold. So you have to edit the pages manually to change the currency style Hard Work Is The Simplest Way Of Success Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.