Results 1 to 4 of 4

Thread: Moron-proof Price mod for 3.05.2

  1. #1
    Thread Starter
    katjaaclass's Avatar
    Join Date
    Oct 2010
    Location
    Los Angeles, CA
    Posts
    106
    Thanks
    9
    Thanked 5 Times in 3 Posts

    Moron-proof Price mod for 3.05.2

    Hi guys,

    Under my previous version Classipress 3.04 I've installed this mod that worked pretty fine.

    Reference > http://appthemes.com/blog/classipres...torial-part-2/


    <?php
    /**
    * Write your own functions or modify functions, actions, and filters using this file.
    * LIST YOUR FUNCTIONS (optional):
    * cp_import_wp_childstyle() [CUSTOM]
    * cp_get_price() [OVERWRITE]
    */

    //Place All Your Custom Function Below This Line

    //change price to spit out correct looking currency and ignore anything that's not a price.
    function cp_get_price($postid) {
    if(get_post_meta($postid, 'cp_price', true)) {
    $price_out = get_post_meta($postid, 'cp_price', true);

    // uncomment the line below to change price format
    $price_out = ereg_replace("[^0-9.]", "", $price_out);
    $price_out = number_format($price_out, 2, '.', ',');
    $price_out = cp_pos_currency($price_out);
    } else {
    if( get_option('cp_force_zeroprice') == 'yes' )
    $price_out = cp_pos_currency(0);
    else
    $price_out = '&nbsp;';
    }
    echo $price_out;
    }

    How do I get this price mod working under 3.05.2.

  2. #2
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts

    you want to expound on that a little??

    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    katjaaclass's Avatar
    Join Date
    Oct 2010
    Location
    Los Angeles, CA
    Posts
    106
    Thanks
    9
    Thanked 5 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do YOU price your ads?
    By rodeoramsey in forum Help Using ClassiPress
    Replies: 1
    Last Post: April 14th, 2010, 03:39 PM
  2. What will price of 3.0 be?
    By midwestmedia in forum ClassiPress General Discussion
    Replies: 1
    Last Post: March 30th, 2010, 10:15 PM