mujina Posted November 16, 2004 Share Posted November 16, 2004 (edited) I've installed the last version of category tabs with subs [http://www.oscommerce.com/community/contributions,1023/download,6282/mirror,pair] as I couldn't make work the older with the contribution "enable-disable categories". With this version V2.0 I can activate the categories I want but I have a huge problem : I didn't succed in diplaying at the same time The categories Box and The tabs. The categories box appears in the column_right but the box is empty!!!! :blink: Anyone who has the same problem. please bring me some help ! thanks mujina Edited November 16, 2004 by mujina Quote OSC2.2 Link to comment Share on other sites More sharing options...
mujina Posted November 18, 2004 Author Share Posted November 18, 2004 No one who has encountered the same problem? Please if you have installed category tabs tell me if everything works fine or if you can't display both the menu (tabs & sub tabs) and the categories box. I have to run my store in a week thus I' m really :'( Thanks! mujina Quote OSC2.2 Link to comment Share on other sites More sharing options...
Guest Posted November 24, 2004 Share Posted November 24, 2004 No one who has encountered the same problem? Please if you have installed category tabs tell me if everything works fine or if you can't display both the menu (tabs & sub tabs) and the categories box. I have to run my store in a week thus I' m really :'( Thanks! mujina <{POST_SNAPBACK}> I have the same problem too, I just haven't fixed it yet. If/when I do I will post the fix. Unless someone beats me to it! Quote Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted November 24, 2004 Share Posted November 24, 2004 I worked with her last week to troubleshoot this issue. The solution for her problem, and likely yours is: Add to includes/boxes/categories.php unset($first_element); Before function tep_show_category($counter) { Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
Mighty Mike Posted December 2, 2004 Share Posted December 2, 2004 Hi All I thought i would post here as it is the most recent topic open for cats with subs contrib. I have the previous version installed "8 Nov 2004 - Category Tabs with Subs Nice!" not v2.0 Its great but would like any advice on how i could fix/do a few things with it. 1, when no sub cats are shown is it possible to not show that row which is under the tabs? like an if statement somewhere. 2, how easy is it to change the current tab images to something else. 3, i have 3 levels of categories Main,Sub & Sub2, now when a sub is clicked it will show all of the sub2 cats aswell, how can i make it so it does not show any sub2 cats? Hoping someone is kind enough to help me out here Cheers Quote Link to comment Share on other sites More sharing options...
Guest Posted December 9, 2004 Share Posted December 9, 2004 I worked with her last week to troubleshoot this issue. The solution for her problem, and likely yours is: Add to includes/boxes/categories.php unset($first_element); Before function tep_show_category($counter) { <{POST_SNAPBACK}> Quick easy fix. Now, might you know this one? I don't (yet): Main categories (level 0) display fine. Subcategories (level 1) display fine. Sub-subcategories (level 2) display in the same <tr> as level 1 subs. Id there a way to make a new <tr> for level 2, then level 3, etc sub-subcategories? That way each succeeding subcategory level of the prior (sub)category would display another line below. Any ideas? Quote Link to comment Share on other sites More sharing options...
AWWWW.WAHWAH Posted December 24, 2004 Share Posted December 24, 2004 (edited) Quick easy fix. Now, might you know this one? I don't (yet): Main categories (level 0) display fine. Subcategories (level 1) display fine. Sub-subcategories (level 2) display in the same <tr> as level 1 subs. Id there a way to make a new <tr> for level 2, then level 3, etc sub-subcategories? That way each succeeding subcategory level of the prior (sub)category would display another line below. Any ideas? <{POST_SNAPBACK}> I just installed 2.0 and the problem I have is that the only tab appearing on top is a tab that says "Top". I have only top categories and no sub categories. Anyways, I added a subcategory but couldn't understand the instructions that well either. "5. To accomodate for the tabs, you must modify the header.php to fit the tabs. Find the section where you want the row to go and add the following: To display sub-categories, add include(DIR_WS_INCLUDES . 'categories_subtab.php'); after include(DIR_WS_INCLUDES . 'categories_tab.php'); to If you are using STS, this step is not needed, see readme.txt" So it should look like this? <td colspan="2" align="center" valign="bottom" nowrap> <?php include(DIR_WS_INCLUDES . 'categories_tab.php'); include(DIR_WS_INCLUDES . 'categories_subtab.php'); ?> any help on both these probs would be appreciated ... tia Edited December 24, 2004 by Young Tae Byun Quote Link to comment Share on other sites More sharing options...
gareth123456 Posted February 17, 2005 Share Posted February 17, 2005 Does anyone know if I could use two different domain names to point to two different tabs? For example, I might want a tab showing the DVD part of my store and use dvd.com and for the Books department of my store books.com. How would I set this up? Thanks Gareth Quote Link to comment Share on other sites More sharing options...
bdneuman Posted March 14, 2005 Share Posted March 14, 2005 I'm hoping someone can help me with some code from the Category Tabs with Subs contribution. I'm having trouble with a piece of code that I think is related to the Ultimate SEO URLs contrib. Here is the section of code that checks to see if the tab is for the current page's category and then gives it an "on" status: // $tab_counter = category id $start = first tab $last_on = if the previous tab was selected function show_category_tabs($tab_counter, $last_element, $start = 1, $last_on = false) { global $foo, $categories_string, $id, $HTTP_GET_VARS; $onpage = false; // Prepares new cPath if not home page if (($foo[$tab_counter]['parent'] == 0) and ($tab_counter!=0)) { $cPath_new = 'cPath=' . $tab_counter; } // We are on the home page if (!isset($HTTP_GET_VARS['cPath'])) { if ($counter==0) $onpage = true; } elseif (($HTTP_GET_VARS['cPath'] != 0) and ($counter!=0)){ $base = substr($HTTP_GET_VARS['cPath'], 0, strpos($HTTP_GET_VARS['cPath'], '_')); if ($counter == $HTTP_GET_VARS['cPath']) { $onpage = true; } elseif ($counter == $base) { $onpage = true; } elseif (isset($cPath_array) && in_array($counter, $cPath_array)) { $onpage = true; } elseif ($counter == $current_category_id) { $onpage = true; } } Here's my problem - the tab shows as "on" everywhere but the product info pages. You can see the work in progress here: http://www.honeybeadjewelry.com/catalogtest I've tried cutting and pasting pieces of code from the categories box but can't seem to get anything to work. Any guidance would be greatly appreciated. Quote Brian Neuman Link to comment Share on other sites More sharing options...
Nefermet Posted April 5, 2005 Share Posted April 5, 2005 I have two problems: 1. The only tab that shows up is called Top 2. How on earth do I get this contrib to work properly with BTS?? Any advice or points in the right direction would be great! Many thanks Quote Link to comment Share on other sites More sharing options...
arames Posted May 28, 2005 Share Posted May 28, 2005 I finally got this great contribution work. It looks great and is also great for search engines I guess (looks pretty much like Apple.com Website) The only problem I am now facing is that I have 14 Categories. And as you know this contribution puts ALL the categories in 1 line ... which makes my page way to long in 1 line. :'( How can I brake the categories to be displayed on 2 lines? Of course I won't be using the Sub Categorie tabs any more. Thank you in advance for your response, Arames Quote Link to comment Share on other sites More sharing options...
ozEworks Posted June 20, 2005 Share Posted June 20, 2005 I have two problems: 1. The only tab that shows up is called Top 2. How on earth do I get this contrib to work properly with BTS?? Any advice or points in the right direction would be great! Many thanks <{POST_SNAPBACK}> I have that problem too - can anyone help? Quote Link to comment Share on other sites More sharing options...
tedmcdonald Posted October 6, 2005 Share Posted October 6, 2005 I am using v.2.0 When you are in a category, its category tab is not clickable. My customers are used to clicking on the each category tab to get back to the top level of each category. This version doesn't allow that. Does anyone know how to change the code so that the category tabs are always clickable, even when you are in the selected category? Best Regards, Ted Quote Link to comment Share on other sites More sharing options...
tedmcdonald Posted October 7, 2005 Share Posted October 7, 2005 How to make selected category clickable? On line 91 in includes/categories_tab.php you'll find: // if tab selected we dont need a link if (!$onpage) { $categories_string .= '<a class="tabsNavigation" href="'; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; } // display category name $categories_string .= $foo[$counter]['name']; if (!$onpage) { $categories_string .= '</a>'; } $categories_string .= '</td>'; This code makes it so that the unselected categories are still clickable (linked), whereas the selected category is not linked. I need to have the selected category ALSO link back to itself (clickable). If I take the above code and change the if (!$onpage) and change it to if ($onpage) , removing the exclamation point, then only the selected category is clickable and all other are dead, so I am guessing this is where some code change could be made. Please help if you can! ;) Best Regards, Ted Quote Link to comment Share on other sites More sharing options...
Genius Posted October 7, 2005 Share Posted October 7, 2005 I have just installed this contribution and need some help. the installation seemed to have gone fine, but i am loosing my categories and subcategories on the left column, all i see is the name Categories and below that -->(27) Can anoyone help with this so that i can have the categories and sub categories on the left column as well as on the tabs ( the TAB work fine, and show fine too) Quote Link to comment Share on other sites More sharing options...
tedmcdonald Posted October 9, 2005 Share Posted October 9, 2005 Really looking for some help here. :blink: I am very sure there is something simple that can be done in order to make it so that the category tab of an entered category still clicks back to the category. Here's a scenerio that happens frequently on a site I run that has the old version of tabs. I am on the phone with the customer directing them to a product. They have entered a sub-category of a main category. I need them to get back to all the other sub-categories in this main category. If the main category tab remains clickable (linked), all they need to do is click the main category again and they are back to all the main sub-cats. With v.2.0, as it is, the same scenerio would be impossible. The customer would first have to click on a different main category in order to be able to click on the original category to get back to the sub-categories. Not good. So, please read my dilemma below, and let me know how I can make it do what it needs to do. I am counting on a simple solution soon..., or tell me that it's not possible...,but tell me something, someone out there somewhere... :'( How to make selected category clickable? On line 91 in includes/categories_tab.php you'll find: // if tab selected we dont need a link if (!$onpage) { $categories_string .= '<a class="tabsNavigation" href="'; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; } // display category name $categories_string .= $foo[$counter]['name']; if (!$onpage) { $categories_string .= '</a>'; } $categories_string .= '</td>'; This code makes it so that the unselected categories are still clickable (linked), whereas the selected category is not linked. I need to have the selected category ALSO link back to itself (clickable). If I take the above code and change the if (!$onpage) and change it to if ($onpage) , removing the exclamation point, then only the selected category is clickable and all other are dead, so I am guessing this is where some code change could be made. Please help if you can! ;) Best Regards, Ted Quote Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted October 9, 2005 Share Posted October 9, 2005 // always show the link $categories_string .= '<a class="tabsNavigation" href="'; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; // display category name $categories_string .= $foo[$counter]['name']; $categories_string .= '</a>'; $categories_string .= '</td>'; This is the equivalent code to always show the link, independent of the actual page being shown. Note, evidently, this can be condensed, but I've left the parts so it is more clear what to remove. HTH Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
tedmcdonald Posted October 9, 2005 Share Posted October 9, 2005 Thanks bruyndoncx It works like I need it to now. :P // always show the link $categories_string .= '<a class="tabsNavigation" href="'; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; // display category name $categories_string .= $foo[$counter]['name']; $categories_string .= '</a>'; $categories_string .= '</td>'; if (!$onpage) { $categories_string .= '</a>'; } $categories_string .= '</td>'; if ($last_tab) { if ($onpage) { $categories_string .= '<td class="tabsNavigation" valign="top" height="'.CAT_TABS_HEIGHT.'" width="'.CAT_TABS_WIDTH_RIGHT.'" nowrap background="images/curve/right_on.gif">'."\n"; } else { $categories_string .= '<td class="tabsNavigation" valign="top" height="'.CAT_TABS_HEIGHT.'" width="'.CAT_TABS_WIDTH_RIGHT.'" nowrap background="images/curve/right_off.gif">'."\n"; } ...is what is looks like now. Best Regards, Ted Quote Link to comment Share on other sites More sharing options...
wyattde Posted October 11, 2005 Share Posted October 11, 2005 I finally got this great contribution work. It looks great and is also great for search engines I guess (looks pretty much like Apple.com Website) The only problem I am now facing is that I have 14 Categories. And as you know this contribution puts ALL the categories in 1 line ... which makes my page way to long in 1 line. :'( How can I brake the categories to be displayed on 2 lines? Of course I won't be using the Sub Categorie tabs any more. Thank you in advance for your response, Arames Did you ever get this to work? I have way to mmany categories and it does not break them into multiple lines, but rather just makes my screen go far to the right putting all categories on the same line. The sub category works as it wraps around to the next line for more categories. Quote Link to comment Share on other sites More sharing options...
Genius Posted October 13, 2005 Share Posted October 13, 2005 Quick easy fix. Now, might you know this one? I don't (yet): Main categories (level 0) display fine. Subcategories (level 1) display fine. Sub-subcategories (level 2) display in the same <tr> as level 1 subs. Id there a way to make a new <tr> for level 2, then level 3, etc sub-subcategories? That way each succeeding subcategory level of the prior (sub)category would display another line below. Any ideas? Hi I am trying to do the same as above, any ideas as to how this can be done. My level (0) shgows fine, then level (2) is fine but the level(3) sub-subcategory that shows on the same line as the level (2) the code i have in my headers is <td colspan="2" align="center" valign="bottom" nowrap> <?php include(DIR_WS_INCLUDES . 'categories_tab.php'); include(DIR_WS_INCLUDES . 'categories_subtab.php'); ?> </td> Quote Link to comment Share on other sites More sharing options...
Genius Posted October 17, 2005 Share Posted October 17, 2005 Hi I am trying to do the same as above, any ideas as to how this can be done. My level (0) shgows fine, then level (2) is fine but the level(3) sub-subcategory that shows on the same line as the level (2) the code i have in my headers is <td colspan="2" align="center" valign="bottom" nowrap> <?php include(DIR_WS_INCLUDES . 'categories_tab.php'); include(DIR_WS_INCLUDES . 'categories_subtab.php'); ?> </td> I am still batteling with this problem any suggestions... Quote Link to comment Share on other sites More sharing options...
kirchenbauer Posted November 19, 2005 Share Posted November 19, 2005 I love this Category Tabs contribution and I am trying to configure it on my site, but I am not sure how to split the categories into rows. I have at least 15 categories and they are all in one row, which makes the page very, very wide. I would like to have my categories to be in more than one row, like on this site: Crystal Light I have the categories tabs turned off right now, so that my page isn't all funky when customers visit, but my site is located at: Noah's Animal Figurines I am placing the tabs below the Free Shipping statement. Thanks for the help!! Quote Link to comment Share on other sites More sharing options...
boxtel Posted November 20, 2005 Share Posted November 20, 2005 I love this Category Tabs contribution and I am trying to configure iton my site, but I am not sure how to split the categories into rows. I have at least 15 categories and they are all in one row, which makes the page very, very wide. I would like to have my categories to be in more than one row, like on this site: Crystal Light I have the categories tabs turned off right now, so that my page isn't all funky when customers visit, but my site is located at: Noah's Animal Figurines I am placing the tabs below the Free Shipping statement. Thanks for the help!! I have added it as a separate contribution : http://www.oscommerce.com/community/contributions,3765 Quote Treasurer MFC Link to comment Share on other sites More sharing options...
kirchenbauer Posted November 20, 2005 Share Posted November 20, 2005 Thank you Amanda! It is absolutely wonderful! Worked like a charm. Great Instructions. Do I still need to keep the other categories_tab.php file in my catalog/includes directory? Thanks again, Sherry Quote Link to comment Share on other sites More sharing options...
boxtel Posted November 20, 2005 Share Posted November 20, 2005 Thank you Amanda! It is absolutely wonderful! Worked like a charm. Great Instructions. Do I still need to keep the other categories_tab.php file in my catalog/includes directory? Thanks again, Sherry You're welcome, categories_tabs.php is no longer needed here so you could remove it or keep it for saving. Quote Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.