In the provided JavaScript code, to display a pound currency symbol before the calculated grand total amount, you need to modify the .text() line. This involves concatenating the pound symbol to the formatted total string. Additionally, be sure to correct the typo in the locale options from 'maximumFractionDigit' to 'maximumFractionDigits' to avoid any errors in formatting the number correctly as a currency value.
$('table#list tfoot .grand-total').text( '£' + parseFloat(grand_total).toLocaleString('en-gb', { style: 'decimal', maximumFractionDigits: 2 }));
Collection
[
|
...
]