Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Categories Menu - Showing Subcategories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 03-24-2006, 06:44 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default

Quote:
Originally Posted by proboscidian
Isn't 4.1 still beta?

No ... I think it's out of Beta ... have a look ... http://forum.x-cart.com/viewtopic.php?t=27292
Reply With Quote
  #72  
Old 03-24-2006, 06:50 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default

After reading the fine print myself ... I noticed it is an rc (Release Candidate) ... good thing I'm still in the process of transferring info and haven't set it live yet ... guess I'll just add the patch when the actual commercial version becomes available.

Quote:
WARNING!
Although we have fixed the majority of issues reported in the beta versions, please remember that this build is a release candidate and is still NOT recommended for use in live stores. The software is still being tested and we cannot guarantee bug-free performance before the final release is out. Also note that technical support and a reference manual for RC3 are not provided.

Please be aware that patches for upgrading from RC1, RC2 and RC3 to subsequent versions will be available, so we encourage you to install a release candidate version (RC1, RC2 or RC3) as a platform for pre-production preparation of new stores or as a starting point for gradual transfer of your product database from the older X-Cart versions to X-Cart 4.1 and trying out the new functionality.
Reply With Quote
  #73  
Old 03-24-2006, 09:07 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

Hi Everyone,

This mod is great -- exactly what I was looking for!

THANKS!

In addition to showing the subcat list, does anyone know how to initially make the parent category bold when you click on it and keep it bold when you click on one of its sub cats:

Category 1
Sub Cat 1
Sub Cat 2
Sub Cat 3

Thanks in advance!

ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #74  
Old 04-04-2006, 08:12 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

Anyone?
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #75  
Old 04-04-2006, 08:52 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default

Quote:
Originally Posted by ATKOgirl
Hi Everyone,

This mod is great -- exactly what I was looking for!

THANKS!

In addition to showing the subcat list, does anyone know how to initially make the parent category bold when you click on it and keep it bold when you click on one of its sub cats:

Category 1
Sub Cat 1
Sub Cat 2
Sub Cat 3

Thanks in advance!



ATKOgirl - I recall seeing something like that in a search for fixing this mod to work with 4.0.1 -- it may have been here -->

http://forum.x-cart.com/viewtopic.php?p=97488&highlight=#97488

hope that helps.

- Hyperdelicious
Reply With Quote
  #76  
Old 04-05-2006, 08:25 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

Hi Hyperdelicious,

Thanks for your response. The link shows how to have the current subcategory as bold, which was also explained here.

I am looking to havve both the subcategory and its parent bold.

Thanks again,
ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #77  
Old 04-07-2006, 09:10 PM
 
BornMunson BornMunson is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 46
 

Default

I just installed this great mod and wanted to know how I could have it so that category 1 would still show as a link even though it has subcategories?
Quote:
Originally Posted by gfiebich
Here is a version of the above mod which displays categories and subcategories (2 levels) in an "always open" state. In addition, categories which contain subcategories are not linked. For example:

Category 1 (no link)
> Subcategory A (link)
> Subcategory B (link)
Category 2 (link)
Category 3 (no link)
> Subcategory C (link)
> Subcategory D (link)

This was done in x-cart gold 4.0.16

Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} {* Determine if this category has a subcategory *} {section name=subcat loop=$allcategories} {if $allcategories[subcat].parentid eq $categories[cat_num].categoryid} {assign var="subs" value="yes"} {/if} {/section} {if $subs ne 'yes'} {* This category has no subcategories, so display the category name with a link *} {if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid} {$categories[cat_num].category} {else} {$categories[cat_num].category} {/if} {else} {* This category has subcategories, so display the category name without a link *} {if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid} <font class="VertMenuItemsBig">{$categories[cat_num].category}</font> {else} <font class="VertMenuItemsBig">{$categories[cat_num].category}</font> {/if} {/if} {* Display the subcategories *} {section name=subcat loop=$allcategories} {if $allcategories[subcat].parentid eq $categories[cat_num].categoryid}&rsaquo;{if $cat eq $allcategories[subcat].categoryid}{/if}{$allcategories[subcat].category}{if $cat eq $allcategories[subcat].categoryid}{/if} {/if} {/section} {* reset the subcategory switch *} {assign var="subs" value="no"} {/section} {else} {section name=cat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/section} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }

Hope this is useful to someone.

-Glen
__________________
X-Cart 4.7.3
Reply With Quote
  #78  
Old 04-20-2006, 09:34 AM
 
orbitone orbitone is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 2
 

Default

Quote:
Originally Posted by BornMunson
I just installed this great mod and wanted to know how I could have it so that category 1 would still show as a link even though it has subcategories?

Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} {* Determine if this category has a subcategory *} {section name=subcat loop=$allcategories} {if $allcategories[subcat].parentid eq $categories[cat_num].categoryid} {assign var="subs" value="yes"} {/if} {/section} {if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid} {$categories[cat_num].category} {else} {$categories[cat_num].category} {/if} {* Display the subcategories *} {section name=subcat loop=$allcategories} {if $allcategories[subcat].parentid eq $categories[cat_num].categoryid}&rsaquo;{if $cat eq $allcategories[subcat].categoryid}{/if}{$allcategories[subcat].category}{if $cat eq $allcategories[subcat].categoryid}{/if} {/if} {/section} {* reset the subcategory switch *} {assign var="subs" value="no"} {/section} {else} {section name=cat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/section} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
__________________
Version 4.0.18
Reply With Quote
  #79  
Old 05-17-2006, 10:04 PM
 
idesign123 idesign123 is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 58
 

Default Bug Fix needed

I noticed a very minor bug in this mod.

It works perfectly if you have do not specify an order to your subcategories. But if you DO have an order specified, this is ignored in the dropdown menu.

EXAMPLE:

In my control panel I have something like...
pos 10 = Pears
pos 20 = Apples
pos 30 = Bananas

On the page itself, the subcategories are listed correctly (i.e., 'Pears' is first). But in the Categories dropdown menu, the items are listed Alphabetically (i.e., 'Apples' is listed first).

Can someone please suggest a fix?

I am using the following code...

Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} {assign var=topmostcat value=$current_category.categoryid_path|regex_replace:"/\/.*/":""} {if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid || $topmostcat eq $categories[cat_num].categoryid} {$categories[cat_num].category} {else} {$categories[cat_num].category}<HR size="1" noshade class="CateMenuHr"> {/if} {if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid || $topmostcat eq $categories[cat_num].categoryid} {section name=subcat loop=$allcategories} {if $allcategories[subcat].parentid eq $categories[cat_num].categoryid} {if $cat eq $allcategories[subcat].categoryid || $current_category.parentid eq $allcategories[subcat].categoryid}{/if}{$allcategories[subcat].category}{if $cat eq $allcategories[subcat].categoryid || $current_category.parentid eq $allcategories[subcat].categoryid}{/if} {if $cat eq $allcategories[subcat].categoryid || $allcategories[$cat].parentid eq $allcategories[subcat].categoryid || $current_category.parentid eq $allcategories[subcat].categoryid} {section name=subcat2 loop=$allcategories} {if $allcategories[subcat2].parentid eq $allcategories[subcat].categoryid || $current_category.parentid eq $subcategories[subcat2].categoryid} {if $cat eq $allcategories[subcat2].categoryid}{/if}{$allcategories[subcat2].category}{if $cat eq $allcategories[subcat2].categoryid}{/if} {/if} {/section} {/if} {/if} {/section} <HR size="1" noshade class="CateMenuHr"> {/if} {/section} {else} {section name=cat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/section} {/if} {/if} {/capture} {include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu}
__________________
version 4.0.18 (+ several cool mods)
Reply With Quote
  #80  
Old 05-18-2006, 03:18 AM
  proboscidian's Avatar 
proboscidian proboscidian is offline
 

Senior Member
  
Join Date: May 2005
Location: Clearwater, FL
Posts: 146
 

Default Subcategory sort order

Look back on page 5 - Stevebag posted a fix.
__________________
Industrial Webworks
Various xcart versions from 4.1.19 gold - 4.7 gold
http://www.industrialwebworks.net
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:52 AM.

   

 
X-Cart forums © 2001-2020