Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Sign in to follow this  

Separate Pricing per Customer baby

Recommended Posts

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?



Share this post

Link to post
Share on other sites

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";


echo "All prices include VAT";


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this