Results 1 to 2 of 2

Thread: Currency symbol after numbers when selecting categories ($100 becomes 100$)

  1. #1
    Thread Starter
    Amateur peterhupuczi's Avatar
    Join Date
    Apr 2011
    Location
    UK
    Posts
    13
    Thanks
    7
    Thanked 4 Times in 2 Posts

    Cool Currency symbol after numbers when selecting categories ($100 becomes 100$)

    Hi guys, this tutorial about replace the currency symbol on the add new ad page drop down. This will be a little help for those
    who want to be place the currency symbol after the numbers

    In Hungary we use this format: NUMBERS CURRENCY SYMBOL (100 Ft)

    In default ClassiPress is set to this format: CURRENCY SYMBOL NUMBERS ($100)

    So if you need to change here is what to do:

    Step 1.

    Open up themes-functions.php. You should find it in wp-content/themes/classipress/includes/

    I'm using Notepad++ to open the file. You can download it free from here: Notepad++ | 5.9

    Once you have opened the file lets go and move to Step 2.


    Step 2.

    Look at line number 1633. This is the row what you need to modify. There is nothing special all you need to do is to cut and paste.

    BEFORE YOU START PLEASE BACK UP YOUR FILE!! (I allways copy the cod what I want to change and paste it in totepad to keep the original unchanged code)

    Ok. Once you have backed up the original code lets change things around!

    select and cut the following part of the code:

    Code:
    . get_option('cp_curr_symbol')  ----> Notice the dot on the front
    All you have to do next is paste it behind the following part of the code:

    Code:
    get_option('cp_cat_price_'.$category->cat_ID)
    Thats it!

    Go and check it out.

    Here is the before and after for the code:

    BEFORE (original code)

    Code:
    $output .=  ' - 'get_option('cp_curr_symbol') . get_option('cp_cat_price_'.$category->cat_ID);
    AFTER (the modified code)

    Code:
    $output .=  ' - '  . get_option('cp_cat_price_'.$category->cat_ID). get_option('cp_curr_symbol');
    OK....

    I will attach the file if you don't want to do it yourself. Download it and replace it with this.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,785
    Thanks
    186
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Currency symbol...
    By rejja in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 3rd, 2011, 10:25 PM
  2. [SOLVED] currency symbol
    By blogie in forum Report JobRoller Bugs
    Replies: 4
    Last Post: January 22nd, 2011, 06:06 PM
  3. [MOD NEEDED] Integer numbers for Currency
    By pinocchio in forum ClassiPress General Discussion
    Replies: 4
    Last Post: November 27th, 2010, 07:02 AM
  4. Adding a Currency Symbol
    By lalakoi in forum ClassiPress General Discussion
    Replies: 4
    Last Post: September 8th, 2010, 10:30 AM
  5. Currency symbol position
    By anutka in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: April 28th, 2010, 12:39 PM