Support » Plugin: WPAdverts - Classifieds Plugin » Hide or Change Currency Symbol

  • Resolved john vivian

    (@veeev)


    Hey!

    Wondering if there’s a way to change or otherwise hide the currency symbol?

    Thanks!

    john

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    where and how exactly you would like to use that feature? While adding an Ad or while displaying it on [adverts_list] or Ad details page?

    Hey Greg,

    Thanks for the follow up.

    i’d like to hide it in both places if possible, so that only a number is displayed.

    Thanks!

    john

    Plugin Author Greg Winiarski

    (@gwin)

    To enter a price without currency and to show it without the price as well you can register a new currency with an empty sign by adding the code below in your theme functions.php file

    
    add_filter("adverts_currency_list", "add_adverts_currency");
    function add_adverts_currency($list) {
        
        $list[] = array(
            "code"=>"BNK", // ISO 4217 currency code, see http://en.wikipedia.org/wiki/ISO_4217
            "sign"=>" ", // currency prefix or postfix
            "label"=>"Blank" // currency long name
        );
        
        return $list;
    }
    

    Then go to wp-admin / Classifieds / Options / Core panel then:
    – in Currency field select “Blank”, it should be at the bottom of the list.
    – in Currency Position select “Suffix”.

    Hey Greg,

    That’s perfect.

    Thanks so much!

    john

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide or Change Currency Symbol’ is closed to new replies.