Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tab Page Unlimited v1.1


NewUser

Recommended Posts

I have included the tab page unlimited v1.1 Contribution and it works great.

But now I have a little question. It is possible to show under every selected Tab different textlinks?

For example: If the contact us-tab is selected it shows under it in a row the following textlinks: Marketing, Administration, etc.

And if the terms-tab is selected it shows Privacy and Our Terms as chooseable textlinks under it.

 

Under the Tab Pages Code in header.php I have added following:

 

<?php
if ((isset($tab_id) == 1) AND  ($tab_id == $row['tab_id']))
{
?>
<table>
<tbody>
<tr>
<td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_MARKETING) . '">' . HEADER_TITLE_CONTACT_MARKETING . '</a>  <a href="' . tep_href_link(FILENAME_CONTACT_ADMINISTRATION, '', 'SSL') . '">' . HEADER_TITLE_CONTACT_ADMINISTRATION . '</a>'; ?>  </td>
</tr>
</tbody>
</table>
<?php
}

if ((isset($tab_id) == 2) AND  ($tab_id == $row['tab_id']))
{
?>
<table>
<tbody>
<tr>
<td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_TERMS) . '">' . HEADER_TITLE_TERMS . '</a>  <a href="' . tep_href_link(FILENAME_PRIVACY, '', 'SSL') . '">' . HEADER_TITLE_PRIVACY . '</a>'; ?>  </td>
</tr>
</tbody>
</table>
<?php
}

 

The Textlinks are shown, but it shows under each selected tab all the textlinks "Marketing", "Administration" and "Terms", "Privacy" (in two rows).

What I want, is, that it shows only the defined textlinks for each tab-id and not all.

What I make wrong? Who can help be, please?

I think it`s not a big thing but I don`t know how to realize it.

Please help me. Thanks!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...