i was hoping someone could help me out a bit with the following:
i'm trying to create a webshop with a horizontal menu in the header section of the website above the breadcrumb trail. Wich when you have selected a main category, will show the subcategories below that,
the idea is to get a similar sort of menu as on http://www.112ink.nl
As the 112ink website is made on OSC 2.2, with a STS custom made layout, i can't figure out wich code does that, or where the code is located to begin with
Now i'm thinking a bit simplistic, but is there for example a code i could use to call upon the childcategories from a certain subcategory if its selected in the menu?
My header.php code looks as follows:
(i know its messy, gonna try and get rid of the table tonight/tomorrow)
<?php
if ($messageStack->size('header') > 0) {
echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';
}
?>
<!-- Main Table 1 logo/searchbar/klantinfo e.d.-->
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="50%">
<!-- Table on left side -->
<table width="75%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div></td>
</tr>
</table>
<!-- END -->
</td>
<td width="50%">
<!-- Table on right side -->
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td align=right>
<?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image (DIR_WS_IMAGES . 'cart.png') . '</a>'; ?>
<?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING) . '">' . tep_image (DIR_WS_IMAGES . 'checkout.png') . '</a>'; ?>
<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . tep_image (DIR_WS_IMAGES . 'login.png') . '</a>'; ?>
<?php
if (tep_session_is_registered('customer_id')) {
echo '<a href="' . tep_href_link(FILENAME_LOGOFF) . '">' . tep_image (DIR_WS_IMAGES . 'logout.png') . '</a>';
}
?>
</td>
</tr>
<tr align=right>
<td> <div id="searchbox">
<?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="100" style="width: ' . (130) . 'px"') . ' ' . tep_hide_session_id() .'<input type="submit" name="Submit" value="Search">' . '</form>';
?>
</div></td>
</tr>
<tr align=right>
<td><a href="advanced_search.php">Geavanceerd zoeken</a></td>
</tr>
</table>
<!-- END -->
</td>
</tr>
</table>
<!-- END OF MAIN TABLE 1-->
<table border="0" cellspacing="0" cellpadding="0">
<tr align="left">
<td><img src="./images/menu_start_empty.png"></td>
<td><img src="./images/menu_red_start.png"></td>
<td>
<a href="index.php?cPath=1"><img src="./images/brother_new.png"></></a>
</td>
<td><img src="./images/menu_spacer.png"></td>
<td>
<a href="index.php?cPath=2"><img src="./images/canon_new.png"></></a>
</td>
<td><img src="./images/menu_spacer.png"></td>
<td>
<a href="index.php?cPath=3"><img src="./images/epson_new.png"></></a>
</td>
<td><img src="./images/menu_spacer.png"></td>
<td>
<a href="index.php?cPath=4"><img src="./images/hp_new.png"></></a>
</td>
<td><img src="./images/menu_spacer_2.png"></td>
<td>
<a href="contact_us.php"><img src="./images/contact_new.png"></a>
</td>
<td><img src="./images/menu_spacer.png"></td>
<td><a href="conditions.php"><img src="./images/voorwaarden_new.png"></a></td>
<td><img src="./images/menu_blue_end.png"></td>
</tr>
</table>
<div class="grid_24 ui-widget infoBoxContainer">
<div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div>
</div>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<?php
}
?>
I hope someone can help me make a submenu between the category menu and the breadcrumb trail, doesn't need to be anything fancy as long as it would for example show in text " Subcategory 1 | Subcategory 2 | etc"
Kind regards,
Robert











