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

Posibility to set the currency name #238

@vovayatsyuk

Description

@vovayatsyuk

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions