i want to remove subcategories from the main content window
http://www.cnt-gifts.com/collectibles-c-5.html
not the oens inthe category sidebox but in the right
i want to remove subcategories from the main content window
http://www.cnt-gifts.com/collectibles-c-5.html
not the oens inthe category sidebox but in the right
Why would you want to do that? What would you want to happen when they click the top level category?
i just want the subcategories to show in the sidebox
/includes/templates/YOURTEMPLATE/templates/tpl_index_categories.php
comment or remove this section:Code:<!-- BOF: Display grid of available sub-categories, if any --> <?php /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); ?> <!-- EOF: Display grid of available sub-categories -->
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
That did the trick. Thanks!
John L.
MultiMedia Designer
Ok - backwards for a moment. :)
I would like to NOT display my subcategories in the category side box but I Do want them to appear on the page after they click the main category.
Does this make sense?
I did edit this part but I got an error right away
if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
Can anyone help?
I would rather do it this way than with the flyout menu. (I think)
My goal? To be Totally Zenned!
Ok, stupid me.
I was able to do it by editing this:
SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS
by removing the _SUBCATEGORIES part
..........it all makes perfect sense now. LOL.
Another happy zener here.. :) It did the trick to me too.. :)
There are two switches using these configuration_keys in the configuration table:
SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS
SHOW_CATEGORIES_ALWAYS
These control different things ...
I am not sure why you would be changing the code for them ...
You can locate them in your configuration settings by pasting them into the top input box in the Developer's Tool Kit and not selecting anything in the dropdown and clicking search ... then Edit on the next screen ...
Or, paste in the bottom input box and select Catalog from the dropdown and click search to see where they are used in the code ...
It is not a good plan to mix up the keys in the code when there are settings to control their usage in the configuration ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks