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

Category Box - links & color

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-19-2009, 12:09 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Category Box - links & color

Quote:
Originally Posted by alec.thomas
Victor, could you tell me how to change the bolded decoration only to the selected sub category? Because I did a mod where whatever category is active, it drops down all the subcategorys beneath it. Thanks
Since your skin is modified I need your customer/categories.tpl to do it.
Please post it here
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #12  
Old 03-19-2009, 04:32 AM
  alec.thomas's Avatar 
alec.thomas alec.thomas is offline
 

Advanced Member
  
Join Date: Mar 2009
Location: Minnesota, USA
Posts: 78
 

Default Re: Category Box - links & color

oh sorry, here it is:

{*
$Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}
{if $active_modules.Fancy_Categories}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="additional_class" value="menu-fancy-categories-list"}
{else}
{assign var=thiscat value=$cat}
{assign var=par value=0}
{foreach from=$categories item=cats}
{assign var=Mcatid value=$cats.categoryid}
{foreach from=$allsubcategories.$Mcatid item=subb}
{if $subb.categoryid eq $thiscat}
{assign var=par value=$subb.parentid}
{/if}
{/foreach}
{/foreach}
<ul>
{foreach from=$categories_menu_list item=c}
<li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li>
{if $c.categoryid eq $par}
{foreach from=$allsubcategories.$par item=sub}
{if $sub.parentid eq $c.categoryid}
<a href="home.php?cat={$sub.categoryid}" class="subMenuItem">-{$sub.category}</a>
{/if}
{/foreach}
{/if}
{foreach from=$allcategories item=cat}
{if $cat.parentid eq $c.categoryid}
<a href="home.php?cat={$cat.categoryid}" class="subMenuItem">-{$cat.category}</a>
{/if}
{/foreach}
{/foreach}
</ul>
{assign var="additional_class" value="menu-categories-list"}
{/if}
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}
__________________
X-Cart Gold v4.2.0 [Linux]
Add-On: X-Magnifier
Altered Cart Add-On: One Page Checkout
Reply With Quote
  #13  
Old 03-19-2009, 05:42 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Category Box - links & color

Something like this:
Code:
{* $Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} {if $active_modules.Fancy_Categories} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="additional_class" value="menu-fancy-categories-list"} {else} {assign var=thiscat value=$cat} {assign var=par value=0} {foreach from=$categories item=cats} {assign var=Mcatid value=$cats.categoryid} {foreach from=$allsubcategories.$Mcatid item=subb} {if $subb.categoryid eq $thiscat} {assign var=par value=$subb.parentid} {/if} {/foreach} {/foreach} <ul> {foreach from=$categories_menu_list item=c} <li><a {if $c.categoryid eq $thiscat}class="selcat"{/if} href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li> {if $c.categoryid eq $par} {foreach from=$allsubcategories.$par item=sub} {if $sub.parentid eq $c.categoryid} <a href="home.php?cat={$sub.categoryid}" class="subMenuItem {if $sub.categoryid eq $thiscat}selcat{/if}">-{$sub.category}</a> {/if} {/foreach} {/if} {foreach from=$allcategories item=cat} {if $cat.parentid eq $c.categoryid} <a href="home.php?cat={$cat.categoryid}" class="subMenuItem {if $cat.categoryid eq $thiscat}selcat{/if}">-{$cat.category}</a> {/if} {/foreach} {/foreach} </ul> {assign var="additional_class" value="menu-categories-list"} {/if} {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}


also add this to you main.css
Code:
.menu-categories-list ul li a.selcat{font-weight:bold}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #14  
Old 03-23-2009, 06:44 AM
  alec.thomas's Avatar 
alec.thomas alec.thomas is offline
 

Advanced Member
  
Join Date: Mar 2009
Location: Minnesota, USA
Posts: 78
 

Default Re: Category Box - links & color

Thank you very much Victor, works perfectly!
__________________
X-Cart Gold v4.2.0 [Linux]
Add-On: X-Magnifier
Altered Cart Add-On: One Page Checkout
Reply With Quote
  #15  
Old 03-23-2009, 11:47 AM
 
BeansMedia BeansMedia is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 45
 

Default Re: Category Box - links & color

Hello, i have a different problem on my left column all the boxes have different text colours, i looks a mess.

I have tried skin css but nothing changed (i have thrown away cookies)

is there a solution to make all the text colours in the left column the same or do you have to edit the boxes seperatly.

the boxes are:

manufacturers

news

categories

most sold

i have searched for 3 days but did not find the answer
__________________
Version 4.1.9
x cart gold
Windows
Reply With Quote
  #16  
Old 03-24-2009, 03:45 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Category Box - links & color

Quote:
Originally Posted by BeansMedia
Hello, i have a different problem on my left column all the boxes have different text colours, i looks a mess.

I have tried skin css but nothing changed (i have thrown away cookies)

is there a solution to make all the text colours in the left column the same or do you have to edit the boxes seperatly.

the boxes are:

manufacturers

news

categories

most sold

i have searched for 3 days but did not find the answer

I need to know what template is used in your store.
If it isn't made by Qualiteam provide me with URL.
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #17  
Old 03-27-2009, 04:59 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Category Box - links & color

To change the text colors, you will change the class in the styles sheet.


Quote:
Originally Posted by BeansMedia
Hello, i have a different problem on my left column all the boxes have different text colours, i looks a mess.

I have tried skin css but nothing changed (i have thrown away cookies)

is there a solution to make all the text colours in the left column the same or do you have to edit the boxes seperatly.

the boxes are:

manufacturers

news

categories

most sold

i have searched for 3 days but did not find the answer
__________________
______________
version 4.1.9 Gold
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 03:41 PM.

   

 
X-Cart forums © 2001-2020