Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Product post displaying different price if registered

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Product post displaying different price if registered

Tagged: conditional logic for product prices, displaying different prices for registered users

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 2 months ago by Peter.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 27, 2012 at 9:35 pm #5941
    adam_paxton
    Member

    Hi,

    Hope you can help. I have a setup where I have 2 categories – one for the general public and one for registered users. The general public gets items at price A and registered users get items at price B.

    The products are the same, its just that registered users get a little discount as a thank you for signing up. So rather than write a separate post for each product description I was going to just write one post and put a bit of code at the bottom of the page to say…

    If logged in show price B else show price A

    The code needs to be in the post as the site has multiple products so I can’t just hard code a template file. I tried using the following and the logic seems to work but it doesn’t render the ‘Add to cart’ button, it just prints [wp_eStore_add_to_cart id=18] out to the screen if the page is accessed by someone not logged in.

    [emember_protected scope=verified_users_only do_not_show_restricted_msg=1]

    Price: £10 + VAT

    [wp_eStore_add_to_cart id=18]

    [/emember_protected]

    [emember_protected scope=not_logged_in_users_only do_not_show_restricted_msg=1]

    Price: £20 + VAT

    [wp_eStore_add_to_cart id=23]

    [/emember_protected]

    Many thanks

    March 27, 2012 at 10:25 pm #43471
    Peter
    Member

    Hi,

    This sounds like a shortcode nesting issue.

    See these links which should help you:

    eMember – Shortcode Inside Another Shortcode (Shortcode Nesting) Not Filtering

    https://support.tipsandtricks-hq.com/forums/topic/estore-shortcode-inside-another-shortcode-shortcode-nesting-not-working

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ