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

How to make 2 Categories sections.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-23-2008, 02:11 AM
 
Waynarky Waynarky is offline
 

Member
  
Join Date: Jun 2008
Posts: 14
 

Default How to make 2 Categories sections.

Hi All

URL: http://www.fruittijewels.com

The jewelry needs to all be separated into two or more sub categories.
1) By Product (Rings, Broaches etc.)
2) By Material. (Gold, Silver etc.)

I want to know how I can get this to display right. I want all subcategories to be visible on all pages. Basically the actual categories, should only act as headers, with subcategories under.

If I add only 'By product' and 'By material' categories, with the rest as Subcategories, only the two buttons will display by default, with the sub-cats viewable on mouse over. (not suitable)

The only other way I can think of doing it is to make a copy and edit the Fancy Categories bar, which I'm not sure is even possible?

Hope you can help

P.S. The version for this site is 4.1.9
__________________
Wayne Thompson
X-Cart GOLD 4.1.10
Fancy Categories
Reply With Quote
  #2  
Old 06-24-2008, 11:02 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to make 2 Categories sections.

Well, if it only needs to be in 2, then its already possible. X-cart has a main category and an additional category for every product. It is a simple matter of listing all of your "Products" and then creating "Material" categories and putting them as the "additional" category for each product.

Since it appears you are not using the manufacturers menu you could also "cheat" and use "manufacturers" as a pseudo-category, having "manufacturers" named "gold", "silver" etc. and renaming "manufacturers" to "Materials".

Anyway, just some ideas to get you thinking outside the box.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 06-26-2008, 12:09 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: How to make 2 Categories sections.

Quote:
Originally Posted by JWait
Well, if it only needs to be in 2, then its already possible. X-cart has a main category and an additional category for every product. It is a simple matter of listing all of your "Products" and then creating "Material" categories and putting them as the "additional" category for each product.

Since it appears you are not using the manufacturers menu you could also "cheat" and use "manufacturers" as a pseudo-category, having "manufacturers" named "gold", "silver" etc. and renaming "manufacturers" to "Materials".

Anyway, just some ideas to get you thinking outside the box.

1. Change the code of file "skin1/customer/categories.tpl" by the this code:


PHP Code:
{* $Idcategories.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}
{if 
$c.order_by lt 100}
<
font class="CategoriesList"><a href="home.php?cat={$c.categoryid}class="VertMenuItems">{$c.category}</a></font><br />
{/if}
{/foreach}
{else} {foreach 
from=$subcategories item=c key=catid}
<
font class="CategoriesList"><a href="home.php?cat={$catid}class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}
{/if}
{/
capture}
{ include 
file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="First section" menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}


{
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}
{if 
$c.order_by gt 99}
<
font class="CategoriesList"><a href="home.php?cat={$c.categoryid}class="VertMenuItems">{$c.category}</a></font><br />
{/if}
{/foreach}
{else} {foreach 
from=$subcategories item=c key=catid}
<
font class="CategoriesList"><a href="home.php?cat={$catid}class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}
{/if}
{/
capture}
{ include 
file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="Second section" menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding

2. To add in the first section, use category with a value of "orderby" - less than 100. The second - more.
Reply With Quote
  #4  
Old 07-01-2008, 04:55 AM
 
Waynarky Waynarky is offline
 

Member
  
Join Date: Jun 2008
Posts: 14
 

Default Re: How to make 2 Categories sections.

Thanks for the assistance guys
__________________
Wayne Thompson
X-Cart GOLD 4.1.10
Fancy Categories
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:58 PM.

   

 
X-Cart forums © 2001-2020