Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Separate Pricing per Customer baby


lokust

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?

 

Cheers.

Link to comment
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";

}else{

echo "All prices include VAT";

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...