lokust Posted May 1, 2008 Posted May 1, 2008 I have the Separate Pricing per Customer contribution installed. I have a question regarding how to display a message depending on customer group. So basically, if someone is not logged in or logged in as Retail customer group display text in template "All Prices include VAT" and if user is logged in as a Trade customer display "All Prices exclude VAT". To clarify - the text currently exists in the foot section of my templates. I'm using STS templates. Is there any was to detect the customer session and then display the correct message? Cheers. Quote
zeldaz Posted May 8, 2008 Posted May 8, 2008 Sure, I do not have the SPPC contrib here with me at the moment but you could add a simply IF statement to the footer. Note: I am not sure if it is session or cookie or what? if($_SESSION['blabla'] == "Trade Customer"){echo "All prices exclude VAT"; }else{ echo "All prices include VAT"; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.