Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sts templates, add ing php into html ?


rusty1001

Recommended Posts

Posted

Hi

I have made up this little code for only registered using being able to view catalog btw the way if you want to use,, I can add this with the main index by adding <?php echo TEXT_LOGGED; ?> this to below the text_main.. but I have 4 other sts templates that are in html and when you go to a tab they have there own template.... \\

 

how can add this the html template ??? is is possible I can seem to get it to work ,, thanks

 

ps this code below is in the langauge english define...

 

if (!tep_session_is_registered('customer_id'))   {
define('TEXT_LOGGED', '<img
src="images/padlock.gif" alt=""
style="width: 12px; height: 14px;"> For the complete range
of products stocked by store name , please log <a
href="login.php">in here</a>');
}

if (tep_session_is_registered('customer_id'))   {
define('TEXT_LOGGED', ' <a
href="logoff.php">Log out</a>');

}

 

 

<?php echo TEXT_LOGGED; ?>

Rusty

-------------------------------------------

Posted
Hi

I have made up this little code for only registered using being able to view catalog btw the way if you want to use,, I can add this with the main index by adding <?php echo TEXT_LOGGED; ?> this to below the text_main.. but I have 4 other sts templates that are in html and when you go to a tab they have there own template.... \\

 

how can add this the html template ??? is is possible I can seem to get it to work ,, thanks

 

ps this code below is in the langauge english define...

 

if (!tep_session_is_registered('customer_id'))   {
define('TEXT_LOGGED', '<img
src="images/padlock.gif" alt=""
style="width: 12px; height: 14px;"> For the complete range
of products stocked by store name , please log <a
href="login.php">in here</a>');
}

if (tep_session_is_registered('customer_id'))   {
define('TEXT_LOGGED', ' <a
href="logoff.php">Log out</a>');

}

 

 

<?php echo TEXT_LOGGED; ?>

 

 

solved this ... added the code above to the top of each template inside php tags then added the echo to inside the area i wanted to appear....

Rusty

-------------------------------------------

Archived

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

×
×
  • Create New...