Different Sizes For Part Of Product Price Text

For example, if a product is 199.99, I would like the .99 to be smaller than the 199. I am familiar with how to change the entire thing via CSS and settings, but the code wrangling involved in changing this (I assume splitting the price into two halves?) is beyond me.



Anyone attempted this or similar?

Hi mrryanbaker,


[quote name='mrryanbaker' timestamp='1431549957' post='214299']

For example, if a product is 199.99, I would like the .99 to be smaller than the 199. I am familiar with how to change the entire thing via CSS and settings, but the code wrangling involved in changing this (I assume splitting the price into two halves?) is beyond me.



Anyone attempted this or similar?

[/quote]



If you are using CS-Cart 4, find this file app/functions/smarty_plugins/modifier.format_price.php and replace the following code
$data = array (
'',
$value,
'',
);




by this one



$price = explode($currency['decimals_separator'],$value);
$data = array (
'',
$price[0].$currency['decimals_separator'].''.$price[1].'',
'',
);




By the way you can put a class instead of style="font-size:80%;"



Hope this helps.



Best regards,

Alt-team