OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Separate Pricing per Customer baby
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Order Total Modules
lokust
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.
zeldaz
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?
QUOTE
if($_SESSION['blabla'] == "Trade Customer"){
echo "All prices exclude VAT";
}else{
echo "All prices include VAT";
}
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.