Support » Plugins » Plugin: WP e-Commerce | Hide Price and Checkout from Unregistered Users

  • Resolved mtik


    This is my first post and sorry if I am posting in wrong section.
    I need a help. I have a wordpress site with WP e-Commerce plugin and I want to hide the product price and checkout option from unregistered users.

    Only register users who are logged in can view the the price and checkout option for each product. I am using a premium template for my site.

    Please help me, how can I do this? Do I need to manipulate some php files of the plugin or theme or wordpress!

    Thanks in advance! (:

Viewing 15 replies - 1 through 15 (of 20 total)
  • hi,
    its so simple… just go to the admin tab from settings link (if you are using old version of plugin) for new version go to store then click checkout tab…. select “yes” for Users must register before checking out:.. here you go its done…



    Thanks for the help!

    Actually, I solved this manually by editing the wpsc-products_page.php and wpsc-single_product.php using <?php if ( is_user_logged_in() ) : ?>.

    Thanks again for replying!

    Dear mtik

    I have the same question. I am using WP e-Commerce on Word Press and I’d like users to register in order to see prices and then check out.

    How can I do that. I am a bit new on this and can’t get it right.

    It would be great if you could help.

    my web page is

    Thanks a million in advance.

    Hello there!

    If you want the same thing I wanted to do then the solve is already mentioned above. Please, edit those two files manually and use the wp user logged in function. That will work! 🙂

    Tanweer K.

    Hello .. I should also hide the price to the visitors of my site and I would like to use the system of your site ( I kindly ask you to tell me how to insert php code in two pages (wpsc-products_page.php and wpsc-single_product.php).

    Of course, in your reply Best regards


    Hi Luca,

    I downloaded a plugin that can hide the price. If you are using WordPress with e-commerce, here is the plugin that you will need.



    Thanks Jan for sharing.

    And Luca, use the code: <?php if ( is_user_logged_in() ); ?> just before the price. This function checks whether the user is logged in or not.

    Tanweer K.

    thanks even if the plugin is payment …. but I think I’ll try it .

    sorry but would you tell me what is the exact line on which to place: <?php if ( is_user_logged_in() ); ?> ???


    Please, forward the two php files and i’ll edit them.

    Tanweer K.

    Use wordpress, wp e-commerce and “Bravo” theme (mojo-themes)
    this is the link to the second file :
    I edited to see where you enter the code, so I can change it in the future I

    Thanks in advance

    sorry … some news?? (Attached files above are the subject of WPEC not those of the theme that I have paid)

    Thanks in advance

    News ????? 2 weeks for you reply ??


    Oops! Sorry!
    Actually, i’m a freelancer and was extremely busy anyways, i’ll download that zip and will forward you shortly.

    Thanks for waiting!

    Tanweer K.

    Thanks Tanveer K.
    anxiously await the answer …

    Thanks luckid

    Okay, i’ve uploaded at:
    i hope wordpress hasn’t changed their logged_in function

    Tanweer K.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Plugin: WP e-Commerce | Hide Price and Checkout from Unregistered Users’ is closed to new replies.