Results 1 to 9 of 9

Thread: Remove Price Ticket for Zero Value Listing (CP3.1.1)

  1. #1
    Thread Starter
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts

    Remove Price Ticket for Zero Value Listing (CP3.1.1)

    If you want to remove the price tag for $0 ads, in CP 3.1.1 go to the theme-actions.php file and look for lines 19-21;

    <div class="price-wrap">
    <span class="tag-head">&nbsp;</span><p class="post-price"><?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy( $post->ID ); else cp_get_price( $post->ID, 'cp_price' ); ?></p>
    </div>

    and replace with;

    <div class="price-wrap">
    <?php if (get_post_meta($post->ID, cp_price, true) != "") : ?>
    <span class="tag-head">&nbsp;</span><p class="ad-price"><?php if(get_post_meta($post->ID, 'price', true)) cp_get_price_legacy($post->ID); else cp_get_price($post->ID); ?></p>
    <?php endif ?>
    </div>

    Sample can be seen at Business Classifieds, Essex, London, UK, Worlwide

  2. The Following User Says Thank You to demonlee For This Useful Post:

    noofficial (August 25th, 2011)

  3. #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

  4. #3
    Senior Member hanniabu's Avatar
    Join Date
    May 2011
    Location
    New Jersey
    Posts
    115
    Thanks
    18
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Attached Images Attached Images

  5. #4
    Junior Member luizz's Avatar
    Join Date
    Oct 2011
    Location
    Curitiba
    Posts
    40
    Thanks
    7
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Junior Member luizz's Avatar
    Join Date
    Oct 2011
    Location
    Curitiba
    Posts
    40
    Thanks
    7
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #6
    Veteran aubertin's Avatar
    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    385
    Thanks
    117
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #7
    Senior Member hanniabu's Avatar
    Join Date
    May 2011
    Location
    New Jersey
    Posts
    115
    Thanks
    18
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #8
    Junior Member luizz's Avatar
    Join Date
    Oct 2011
    Location
    Curitiba
    Posts
    40
    Thanks
    7
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #9
    Senior Member hanniabu's Avatar
    Join Date
    May 2011
    Location
    New Jersey
    Posts
    115
    Thanks
    18
    Thanked 0 Times in 0 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. [MOD NEEDED] Remove price tag for only $0 ads
    By citydealz in forum ClassiPress General Discussion
    Replies: 85
    Last Post: March 1st, 2017, 10:44 AM
  2. [MOD NEEDED] Remove color price.
    By quim in forum ClassiPress General Discussion
    Replies: 7
    Last Post: June 21st, 2011, 06:13 PM
  3. Remove price tag
    By sellyourskill in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: May 29th, 2011, 12:57 PM
  4. [SOLVED] remove price tag
    By sumaxx in forum ClassiPress General Discussion
    Replies: 6
    Last Post: December 30th, 2010, 03:32 AM