Totally Zenned
- Join Date:
- Apr 2006
- Location:
- Dark Side of the Moon
- Posts:
- 986
- Plugin Contributions:
- 0
Additional Product Description info IF logged in
I have a situation where certain product information should only be displayed when a user is logged in much like when you set the store to view prices only when logged in.
I tried to add code like this to the products description:
<?php if ($_SESSION['customer_id']) { ?> <p>added info when logged in</p> <?php } ?>But it appears the php code is being scrubbed from the description before output, and "<p>added info when logged in</p>" is always displayed.
Suggestions on how to best implement this would be appreciated, especially with the least amount of core modification.
thanks!