an
groups-icon

Delete or removing price field

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Chris Smith
    0 points
    Beginner

    I realize this is a serious noob question, but I simply want to delete the Price field entirely so that it doesn’t show up on any listing or category. I’m using the Classifieds Theme. I saw a post earlier about editing the item.php file but didn’t understand what i needed to delete from that file. I deleted the two “price” related entries in that file but it made no difference and the price field still showed up. Just thought I’d post in the General forum in hopes of someone helping.

    How do I remove it completely?
    Thanks so much!!

    FYI here is my current item.php file text (I reset it back to the default):

    <?php
    global $userdata;

    // GET THE DEFAULT POST CUSTOM FIELDS
    if($featured == “yes”){ $ex = “featuredlisting”; $btnType = “green”; }else{ $ex = “”; $btnType = “gray”; }

    ?>
    <li class=”<?php echo $ex; ?>” id=”post_id_<?php echo $post->ID; ?>”>

    <?php
    // FEATURED GRAPHIC
    if(get_post_meta($post->ID, “featured”, true) == “yes” && strlen($featured_text) > 1){ ?>
    <div class=”group corner” style=”margin-right:-2px;margin-top:-2px;”>
    <div class=”wrap-ribbon right-edge fork lgreen”><span><?php echo $featured_text; ?></span></div>
    </div>
    <?php } ?>

    <div class=”padbox”>

    <div class=”preview”>

    <?php $status = get_post_meta($post->ID, “itemstatus”, true); if($status == “sold”){ ?>
    <div class=”group corner”>
    <div class=”wrap-ribbon right-corner strip lblue smallr”><span><?php echo $PPT->_e(array(‘ct’,’_sold’)); ?></span></div>
    </div>
    <?php } ?>

    <?php echo premiumpress_image($post->ID,””,array(‘alt’ => $post->post_title, ‘link’ => true, ‘link_class’ => ‘frame’, ‘width’ => ’160′, ‘height’ => ’110′, ‘style’ => ‘auto’ )); ?>

    <div class=”pricetag”><?php echo premiumpress_price(get_post_meta($post->ID, “price”, true),$GLOBALS[‘premiumpress’][‘currency_symbol’],$GLOBALS[‘premiumpress’][‘currency_position’],1); ?></div>

    </div>

    <div class=”txtbit”>

    <h1 class=”ititle”>“><?php the_title(); ?></h1>

    <?php if(strlen($tagline) > 1){ ?><h3 class=”cleanme tagline”><?php echo $tagline ; ?></h3><?php } ?>

    <div class=”excerpt”><?php echo get_the_excerpt(); ?></div>

    <div class=”tags1″><?php the_category(‘, ‘) ?><?php if(get_option(“display_search_tags”) ==”yes”){ the_tags( ”, ”, ”); } ?></div>

    </div>

    <div class=”clearfix”></div>

    </div>

    <div class=”actions clearfix”>

    <div class=”pad”>

    button right” href=”<?php the_permalink(); ?>”><?php echo $PPT->_e(array(‘button’,’13′)); ?>

    <?php if(function_exists(‘wp_gdsr_render_article’)){ wp_gdsr_render_article();} ?>

    <?php

    // ADD TO FAVORITES SECTION
    if(get_option(“display_myaccount_fav”) != “no”){ ?>

    <?php if(isset($_GET[‘pptfavs’]) ){ ?>

    ID; ?>’).hide();
    PPTDeleteWishlist(‘<?php echo str_replace(“https://”,””,PPT_THEME_URI); ?>/PPT/ajax/’,'<?php echo $GLOBALS[‘backupID’]; ?>’,’deletealter<?php echo $type; ?>’);”><?php echo $PPT->_e(array(‘button’,’3′)); ?>

    <?php }else{ ?>

    ID){ ?>onclick=”UpdateWishlist(<?php echo $post->ID; ?>,’add’,’AJAXRESULTS’,'<?php echo str_replace(“https://”,””,PPT_THEME_URI); ?>/PPT/ajax/’,’wishlist’);”
    <?php }else{ ?>onclick=”alert(‘<?php echo $PPT->_e(array(‘ajax’,’1′)) ?>’,’WishlistAlert’);”<?php } ?> rel=”nofollow”><?php echo $PPT->_e(array(‘fav’,’3′)) ?>

    <?php } ?>

    <?php } ?>

    <div class=”left pricetag”><?php echo premiumpress_price(get_post_meta($post->ID, “price”, true),$GLOBALS[‘premiumpress’][‘currency_symbol’],$GLOBALS[‘premiumpress’][‘currency_position’],1); ?></div>

    </div>

    </div>

    <!– end actions box –>

    September 9, 2013 at 2:39 pm
  • Chris Smith
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 20, 2013 at 4:16 pm

358

Views

1

Replies