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

Grouping Categories for better viewing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 05-23-2005, 05:56 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,068
 

Default

Glad you guys got it working!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #22  
Old 08-26-2005, 06:21 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,068
 

Default

I have an even better mod to do this same thing now. It will allow category headings in the main Root category menu and/or in the subcategories!!

Check it out! It's free!

http://www.bcsengineering.com/store/customer/product.php?productid=125&MMCF_cathead

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #23  
Old 08-27-2005, 05:54 AM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

Hi IndieDepot

Try this

Skin1/customer/categories.tpl

Code:
{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} {if $categories[cat_num].order_by eq 5} <FONT class="CategoriesList2">Latest PC Systems.</FONT><HR> {/if} {if $categories[cat_num].order_by eq 10} <FONT class="CategoriesList2">Main Categories.</FONT><HR> {/if} {if $categories[cat_num].order_by eq 90} <FONT class="CategoriesList2">Latest PC Cases.</FONT><HR> {/if} {if $categories[cat_num].order_by eq 100} <FONT class="CategoriesList2">Latest Gadgets.</FONT><HR> {/if}[*]<FONT class="CategoriesList">{$categories[cat_num].category}</FONT> {/section} {else} {section name=cat_num loop=$subcategories}[*]<FONT class="CategoriesList">{$subcategories[cat_num].category}<FONT> {/section} {/if} {/if}

Thanks to Carrie at BCSE and AgileMolecule.

Add this to your CSS under CategoriesList.

Code:
.CategoriesList2 { FONT-SIZE: 12px; FONT-WEIGHT: bold; }

This works fine in 4.0.14
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #24  
Old 01-28-2006, 09:30 PM
 
MaDgamEr MaDgamEr is offline
 

Newbie
  
Join Date: Dec 2005
Location: Greenwood, NS
Posts: 4
 

Default

Has anyone managed to get this (or a similar concept) to work with Fancy Categories? I've been playing around with it for a little while, but no real results yet....

Any help would be GREATLY appreciated. Thanks in advance.
__________________
X-Cart v4.0.17
Reply With Quote
  #25  
Old 01-31-2006, 12:39 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,068
 

Default

Sorry for our delayed reply. We've been swamped with questions, quotes, etc the past 2 weeks (well the whole month actually).

Are you trying to get the category headings to work or the grouping of categories??

Thanks,

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #26  
Old 02-01-2006, 06:59 PM
 
MaDgamEr MaDgamEr is offline
 

Newbie
  
Join Date: Dec 2005
Location: Greenwood, NS
Posts: 4
 

Default

Not a problem, I understand we all get busy... and its better to have a business that is busy (making money) as compared to one that is not busy (losing money).

I was looking to break up my categories into 2 or 3 groups and then list the approperiate categories (or category group I guess) listed under a heading.

Heading 1
*Cat 1
*Cat 2
*Cat 3

Heading 2
*Cat 4
*Cat 5
*Cat 6

and so on...
__________________
X-Cart v4.0.17
Reply With Quote
  #27  
Old 02-09-2006, 05:20 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 131
 

Default

The code provided doesn't work in 4.1.0 ?
__________________
X-Cart Gold Plus v4.7.12
ReBOOT ReDUX Theme
Reply With Quote
  #28  
Old 02-09-2006, 06:14 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 131
 

Default

The code on 4.1.0 is like this...

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} {else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <font class="CategoriesList">{$c.category}</font> {/foreach} {else} {foreach from=$subcategories item=c key=catid} <font class="CategoriesList">{$c.category}</font> {/foreach} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}

Can anyone convert it so I can have my sub categories back?
__________________
X-Cart Gold Plus v4.7.12
ReBOOT ReDUX Theme
Reply With Quote
  #29  
Old 02-11-2006, 11:59 AM
 
jmccunep jmccunep is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 68
 

Default Categories headings

Quote:
Originally Posted by AgileMolecule

Remember to set your initial category numbers in the admin side according to what is in original Carrie's code- I just tweaked it a tad more here as an example.

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} {if $categories[cat_num].order_by eq 5} COOL STUFF AAA {/if} {if $categories[cat_num].order_by eq 50} COOL STUFF BBB {/if} {if $categories[cat_num].order_by eq 100} COOL STUFF CCC {/if} {if $categories[cat_num].order_by eq 150} COOL STUFF DDD {/if} <FONT class="CategoriesList">{$categories[cat_num].category}</FONT> {/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 }

When you say to set the initial category numbers on admin side you must mean the to do so by setting the category position numbers?

Thanks for the help!

X-Cart v 4.0.17
Reply With Quote
  #30  
Old 02-21-2006, 10:14 AM
 
bestdu bestdu is offline
 

Newbie
  
Join Date: Aug 2005
Posts: 4
 

Default

hey guys,

why did I have to change the eq to <, to get it work?
__________________
bestdu
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 02:18 AM.

   

 
X-Cart forums © 2001-2020