Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to install logged in user name in header


Guest

Recommended Posts

Posted

Just like this forum that shows: Logged in as: blackelvis ( Log Out ). Can that be added to oscommerce shopping cart? And if so whats the code?

Posted

you can add it to the header.php in-between html for your osc store.

<?php
if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
echo 'Logged in as: ' . $customer_first_name;
}
?>

Posted
you can add it to the header.php in-between html for your osc store.

<?php
if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
echo 'Logged in as: ' . $customer_first_name;
}
?>

 

 

Thank U it works perfectly. U da man.

Archived

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

×
×
  • Create New...