In the ecommerce module, where/how do i change the currency prefix from the $ symbol?
In fact I found it was here:
sapphire/core/model/fieldtypes/Currency.php
I removed all evidence of the dollar sign, as we have the GBP suffix anyway.
I changed mine to say this:
<code>
<?php
/**
* Currency value.
* Currency the currency class only supports single currencies.
*/
class Currency extends Decimal {
function Nice() {
// return "<span title=\"$this->value\">" . number_format($this->value, 2) . '</span>';
return number_format($this->value, 2);
}
function Whole() {
return number_format($this->value, 0);
}
function setValue($value) {
$this->value = ereg_replace('[^0-9.]+','', $value);
}
}
?>
</code>