Jump to content

Sub-categories not functioning right..


Guest sound

Recommended Posts

Hi,

I created a cat called mp3 files, put my product in that section everything was rosie,

Then i created a sub-category mp3 files/new sub-cat But they're not appearing right up top in the box.

I then created another sub cat under mp3 files but only one image shows in the subcategories box up top.

So i deleted both sub cats and the mp3 file cat, but that box still appears up top and it's over every category.

This is just too confusing, hmm i think that subcategory box, if working should only appear in the top of what category you specify,

Maybe i need another mod? :wacko:

Does this make any sence?

Link to comment
Share on other sites

the problem is your tpl file it seems you have made some edits to viewCat.tpl which is in skins/(YOUR SKIN)/styleTemplates/Content/ BTW...

you are missing the <!-- BEGIN: ... and <!-- END: tags try comparing your file against the original or posting your file contents here...

Link to comment
Share on other sites

Hey,

Tryed comparing, i have made a few edits in there previously, I don't see the problem sorry,

<!-- BEGIN: view_cat -->

<div class="scrollc">

<div class="boxContent">

<span class="txtContentTitle">{TXT_CAT_TITLE}</span>

<br clear="all" />

<!-- BEGIN: sub_cats -->

<div id="subCats">

<!-- BEGIN: sub_cats_loop -->

<div class="subCat">

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

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

</div>

<!-- END: sub_cats_loop -->

</div>

<!-- END: sub_cats -->

<br clear="left" />

<!-- BEGIN: cat_img -->

<img src="{IMG_CURENT_CATEGORY}" alt="{TXT_CURENT_CATEGORY}" border="0" title="{TXT_CURENT_CATEGORY}" />

<!-- END: cat_img -->

<div><strong>{LANG_CURRENT_DIR}</strong> {CURRENT_DIR}</div>

<div class="pagination">{PAGINATION}</div>

<!-- BEGIN: productTable -->

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

<tr>

<td class="tdListTitle"><strong>{LANG_IMAGE}</strong></td>

<td class="tdListTitle"><strong>{LANG_DESC}</strong></td>

<td class="tdListTitle"><strong>{LANG_PRICE}</strong></td>

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

</tr>

<!-- BEGIN: products -->

<tr>

<td align="center" class="{CLASS}"><a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self"><img src="{SRC_PROD_THUMB}" alt="{TXT_TITLE}" border="0" title="{TXT_TITLE}" /></a></td>

<td valign="top" class="{CLASS}"><a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self" class="txtDefault"><strong>{TXT_TITLE}</strong></a><br />

{TXT_DESC}<div class="txtOutOfStock">{TXT_OUTOFSTOCK}</div></td>

<td align="center" class="{CLASS}">{TXT_PRICE}

<div class="txtSale">{TXT_SALE_PRICE}</div></td>

<td align="right" nowrap='nowrap' class="{CLASS}">

<form action="{CURRENT_URL}" method="post" name="prod{PRODUCT_ID}">

<!-- BEGIN: buy_btn -->

<input type="hidden" name="add" value="{PRODUCT_ID}" />

<input type="hidden" name="quan" value="1" /><a href="java script:submitDoc('prod{PRODUCT_ID}');" target="_self" class="txtButton">{BTN_BUY}</a><!-- END: buy_btn --> <a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self" class="txtButton">{BTN_MORE}</a></form></td>

</tr>

<!-- END: products -->

</table>

<!-- END: productTable -->

<!-- BEGIN: noProducts -->

<div>{TXT_NO_PRODUCTS}</div>

<!-- END: noProducts -->

<div class="pagination">{PAGINATION}</div>

</div>

</div><!-- END: view_cat -->

Link to comment
Share on other sites

what edits have you made to includes/content/viewCat.inc.php recently???

basicaly your right it looks good to me too infact it looks perfect so not too sure whats going on, it seems to be prossesing what is between the BEGIN and END even though it shouldn't and it now apears that is to do with the .php file...

Link to comment
Share on other sites

I'm not sure am looking through that file now,

Think i was doin something with $results = $db->select

I'll have a read over some recent posts of mine..

Link to comment
Share on other sites

Your Discription mod? :wacko:

I renamed the viewCat.inc.php and uploaded the oragional again,

Fixed the problem, the sub-caategory box up top is gone from all main categories..

But it sent all the audio buttons back in the products information... instead of them been up front like your code had them.

Damn

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...