- This topic has 1 reply, 2 voices, and was last updated 12 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Product post displaying different price if registered
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
Hi,
This sounds like a shortcode nesting issue.
See these links which should help you:
eMember – Shortcode Inside Another Shortcode (Shortcode Nesting) Not Filtering