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

How do I... Question regarding Category List

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-09-2007, 08:54 AM
 
creativearc creativearc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 34
 

Default How do I... Question regarding Category List

I have added some javascript effects to my category list. It works great, except for a few things. What happens with the javascript - is the subcategories are displayed in the left category list when they click on a category. The links work great off the home page, but when someone gets to a subcategory page, then it falls apart a bit.

This code needs to work on any page, and it is screwed up whenever there is a ?cat=(number). Any ideas how to fix this? (this is a snippet from the /customer/categories.tpl)

Code:
{if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <dt class="category-menu" style="cursor: pointer">{$c.category}</dt> {if $subcategories} <dt class="subcategory-menu"> {foreach from=$subcategories item=c key=catid} <a href="home.php?cat={$catid}" class="VertMenuItems">&nbsp;&nbsp;&nbsp;&nbsp;- {$c.category}</a><br /> {/foreach} </dt> {/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}
__________________
CreativeArc
---------------
X-Cart Pro
Version: 4.1.8
Reply With Quote
  #2  
Old 07-09-2007, 09:13 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How do I... Question regarding Category List

CDSEO will eliminate the "?cat=(number)" and your categories will look like www.domain.com/category_header/category_name

This may solve your issue. Maybe.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 07-09-2007, 09:19 AM
 
creativearc creativearc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 34
 

Default Re: How do I... Question regarding Category List

There's got to be a way to just always read the categories and subcategories the same, no matter what page or category someone is browsing...
__________________
CreativeArc
---------------
X-Cart Pro
Version: 4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:20 AM.

   

 
X-Cart forums © 2001-2020