Support » Plugin: Members » Hide Retail Price for Logged-in Users

  • Hi all,

    Currently, when a user is logged in, they see a crossed out retail price, and the wholesale price. Is there any way to hide the retail price completely?

    Thanks for your help,

    Michael

Viewing 1 replies (of 1 total)
  • Plugin Author Justin Tadlock

    (@greenshady)

    It really depends on how you’re showing the retail price.

    1) If it requires code in your theme, you could use the is_user_logged_in() function like so:

    
    <?php if ( ! is_user_logged_in() ) : ?>
    	// Only show retail for users not logged in.
    <?php endif ?>
    

    2) If you can control this within the post edit, you can use the [members_not_logged_in] shortcode like so:

    
    [members_not_logged_in]
    // Only show retail for users not logged in.
    [/members_not_logged_in]
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.