Forums

[resolved] E-commerce [member] problem (3 posts)

  1. supremacy
    Member
    Posted 11 months ago #

    Hi,

    trying to do a webshop with the e-commerce plugin, where non-registered users cannot see the price and "add to cart" button.

    I put the price and add to basket lines between [member][/member] shortcodes in wpsc-product_page.php. And in wpsc-single_product.php.

    In products menu this works, it succesfully hides the price and the basket button, but if I click on a product category or a single product it shows:

    [member]Price: 10.00 USD [/member]

    so it display the shortcode instead of hiding the price.

    What can be wrong?

    Thanks,

    S

    (ps: sorry for bad english)

  2. supremacy
    Member
    Posted 11 months ago #

    anyone?

  3. supremacy
    Member
    Posted 11 months ago #

    nevermind, solved it with

    <?php if ( is_user_logged_in() ) { ... } ?>

Reply

You must log in to post.

About this Topic