WordPress.org

Ready to get started?Download WordPress

Forums

Can one of you WP Gurus help with de-bugging? (1 post)

  1. CaptainSEO
    Member
    Posted 1 year ago #

    I am using the Agora theme from CSSIgniter. This theme uses the WooCommerce plug-in.

    The problem I have is that I'm trying to hide pricing from non-logged in visitors. I have it working to a degree, but there is still one position where it shows and I can't find the offending code.

    What I am doing is finding:
    <span class="price">
    <?php echo $product->get_price_html(); ?>
    </span>

    And replacing that with:
    <span class="price">
    <?php if(is_user_logged_in()): ?>
    <?php echo $product->get_price_html(); ?>
    <?php else: ?>
    Please login to see prices
    <?php endif; ?>
    </span>

    The single product page still has the price showing in one position and I can't find where I need to substitute the code.

    Any help would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.