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!


Reply With Quote
