colombian coin

Home Forums Premium add-ons support colombian coin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #662948
    Fran Salas
    Participant

    Hi, is it possible to add colombian coin in invoice addon?
    any code or something?
    Thanks..

    #664225

    Hi,

    Yes, you can simply add a filter for the list of currencies. That is defined in customer-area\src\php\helpers\currency-helper.class.php

    
            public static function getCurrencies()
            {
                return apply_filters('cuar/core/currencies', array(
                    'AUD'  => __('Australian Dollar ($)', 'cuar'),
                    'BRL'  => __('Brazilian Real (R$)', 'cuar'),
    ...
    
    #665133
    Fran Salas
    Participant

    Hi, thanks I am not really good with code.

    Can you write the exact code to paste with peso colombiano (COP)
    It would be a great help.
    Thanks.

    #665282

    I can’t write the code for you. But that should put you on tracks. I have not tested it.

    
    add_filter('cuar/core/currencies', 'add_cop_currency');
    function add_cop_currency($currencies) {
        $currencies['COP'] = 'peso colombiano';
    
        return $currencies;
    }
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.