Well the colors on order status is easy :-)
Try to work with the total value.
To be more nice with symbol...
Can be added in controller after 'total', another total to be used in twig
then in twig
Can be added in controller after 'total', another total to be used in twig
Code: Select all
'total_color' => number_format($result['total'] * $result['currency_value'], 2),
Code: Select all
order.total_color
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Yep - that's another way to do it
I added the currency symbol to twig but is fixed to GBP and you would have to change that for say euro
I added the currency symbol to twig but is fixed to GBP and you would have to change that for say euro
Who is online
Users browsing this forum: Lumirion, Semrush [Bot] and 228 guests