I want to have a tab for "Home" page in the horizontal Categories Tabs.
Please see my website: www.fashionlabelstore.com
I want the first tab to be "home" and then "women's fashion", "mens clothing" etc.
Can someone help me to do it...
I want to have a tab for "Home" page in the horizontal Categories Tabs.
Please see my website: www.fashionlabelstore.com
I want the first tab to be "home" and then "women's fashion", "mens clothing" etc.
Can someone help me to do it...
Code from my tpl_modules_categories_tab.php
?>
<?php
echo '<div id="navCatTabsWrapper">';
echo '<div id="navCatTabs">';
echo '<div id="navCatDropdown">';
echo '<ul class="ul-wrapper">';
$categories_tab_query = "SELECT c.categories_id, cd.categories_name FROM ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id=cd.categories_id AND c.parent_id= '0' AND cd.language_id='" . (int)$_SESSION['languages_id'] . "' AND c.categories_status='1' ORDER BY c.sort_order, cd.categories_name;";
$categories_tab = $db->Execute($categories_tab_query);
while (!$categories_tab->EOF)
{
echo '<li class="root-cat">';
if((int)$cPath == $categories_tab->fields['categories_id'])
echo '<a class="tab-category-top selected-cat" href="'.zen_href_link(FILENAME_DEFAULT,'cPath=' . (int)$categories_tab->fields['categories_id']).'">' . $categories_tab->fields['categories_name'];
//echo '<span class="">'.$categories_tab->fields['categories_name'].'</span>';
else
echo '<a class="tab-category-top" href="'.zen_href_link(FILENAME_DEFAULT,'cPath=' . (int)$categories_tab->fields['categories_id']).'">' . $categories_tab->fields['categories_name'];
//echo $categories_tab->fields['categories_name'];
echo '</a>';
$subcategories_tab_query="SELECT c.categories_id, cd.categories_name FROM ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id=cd.categories_id AND c.parent_id= '".(int)$categories_tab->fields['categories_id']."' AND cd.language_id='" . (int)$_SESSION['languages_id'] . "' AND c.categories_status='1' ORDER BY c.sort_order, cd.categories_name;";
$subcategories_tab=$db->Execute($subcategories_tab_query);
if($subcategories_tab->RecordCount()>0)
{
echo '<ul>';
while (!$subcategories_tab->EOF)
{
$cPath_new='cPath=' . $categories_tab->fields['categories_id'] . '_' . $subcategories_tab->fields['categories_id'];
$cPath_new=str_replace('=0_', '=', $cPath_new);
echo '<li class="sub-cat">'.'<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">'.$subcategories_tab->fields['categories_name'].'</a></li>';
$subcategories_tab->MoveNext();
}
echo '</ul>';
}
echo '</li>';
$categories_tab->MoveNext();
}
echo '</ul>';
echo '<div class="clearBoth" style="font-size: 0;"></div>';
echo '</div>';
echo '</div>';
echo '</div>';
?>
Logging into your website from the link above I can't see your site...
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
Take time and compare these two .php files with the original from zen cart with the template you are using...
includes/templates/template_default/common/tpl_header.php
includes/templates/<your_template>/common/tpl_header.php
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
I believe the template you have purchased is missing this code..
Here is a tutorial to read on the issue..HTML Code:<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
Last edited by haredo; 1 May 2011 at 04:38 PM.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
I believe this code should be the first line after the
PHP Code:echo '<ul class="ul-wrapper">';
PHP Code:<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
Last edited by blonde; 2 May 2011 at 09:06 PM.
Both of the suggestions above would display the right output, but need to be altered to work in the specific setting you have. It is already in a PHP environment so doesn't need the <?php and ?>PHP Code:echo '<ul class="ul-wrapper">';
echo '<li><a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a></li>' . "\n";