Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Text Links To osC pages


tropiland

Recommended Posts

Posted

Something like:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>">Home Page</a>

 

Add in the SSL call if it needs to go through a secure connection, plus the link text constant if you use multi languages.

 

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>

 

Or you can do it this way

 

<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; ?>

 

If you want to change the appearance of the links, create a new rule in the stylesheet and call it in the link.

 

<?php echo '<a class="newRule" href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?>

 

Look in includes/filenames.php for a list of all the filename constants and in includes/languages/english.php for the text constants.

Posted
Something like:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>">Home Page</a>

 

Add in the SSL call if it needs to go through a secure connection, plus the link text constant if you use multi languages.

 

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>

 

Or you can do it this way

 

<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; ?>

 

If you want to change the appearance of the links, create a new rule in the stylesheet and call it in the link.

 

<?php echo '<a class="newRule" href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?>

 

Look in includes/filenames.php for a list of all the filename constants and in includes/languages/english.php for the text constants.

 

great thanx for the help!

Archived

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

×
×
  • Create New...