Jump to content

Put sub-categories under each other?


Guest jeroenz19

Recommended Posts

Guest jeroenz19

Hello,

Is there an possibility to put the sub-categories under each other and not side by side.

You can see an example here of a very ugly sub-category mess:

http://www.audioweb.nl/cubecart/index.php?...iewCat&catId=23

Everything is put next to each other and on the next line another way.

Can someone tell me how to get them in a table maybe? Or just sitting under each other?

Link to comment
Share on other sites

Holy faulty rendering!

I'm not sure if that's your site or somebody else's, but it comes out HORRIBLE in Firefox. It's *ok* in IE6, but not great. Check it out. :D

Link to comment
Share on other sites

Guest jeroenz19

Didn't work for me...and I want to keep the images.

Can someone help me with putting the category image+name in the same table as the products, except that there should be only 2 colomns, one for the image, one for the name.

And on the top there should be something like: Choose a category below here.

I tried some.. but messed up the layout.

Thanks!

Link to comment
Share on other sites

Guest jeroenz19

Update:

I'VE DONE IT!!! :w00t:

Here's how to:

1. Open skins/Killer/styleTemplates/content/viewCat.tpl

2. Replace the next line of code:

<!-- BEGIN: sub_cats -->

<div id="subCats">

	<!-- BEGIN: sub_cats_loop -->

	<span class="subCat">

  <a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" border="0" alt="{TXT_CATEGORY}" /></a><br />

  <a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a> ({NO_PRODUCTS})

	</span>

	<!-- END: sub_cats_loop -->

</div>

<!-- END: sub_cats -->




3. With this code:




<br>

<!-- BEGIN: sub_cats -->

<table border="0" width="100%" cellspacing="0" colspan="2" cellpadding="3" class="tblList">

  <tr>

    <td class="tdListTitle"><strong>Choose an category below</strong></td>

	<td class="tdListTitle">&nbsp;</td>

  </tr>

	<!-- BEGIN: sub_cats_loop -->

  <tr><td align="left" class="{CLASS}"><a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" border="0" alt="{TXT_CATEGORY}" /></a></td><td><a href="index.php?act=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a><br><br></td></tr>

	<!-- END: sub_cats_loop -->

</table>

<!-- END: sub_cats -->

There you have it!

Preview: http://www.audioweb.nl/cubecart/index.php?...iewCat&catId=23

I'm now trying to use the category description mod to work. Then the name of the category will go & will be replaced with the category description.

And i'm trying to make it look better. I'll keep ya updated!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...