Can one of you WP Gurus help me with a bug?

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(); ?>


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; ?>


The single product poage 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.

  • Kimberly
    • Champion of Loops

    Hey there!

    If it’s showing on the single product page I’d suggest looking into the page template for that particular portion of code and applying the is user logged in code there

    I’m not familiar with the file structure or the theme so i’m not sure what you’ve tried so far.



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.