WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Plugin: WP e-Commerce | Hide Price and Checkout from Unregistered Users (21 posts)

  1. mtik
    Member
    Posted 2 years ago #

    Hello!
    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! (:

  2. ali_cruse
    Member
    Posted 2 years ago #

    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...

    Regards.

  3. mtik
    Member
    Posted 2 years ago #

    Hi,

    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!

  4. info@nutrifit24.com
    Member
    Posted 1 year ago #

    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 http://www.nutrifit24.com

    Thanks a million in advance.

  5. mtik
    Member
    Posted 1 year ago #

    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! :)

    Thanks,
    Tanweer K.

  6. luckid28
    Member
    Posted 1 year ago #

    @info@nutrifit24.com

    Hello .. I should also hide the price to the visitors of my site and I would like to use the system info@nutrifit24.com of your site (http://www.nutrifit24.com). 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

    Luca

  7. info@nutrifit24.com
    Member
    Posted 1 year ago #

    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.
    http://www.woothemes.com/products/catalog-visibility-options/

    Regards,

    Jan

  8. mtik
    Member
    Posted 1 year ago #

    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.

    Thanks,
    Tanweer K.

  9. luckid28
    Member
    Posted 1 year ago #

    thanks info@nutrifit24.com even if the plugin is payment .... but I think I'll try it .

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

    thanks

  10. mtik
    Member
    Posted 1 year ago #

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

    Thanks,
    Tanweer K.

  11. luckid28
    Member
    Posted 1 year ago #

    Use wordpress, wp e-commerce and "Bravo" theme (mojo-themes)
    this is the link to the second file :http://www.bazarbonino.com/upload/theme.zip.
    I edited to see where you enter the code, so I can change it in the future I

    Thanks in advance

  12. luckid28
    Member
    Posted 1 year ago #

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

    Thanks in advance

  13. luckid28
    Member
    Posted 1 year ago #

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

    Thanks...

  14. mtik
    Member
    Posted 1 year ago #

    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!

    Regards,
    Tanweer K.

  15. luckid28
    Member
    Posted 1 year ago #

    Thanks Tanveer K.
    anxiously await the answer ...

    Thanks luckid

  16. mtik
    Member
    Posted 1 year ago #

    Okay, i've uploaded at: http://express.us.to/theme-modified.zip
    i hope wordpress hasn't changed their logged_in function

    Regards,
    Tanweer K.

  17. luckid28
    Member
    Posted 1 year ago #

    ok! and thanks! now I try to put it in my theme and let you know ..

    Thank you for your help and I know I have a problem you contact....

    Luckid

  18. luckid28
    Member
    Posted 1 year ago #

    Tanweer K
    Unfortunately it does not work ... but I think the theme .. in fact missing the line: <?php wpsc_the_product_price_display(); ?> in the theme. you send the file of the theme but I can not include the line:
    http://www.bazarbonino.com/upload/theme_mio.zip

    I hope you can help me

    Luckid

  19. rivkaneumann
    Member
    Posted 1 year ago #

    Please help; I'm trying to do the same thing, but i dont understand what was said here. Can someone give me step by step what to do here? I need to either hide the price for users not logged in, or I need call for price intead of displaying the price. Please help! Thanks!

    http://www.dmcsales.com

  20. mtik
    Member
    Posted 1 year ago #

    Dear rivkaneumann,

    Read here and you'll have some idea.

    Thanks,
    Tanweer K.

  21. rivkaneumann
    Member
    Posted 1 year ago #

    Where exactly do I put the codes?

Topic Closed

This topic has been closed to new replies.

About this Topic