Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Posibility to set the currency name #238

Open
vovayatsyuk opened this issue Jan 17, 2013 · 0 comments
Open

Posibility to set the currency name #238

vovayatsyuk opened this issue Jan 17, 2013 · 0 comments
Labels

Comments

@vovayatsyuk
Copy link
Contributor

There is a posibility to set the different currency name, we should allow users to do this easely from the backend.

This feature could be used to display currency in custom format:

5грн instead of standard 5Ukrainian Hryvnia or 5UAH 

http://axiscommerce.com/forum/%D0%BF%D1%80%D0%BE%D0%B1%D0%BB%D0%B5%D0%BC%D1%8B-%D1%81-%D0%BE%D1%82%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-%D0%B2%D0%B0%D0%BB%D1%8E%D1%82%D1%8B-%D0%B3%D1%80%D0%B8%D0%B2%D0%BD%D1%8F#comment-91107

private function _getCurrencyOptions($code)
{
    $row = $this->getData($code);
    $options = array(
        'currency'  => $row['code'],
        'position'  => (int) $row['position'],
        'display'   => (int) $row['display'],
        'format'    => $row['format'],
        'precision' => (int) $row['currency_precision']
    );
    if (!empty($row['name'])) {
        $options['name'] = $row['name']
    }
    return $options;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant