X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to make 2 Categories sections. (https://forum.x-cart.com/showthread.php?t=40680)

Waynarky 06-23-2008 02:11 AM

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 :D/

P.S. The version for this site is 4.1.9

JWait 06-24-2008 11:02 AM

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.

Yurij 06-26-2008 12:09 AM

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.

Waynarky 07-01-2008 04:55 AM

Re: How to make 2 Categories sections.
 
Thanks for the assistance guys


All times are GMT -8. The time now is 02:41 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.