Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Probably a dumb question...


wallspace

Recommended Posts

Hi all,

 

I've got the loginbox contribution installed in my shop and i want to modify it so that when someones logged in a warning comes up in the header to let them know the 10% discount will be added at checkout and not before.

 

looking in the code for loginbox.php I found this comment:

 

<?php

} else {

 

 

// If you want to display anything when the user IS logged in, put it

// in here... Possibly a "You are logged in as :" box or something.

 

 

}

?>

 

Great I thought, exactly what i need, only problem is I can't get it to display a warning. Tried putting this underneath the comment but still no joy:

 

$messageStack->Add('header', CUSTOMER_LOGGED_IN, 'warning');

 

ANyone got any ideas?

 

My site is www.wallspace.co.uk if thats any help.

 

Cheers

Mark

Link to comment
Share on other sites

Try:

 

echo 'My message';

 

Matti

 

Thanks Johnson,

 

Tried that by adding this but still not displaying, anyone else got any suggestions for me?

 

echo 'Thanks for logging in. As a member you are entitled to 10% off all prints in our gallery, this discount will be deducted from your shopping cart at the checkout.';

 

 

Appreciated,

 

Mark

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...